/* Dynasty Tracker Styles */

.tracker-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    text-align: center;
}

.tracker-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.tracker-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.last-updated {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 600;
}

/* Tracker Section */
.tracker-section {
    padding: 4rem 0;
    background: var(--surface);
}

.tracker-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.tracker-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Value Info */
.value-info {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--secondary-color);
}

.value-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.value-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.breakdown-item {
    padding: 1rem;
    background: var(--surface);
    border-radius: 0.5rem;
}

.breakdown-label {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.breakdown-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tracker Table */
.tracker-table-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: 2rem;
}

.tracker-table {
    width: 100%;
    border-collapse: collapse;
}

.tracker-table thead {
    background: var(--dark-bg);
    color: white;
}

.tracker-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.tracker-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tracker-table tbody tr:hover {
    background: var(--surface);
}

.tracker-table td {
    padding: 1.25rem 1rem;
}

.tracker-table .rank {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    width: 70px;
}

.player-cell {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.value-score {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
}

.tier-badge-cell {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    display: inline-block;
    text-transform: uppercase;
}

.tier-badge-cell.tier-1 {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.tier-badge-cell.tier-2 {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tier-badge-cell.tier-3 {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.tier-badge-cell.tier-4 {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: white !important;
}

.tier-badge-cell.tier-5,
.tier-badge-cell.tier-6 {
    background: #6b7280 !important;
    color: white !important;
}

.tier-badge-cell.tier-7 {
    background: #374151 !important;
    color: #9ca3af !important;
}

.score-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Tiers Section */
.tiers-section {
    padding: 6rem 0;
    background: var(--background);
}

.tiers-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tier-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow);
}

.tier-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tier-1 .tier-badge {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.tier-2 .tier-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.tier-3 .tier-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
}

.tier-4 .tier-badge {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4);
}

.tier-5 .tier-badge,
.tier-6 .tier-badge {
    background: #6b7280;
    color: white;
}

.tier-7 .tier-badge {
    background: #374151;
    color: #9ca3af;
}

.tier-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tier-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .tracker-hero h1 {
        font-size: 2rem;
    }

    .tracker-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .value-breakdown {
        grid-template-columns: 1fr;
    }

    .hide-mobile {
        display: none;
    }

    .tracker-table th,
    .tracker-table td {
        padding: 1rem 0.5rem;
        font-size: 0.875rem;
    }

    .tracker-table .rank {
        font-size: 1rem;
        width: 50px;
    }

    .player-cell {
        font-size: 1rem;
    }

    .value-score {
        font-size: 1.25rem;
    }
}
