/* Sirius Awards Judges - Styles */

/* ====================
   Base Styles
   ==================== */

#sav-judges-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* ====================
   Email Gate
   ==================== */

#sav-judges-email-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.sav-gate-content {
    background: #fff;
    padding: 48px;
    border-radius: 16px;
    border: 1px solid #e8eaed;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    max-width: 700px;
    width: 100%;
}

.sav-gate-content h2 {
    margin-top: 0;
    color: #1a202c;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.sav-gate-content p {
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* ====================
   Forms
   ==================== */

.sav-form-group {
    margin-bottom: 20px;
}

.sav-form-group input[type="text"],
.sav-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.sav-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ====================
   Buttons
   ==================== */

.sav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.sav-btn-primary {
    background: #071D3D !important;
    color: #ffffff !important;
}

.sav-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.sav-error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

/* ====================
   Header
   ==================== */

.sav-judges-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.sav-judges-header-left {
    flex: 1;
}

.sav-judges-header-right {
    flex-shrink: 0;
}

.sav-judge-name {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: #071D3D;
    letter-spacing: -0.5px;
}

.sav-judge-subtitle {
    margin: 0;
    font-size: 16px;
    color: #64748b;
}

#sav-export-all-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

/* ====================
   Tabs
   ==================== */

.sav-tabs-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.sav-tabs-nav {
    display: flex;
    gap: 4px;
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaed;
    overflow-x: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.sav-tabs-nav::-webkit-scrollbar {
    height: 5px;
}

.sav-tabs-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sav-tabs-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sav-tab-btn {
    padding: 6px 12px !important;
    border: 1px solid #e8eaed !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.sav-tab-btn:hover {
    color: #071D3D !important;
    border-color: #071D3D !important;
    background: #f8f9fb !important;
}

.sav-tab-btn.active {
    color: #ffffff !important;
    background: #071D3D !important;
    border-color: #071D3D !important;
}

.sav-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.sav-tab-name {
    display: inline;
}

.sav-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    background: #e2e8f0;
    color: #64748b;
}

.sav-tab-btn.active .sav-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.sav-tab-btn:hover .sav-tab-count {
    background: #cbd5e1;
}

.sav-tab-btn.active:hover .sav-tab-count {
    background: rgba(255, 255, 255, 0.35);
}

/* ====================
   Who's Voted Panel
   ==================== */

.sav-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.sav-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaed;
}

.sav-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #071D3D;
}

.sav-btn-small {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

#sav-whos-voted-content {
    padding: 24px;
}

/* Voting Summary Table */
.sav-voting-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sav-voting-summary-table thead th {
    background: #f8f9fb;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 2px solid #e8eaed;
}

.sav-voting-summary-table thead th:nth-child(2) {
    text-align: center;
    width: 100px;
}

.sav-voting-summary-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8eaed;
    color: #334155;
}

.sav-voting-summary-table tbody tr:hover {
    background: #f8f9fb;
}

.sav-voting-summary-table .sav-count-cell {
    text-align: center;
    font-weight: 700;
    color: #071D3D;
}

.sav-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-style: italic;
}

/* Header buttons layout */
.sav-judges-header-right {
    display: flex;
    gap: 10px;
}

#sav-whos-voted-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

.sav-tabs-content {
    padding: 32px;
}

.sav-tab-pane {
    display: none;
}

.sav-tab-pane.active {
    display: block;
}

.sav-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 16px;
}

.sav-no-nominations {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-style: italic;
    font-size: 16px;
}

/* ====================
   Award Header
   ==================== */

.sav-award-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e8eaed;
}

.sav-award-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sav-award-header-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.sav-award-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sav-award-header-details {
    flex: 1;
}

.sav-award-header-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #071D3D;
    letter-spacing: -0.5px;
}

.sav-award-header-description {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ====================
   Sections
   ==================== */

.sav-shortlisted-section {
    margin-bottom: 48px;
}

.sav-section-title {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eaed;
}

.sav-shortlisted-section .sav-section-title {
    color: #22c55e;
}

.sav-winner-title {
    color: #eab308 !important;
}

.sav-general-winner-title {
    color: #061D3D !important;
}

.sav-winners-section {
    margin-bottom: 48px;
}

/* Winner Buttons */
.sav-winner-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.sav-btn-winner {
    background: #eab308 !important;
    color: #ffffff !important;
    border: none !important;
}

.sav-btn-winner:hover {
    background: #ca8a04 !important;
}

.sav-btn-general-winner {
    background: #061D3D !important;
    color: #ffffff !important;
    border: none !important;
}

.sav-btn-general-winner:hover {
    background: #0a2d5c !important;
}

/* Winner Badge */
.sav-winner-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sav-nomination-card.award-winner .sav-winner-badge {
    background: #eab308;
    color: #ffffff;
}

.sav-nomination-card.general-winner .sav-winner-badge {
    background: #061D3D;
    color: #ffffff;
}

/* Winners Panel Tables */
#sav-winners-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

#sav-winners-content {
    padding: 24px;
}

.sav-winners-table-section {
    margin-bottom: 40px;
}

.sav-winners-table-section:last-child {
    margin-bottom: 0;
}

.sav-table-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaed;
}

.sav-table-title.sav-award-winner-title {
    color: #eab308;
}

.sav-table-title.sav-general-winner-title {
    color: #061D3D;
}

/* Winners Tables - Reset and Override Parent Styles */
#sav-judges-container .sav-winners-table,
#sav-judges-container .sav-winners-table thead,
#sav-judges-container .sav-winners-table tbody,
#sav-judges-container .sav-winners-table tr,
#sav-judges-container .sav-winners-table th,
#sav-judges-container .sav-winners-table td {
    border: none !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

#sav-judges-container .sav-winners-table {
    width: 100% !important;
    font-size: 14px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}

#sav-judges-container .sav-winners-table thead th {
    background: #f8f9fb !important;
    padding: 14px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    border-bottom: 2px solid #e8eaed !important;
}

#sav-judges-container .sav-winners-table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #334155 !important;
    vertical-align: top !important;
    background: #ffffff !important;
}

#sav-judges-container .sav-winners-table tbody tr:last-child td {
    border-bottom: none !important;
}

#sav-judges-container .sav-winners-table tbody tr:hover td {
    background: #f8f9fb !important;
}

#sav-judges-container .sav-winners-table tbody td:last-child {
    max-width: 300px !important;
}

/* Award Winners table accent */
#sav-judges-container .sav-award-winners-table thead th {
    border-bottom: 2px solid #eab308 !important;
}

/* General Winners table accent */
#sav-judges-container .sav-general-winners-table thead th {
    border-bottom: 2px solid #061D3D !important;
}

/* ====================
   Nomination Cards
   ==================== */

.sav-nomination-card {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.2s ease;
}

.sav-nomination-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sav-nomination-card.shortlisted {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
}

.sav-nomination-card.award-winner {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    border: 2px solid #eab308;
}

.sav-nomination-card.general-winner {
    background: linear-gradient(135deg, #e8eef5 0%, #d1dce8 100%);
    border: 2px solid #061D3D;
}

.sav-nomination-details {
    flex: 1;
}

.sav-nomination-header {
    font-size: 17px;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sav-nomination-header strong {
    font-weight: 700;
    color: #071D3D;
}

.sav-nomination-reason {
    margin-bottom: 10px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.sav-nomination-reason-label {
    font-weight: 600;
    color: #1a202c;
}

.sav-nomination-specifics {
    margin-bottom: 10px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    padding: 10px 12px;
    background: #f8f9fb;
    border-radius: 6px;
}

.sav-nomination-specifics-label {
    font-weight: 600;
    color: #1a202c;
}

.sav-nomination-meta {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    line-height: 1.4;
}

.sav-nomination-actions {
    flex-shrink: 0;
}

/* ====================
   Mobile Responsive
   ==================== */

@media (max-width: 768px) {
    #sav-judges-container {
        padding: 20px 15px;
    }

    .sav-gate-content {
        padding: 30px 20px;
    }

    .sav-gate-content h2 {
        font-size: 24px;
    }

    .sav-judges-header {
        flex-direction: column;
        gap: 16px;
    }

    .sav-judges-header-right {
        width: 100%;
    }

    #sav-export-all-btn,
    #sav-whos-voted-btn {
        width: 100% !important;
    }

    .sav-panel-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sav-voting-summary-table thead th,
    .sav-voting-summary-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sav-voting-summary-table thead th:nth-child(2) {
        width: 70px;
    }

    .sav-judge-name {
        font-size: 24px;
    }

    .sav-tabs-nav {
        padding: 8px;
        gap: 4px;
    }

    .sav-tab-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .sav-tabs-content {
        padding: 20px;
    }

    .sav-award-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .sav-award-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .sav-award-header-image {
        width: 80px;
        height: 80px;
    }

    .sav-award-header-title {
        font-size: 20px;
    }

    .sav-award-header-description {
        font-size: 14px;
    }

    .sav-nomination-card {
        flex-direction: column;
        padding: 14px 16px;
    }

    .sav-nomination-header {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .sav-nomination-reason {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .sav-nomination-meta {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .sav-nomination-actions {
        width: 100%;
    }

    .sav-nomination-actions .sav-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sav-gate-content {
        padding: 25px 15px;
    }
}
