/* Directors Hall of Fame Styles */

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 15px;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .separator {
    margin: 0 8px;
    color: #bdc3c7;
}

/* Category Switcher */
.category-switcher {
    float: right;
    margin-bottom: 10px;
}
.category-switcher select {
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #2c3e50;
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
}
.category-switcher select:hover {
    border-color: #ffd700;
}

.hof-header {
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    color: #ffd700;
    /* Gold */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #ffd700;
}
.hof-header::after {
    content: "";
    display: table;
    clear: both;
}

/* Star Power theme variant */
.hof-header.star-theme {
    border-bottom-color: #e67e22;
    background: linear-gradient(135deg, #1a1a1a, #2c1a00);
}
.hof-header.star-theme .hof-title {
    color: #e67e22;
}

/* Star theme specific overrides */
.star-theme .category-switcher select:hover {
    border-color: #e67e22;
}

.hof-title {
    font-size: 2.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.hof-subtitle {
    color: #ccc;
    font-size: 1em;
    font-style: italic;
}

.hof-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hof-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.hof-table th {
    background: #333;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

.hof-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.hof-table tr:hover {
    background-color: #f9f9f9;
}

/* Rank Medals */
.rank-badge {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9em;
}

.rank-1 {
    background: #ffd700;
    color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Gold */
.rank-2 {
    background: #c0c0c0;
    color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Silver */
.rank-3 {
    background: #cd7f32;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Bronze */
.rank-other {
    color: #777;
    font-weight: bold;
}

.director-link {
    font-weight: bold;
    color: #2980b9;
    text-decoration: none;
    font-size: 1.1em;
}

.director-link:hover {
    text-decoration: underline;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

.stat-sub {
    font-size: 0.8em;
    color: #7f8c8d;
}

/* Top 3 row highlighting */
.hof-table tbody tr.top-1 {
    background: linear-gradient(90deg, rgba(255,215,0,0.15), transparent);
}
.hof-table tbody tr.top-2 {
    background: linear-gradient(90deg, rgba(192,192,192,0.15), transparent);
}
.hof-table tbody tr.top-3 {
    background: linear-gradient(90deg, rgba(205,127,50,0.15), transparent);
}

/* Crown icon for #1 */
.crown-icon {
    display: inline-block;
    margin-left: 5px;
    color: #ffd700;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Career span styling */
.career-span {
    display: inline-block;
    background: #ecf0f1;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75em;
    color: #7f8c8d;
    margin-top: 3px;
}
.career-span .years {
    color: #2c3e50;
    font-weight: bold;
}

/* Mini stat bar for visual comparison */
.stat-bar {
    display: inline-block;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    max-width: 60px;
}

/* Star theme stat bar */
.star-theme-bar {
    background: linear-gradient(90deg, #e67e22, #f39c12);
}

/* Mobile Card View */
.hof-cards {
    display: none;
}

@media (max-width: 650px) {
    .hof-table-container {
        display: none;
    }
    .hof-cards {
        display: block;
    }

    .hof-card {
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: flex;
        align-items: flex-start;
        gap: 15px;
        border-left: 4px solid #ddd;
    }
    .hof-card.top-1 {
        border-left-color: #ffd700;
        background: linear-gradient(90deg, rgba(255,215,0,0.1), #fff);
    }
    .hof-card.top-2 {
        border-left-color: #c0c0c0;
        background: linear-gradient(90deg, rgba(192,192,192,0.1), #fff);
    }
    .hof-card.top-3 {
        border-left-color: #cd7f32;
        background: linear-gradient(90deg, rgba(205,127,50,0.1), #fff);
    }

    .hof-card .rank-badge {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 1em;
    }

    .hof-card-content {
        flex: 1;
        min-width: 0;
    }

    .hof-card-name {
        font-weight: bold;
        font-size: 1.1em;
        margin-bottom: 5px;
        word-wrap: break-word;
    }
    .hof-card-name a {
        color: #2980b9;
        text-decoration: none;
    }
    .hof-card-name a:hover {
        text-decoration: underline;
    }

    .hof-card-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.85em;
        color: #666;
    }
    .hof-card-stat {
        display: flex;
        flex-direction: column;
    }
    .hof-card-stat-value {
        font-weight: bold;
        color: #2c3e50;
    }
    .hof-card-stat-label {
        font-size: 0.8em;
        color: #999;
        text-transform: uppercase;
    }

    /* Hide category switcher float on mobile */
    .category-switcher {
        float: none;
        display: block;
        margin-bottom: 15px;
    }
}

/* Sort link styling */
.mainbox3 a.current-sort {
    color: #ffd700;
    font-weight: bold;
    text-decoration: underline;
}