/* ===== DARKMODE THEME ===== */
:root {
    /* --- BACKGROUNDS --- */
    --bg-primary: #1C1C1C;
    --bg-secondary: #282828;
    --bg-tertiary: #333333;

    /* --- TEXT --- */
    --text-primary: #FAFBFC;
    --text-secondary: #b0b0b0;

    /* --- ACCENT (Primary Brand Color) --- */
    --accent: #F2C94C;
    --accent-hover: #E0B840;
    --accent-light: #F2C94C;
    --accent-border: #F2C94C;

    /* --- STATUS COLORS --- */
    --success: #2A9D8F;
    --error: #E07A5F;
    --info: #91b4e5;

    /* --- OVERLAY & TRANSPARENCY --- */
    --overlay-light: #333333;
    --border-light: #444444;
}

* {
    box-sizing: border-box;
}

/* Supprimer les outlines par défaut du navigateur */
button,
a,
input,
textarea,
select {
    outline: none;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}

body {
    font-family: "Source Sans 3", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

header {
    background: var(--bg-secondary);
    padding: 15px 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    color: #FAFBFC;
    font-size: 25px;
    font-weight: 600;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.header-dot {
    color: #F2C94C;
    font-size: 30px;
    line-height: 1;
    vertical-align: baseline;
    display: inline;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ===== ICON BUTTONS ===== */
.icon-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 24px;
}

/* Opinion Button - Yellow Accent */
.icon-plus-button {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.icon-plus-button:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1);
}

.icon-plus-button:active {
    transform: scale(0.95);
}

.plus-icon {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

/* User Button - Black Circle */
.icon-user-button {
    background-color: transparent;
    color: var(--text-secondary);
}

.icon-user-button:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.icon-user-button:active {
    transform: scale(0.95);
}

.user-icon {
    width: 24px;
    height: 24px;
}

footer {
    background: var(--bg-secondary);
    padding: 15px 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
}

/* ===== LOGIN BUTTON ===== */
.login-btn {
    background: var(--accent);
    border: 2px solid var(--accent);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--bg-primary);
}

.login-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    box-shadow: none;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    animation: slideDown 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    position: relative;
}

/* Scrollbar stylisée pour toutes les modales */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    opacity: 0.8;
}

/* Modal des données de vote - plus large */
#voteDataModal .modal-content {
    max-width: 1000px;
}

/* Desktop layout pour vote data modal */
@media (min-width: 768px) {
    .voteDataDesktopWrapper {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }
    
    #chartContainer {
        flex: 0 0 auto;
        min-width: 300px;
    }
    
    .ageGenderContainer {
        flex: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fillBar {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

.result-bar {
    width: var(--percentage, 0%);
    max-width: 0;
    animation: fillBar 0.7s ease-out forwards;
}

.modal-content h2 {
    margin-top: 0;
    color: white;
    text-align: center;
}

.close {
    color: var(--text-secondary);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--accent);
}

.trend-title-link:hover {
    color: var(--accent) !important;
    transition: color 0.3s;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
}

.answers-label {
    color: var(--success) !important;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

.answer-input {
    border-color: var(--success) !important;
}

.answer-input:focus {
    border-color: var(--success) !important;
}

.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group select:hover {
    border-color: var(--accent);
    background-color: rgba(0, 0, 0, 0.3);
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

.form-group select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.btn-submit {
    padding: 10px 16px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== OAUTH BUTTONS ===== */
.oauth-btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.google-btn {
    background: #4285F4;
}

.google-btn:hover {
    background: #357ae8;
    transform: translateY(-2px);
}

.facebook-btn {
    background: #1877F2;
}

.facebook-btn:hover {
    background: #165dd8;
    transform: translateY(-2px);
}

/* ===== LINKS ===== */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

ul {
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

ul li {
    padding: 0;
    margin: 0;
    display: inline;
}

/* ===== HEADER BUTTONS ===== */
.header-btn {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: none;
}

.header-btn.logged-in {
    border-color: var(--success);
    color: var(--success);
}

.header-btn.logged-in:hover {
    background: var(--success);
    color: var(--bg-primary);
    box-shadow: none;
}

/* ===== OPINION FORM STYLES ===== */
.answer-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-remove-answer {
    padding: 8px 12px;
    background: var(--error);
    border: 1px solid var(--error);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-remove-answer:hover {
    background: #c65947;
    border-color: #c65947;
}

.btn-add-answer {
    padding: 10px 16px;
    background: var(--success);
    border: 1px solid var(--success);
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: auto;
    text-align: center;
    display: block;
    margin: 10px auto 0;
}

.btn-add-answer:hover {
    background: #228b7d;
    border-color: #228b7d;
}

/* ===== OPINIONS ===== */
.opinions-container {
    margin: 30px 0;
}

.no-opinions {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.opinions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.opinion-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.opinion-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.opinion-header {
    text-align: center;
    margin-bottom: 20px;
    background: none;
}

.opinion-header h2,
.opinion-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.opinion-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.3s ease;
}

.opinion-link:hover h2,
.opinion-link:hover h3 {
    color: var(--accent);
}

.opinion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.opinion-actions li {
    display: inline;
}

.action-btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    outline: none;
    box-shadow: none;
}

.opinion-info {
        background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    padding-bottom: 12px;
    font-size: 12px;
}

.opinion-footer {
        background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    padding-top: 12px;
    font-size: 12px;
}

.opinion-end {
    color: var(--text-secondary);
    text-align: left;
}

.opinion-share {
    display: flex;
    gap: 4px;
    align-items: center;
}

.share-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.share-btn img {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.share-btn-copied {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

.share-btn-copied img {
    filter: invert(1) opacity(1) brightness(1.5) !important;
}

/* ===== AGE SELECTION BUTTONS ===== */
.age-btn {
    padding: 8px 16px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.age-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

.age-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===== GENDER SELECTION BUTTONS ===== */
.gender-btn {
    padding: 8px 16px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.gender-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

.gender-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===== CARTES D'OPINIONS ÉTENDUES (>100 votes) ===== */
.expanded-results-wrapper {
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expanded-pie-chart {
    min-width: 200px;
    min-height: 200px;
}

.chart-container {
    flex-wrap: wrap;
    justify-content: center;
}

.chart-legend {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}



.expanded-world-map {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* ===== CHART BARS (Age & Gender) ===== */
.chart-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
 
    justify-content: center;
    height: 200px;
    width: 100%;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 40px;
}

.chart-bars {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100%;
    max-width: 50px;
    height: 150px;
    flex-direction: column-reverse;
    overflow: hidden;
    margin: 0 auto;
}

.chart-bar {
    width: 100%;
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 20px;
}

.chart-label {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
}

.chart-label-group {
    text-align: center;
    width: 100%;
}

.chart-range {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.chart-total {
    font-size: 11px;
    color: var(--text-secondary);
}
    /* Cartes étendues responsive */
    .age-gender-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .age-gender-container > div {
        flex: 1 1 auto;
        min-width: 0;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }
    .opinion-card {padding: 10px;}
    body > header {
    padding: 10px 10px;
}
    
    .opinions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    header h1 {
        font-size: 22px;
    }

    .container {
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
    
    .opinions-grid {
        grid-template-columns: 1fr;
    }
    
    .trends-grid {
        grid-template-columns: 1fr !important;
    }
    

    
    .expanded-desktop-wrapper {
        flex-direction: column;
    }
    
    .chart-container {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .expanded-pie-chart {
        max-width: 150px !important;
        max-height: 150px !important;
    }

}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    position: relative;
}

.language-selector .icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: transparent;
    color: var(--text-secondary);
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector .icon-button:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-icon {
    font-size: 16px;
}

.lang-code {
    font-size: 10px;
    font-weight: 600;
    min-width: 22px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 4px;
    min-width: 120px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.language-dropdown.active {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 12px;
    position: relative;
}

.lang-option::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    flex-shrink: 0;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.lang-option:hover::before {
    background-color: var(--accent);
}

.lang-option.active {
    background-color: rgba(242, 201, 76, 0.1);
    color: var(--accent);
}

.lang-option.active::before {
    background-color: var(--accent);
}

/* ===== TRENDS TABLE ===== */
.trends-table {
    width: 100%;
    border-collapse: collapse;
}

.trends-table thead tr {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trends-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: normal;
}

.trends-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trends-table td {
    padding: 3px 16px;
}

.trends-rank-cell {
    width: 60px;
    text-align: center;
}

.trends-rank-badge {
    display: inline-flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.trends-rank-badge:hover {
    transform: scale(1.1);
}

.trends-title-cell {
    flex: 1;
}

.trends-title-link {
    color: white;
    text-decoration: none;
    font-weight: normal;
    font-size: 13px;
    transition: color 0.2s ease;
}

.trends-title-link:hover {
    color: var(--accent);
}

.trends-votes-cell {
    text-align: right;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Vote Data Modal - Mobile Responsive */
@media (max-width: 600px) {
    #voteDataModal .voteDataModal-content {
        width: 98%;
        height: 98%;
        margin: 2% auto;
        padding: 10px;
    }

    #voteDataModal .voteDataModal-map {
        margin-left: -15px;
        width: calc(100% + 30px);
    }
}

/* Vote Data Modal - Desktop */
@media (min-width: 601px) {
    #voteDataModal .voteDataModal-content {
        margin: 2% auto;
    }
}

/* Opinion Card - Utility Classes */

/* Text utilities */
.text-secondary {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--text-primary);
}

.text-small {
    font-size: 12px;
}

.text-tiny {
    font-size: 10px;
}

/* Layout utilities */
.flex-center {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Spacing */
.m-top-12 {
    margin-top: 12px;
}

.m-bottom-12 {
    margin-bottom: 12px;
}

.m-vertical-12 {
    margin: 12px 0;
}

.m-top-16 {
    margin-top: 16px;
}

.p-12 {
    padding: 12px;
}

.p-8px {
    padding: 8px;
}

/* Background utilities */
.bg-overlay {
    background: rgba(255, 255, 255, 0.05);
}

.bg-overlay-light {
    background: rgba(255, 255, 255, 0.1);
}

/* Border utilities */
.border-bottom-light {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-radius-4 {
    border-radius: 4px;
}

.border-radius-8 {
    border-radius: 8px;
}

/* Bar chart utilities */
.result-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 32px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.result-bar {
    width: var(--percentage, 0%);
    max-width: 0;
    animation: fillBar 0.7s ease-out forwards;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    position: absolute;
    left: 0;
    top: 0;
}

.result-bar-text {
    color: black;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.result-bar-count {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

/* Form utilities */
.voted-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: black;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal utilities */
.modal-action-text {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.view-complete-data-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.view-complete-data-container {
    margin-top: 16px;
    text-align: center;
}

/* Opinion Info Top - Header with vote count and voted badge */
.opinion-info-top {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Voted Badge */
.voted-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: black;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Opinion Vote Count */
.opinion-vote-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Result Row - Spacing for each result */
.result-row {
    margin: 12px 0;
}

/* Result Background Container */
.result-background {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 32px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

/* Result Label Text */
.result-label {
    color: black;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* Result Vote Count */
.result-vote-count {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

/* View Data Wrapper */
.view-data-wrapper {
    margin-top: 16px;
    text-align: center;
}

/* View JSON/Complete Data Link */
.view-json-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

/* Opinion Actions Container - Main wrapper for voting interface */
.opinion-actions-container {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

/* Hidden Utility Class */
.hidden {
    display: none !important;
}

/* Results Display Container */


/* Modal Action Text - Message shown when user needs to login */
.modal-action-text {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.totals-display{
    margin: 0px;
    font-size: 14px;
    color: var(--text-primary);
}