/* Awards Explorer Styles */

/* Header */
.awards-header {
    background: linear-gradient(135deg, #1e272e 0%, #111111 100%);
    color: #e67e22;
    padding: 24px 20px;
    border-radius: 12px;
    margin: 10px 0 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #f1c40f;
}

.awards-header h1 {
    font-size: 1.8em;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #f1c40f;
}

.awards-header p {
    color: #ccc;
    font-size: 0.95em;
    margin: 0;
}

/* Header aggregate stats */
.awards-header-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.awards-header-stat {
    text-align: center;
}

.awards-header-stat .stat-num {
    color: #f1c40f;
    font-size: 1.4em;
}

.awards-header-stat .stat-desc {
    color: #aaa;
}

/* Tier sections */
.awards-tier {
    margin: 0 0 25px;
}

.awards-tier-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    padding: 10px 0;
    margin-bottom: 5px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
}

.awards-tier-icon {
    font-size: 1.1em;
}

.awards-tier-count {
    background: #eee;
    color: #777;
    font-size: 0.65em;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.awards-tier--major .awards-tier-header {
    color: #b8860b;
    border-bottom-color: #f1c40f;
}

.awards-tier--industry .awards-tier-header {
    color: #2c3e50;
    border-bottom-color: #3498db;
}

.awards-tier--other .awards-tier-header {
    color: #666;
    border-bottom-color: #ddd;
}

/* Additional card accent colors */
.award-card.Cannes {
    border-left-color: #f39c12;
}

.award-card.Venice {
    border-left-color: #9b59b6;
}

.award-card.SAG {
    border-left-color: #2ecc71;
}

.award-card.Critics-Choice {
    border-left-color: #3498db;
}

/* Compact list for lower-tier awards */
.awards-compact-list {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 10px;
}

.awards-compact-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    gap: 10px;
}

.awards-compact-item:last-child,
.awards-compact-item:last-of-type {
    border-bottom: none;
}

.awards-compact-item:hover {
    background: #f9f9f9;
}

.awards-compact-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.awards-compact-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95em;
}

.awards-compact-stats {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    font-size: 0.85em;
}

.awards-compact-wins {
    color: #d4a017;
    font-weight: bold;
}

.awards-compact-noms {
    color: #999;
}

.awards-show-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: none;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.15s;
}

.awards-show-more-btn:hover {
    background: #eee;
    color: #333;
}

/* Event List (Landing) */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin: 10px 0 0;
}

/* When used standalone (not inside a tier) */
.awards-grid:only-child {
    max-width: 95%;
    margin: 20px auto;
}

.award-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #bdc3c7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Specific Event Colors */
.award-card.Oscar {
    border-left-color: #f1c40f;
}

/* Gold */
.award-card.Golden-Globe {
    border-left-color: #e67e22;
}

/* Orange */
.award-card.BAFTA {
    border-left-color: #e74c3c;
}

/* Red */
.award-card.Filmfare {
    border-left-color: #34495e;
}

/* Dark */

.award-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.award-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.award-stats {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 6px;
    gap: 8px;
}

.award-stat {
    text-align: center;
    flex: 1;
}

.stat-num {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.stat-desc {
    font-size: 0.75em;
    color: #777;
    text-transform: uppercase;
}

/* Detail View Header */
.award-detail-header {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.award-detail-info h2 {
    margin: 0;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.award-detail-stats {
    text-align: right;
}

/* Filters */
.awards-filter-bar {
    max-width: 95%;
    margin: 0 auto 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
}

.filter-select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    background: #f9f9f9;
    cursor: pointer;
}

/* Award Badge on Movie Card (if used separately from movie_functions) */
.award-badge-display {
    background: #f1c40f;
    color: #333;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .awards-header-stats {
        gap: 15px;
        flex-wrap: wrap;
    }

    .awards-header h1 {
        font-size: 1.4em;
    }

    .awards-header-stat .stat-num {
        font-size: 1.1em;
    }

    .awards-detail-layout {
        flex-direction: column;
    }

    .awards-sidebar {
        width: 100% !important;
    }

    .award-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .award-detail-stats {
        text-align: center;
    }

    .awards-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Sidebar Layout */
.awards-detail-layout {
    display: flex;
    gap: 20px;
    max-width: 95%;
    margin: 0 auto;
    align-items: flex-start;
}

.awards-main-content {
    flex: 1;
    min-width: 0;
    /* Prevents flex overflow */
}

.awards-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #e67e22;
    /* Gold/Bronze */
    border-bottom: 2px solid #f1c40f;
    padding-bottom: 5px;
}

.talent-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.talent-item:last-child {
    border-bottom: none;
}

.talent-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.talent-item a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.talent-stats {
    color: #777;
    font-size: 0.85em;
    background: #f5f5f5;
    padding: 1px 5px;
    border-radius: 4px;
}