/**
 * Player Profile CSS Module
 * Styles for individual player profile pages
 * Created: 2025-10-11
 */

/* ==========================================================================
   Body Background (Player Profile Pages Only)
   ========================================================================== */

body {
    background: url('/assets/images/bg-for-web.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* ==========================================================================
   Page Header (Dark Background)
   ========================================================================== */

.page-header-wrapper {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fddc00;
}

/* ==========================================================================
   Player Profile Header
   ========================================================================== */

.player-profile-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.player-info {
    flex: 1;
}

.player-info h1 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.player-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.position-badge {
    background: #2d7a2d;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-qb,
.position-quarterback { background: #c41e3a; }

.position-rb,
.position-running-back { background: #006778; }

.position-wr,
.position-wide-receiver { background: #311d00; }

.position-te,
.position-tight-end { background: #0c2340; }

.position-ol,
.position-offensive-tackle,
.position-offensive-line { background: #002244; }

.position-dl,
.position-defensive-line { background: #002244; }

.position-lb,
.position-linebacker { background: #203731; }

.position-db,
.position-cornerback,
.position-safety { background: #4f2683; }

.position-k,
.position-kicker { background: #461d7c; }

.team,
.number {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.wonderlic-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(253, 220, 0, 0.15);
    border: 3px solid #fddc00;
    border-radius: 12px;
    padding: 1.75rem 2.5rem;
    min-width: 220px;
}

.score-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.score-value {
    font-family: 'scoreboard', Arial, sans-serif;
    font-size: 72px;
    color: #fddc00;
    line-height: 1;
    font-weight: normal;
    text-shadow: 0 2px 8px rgba(253, 220, 0, 0.3);
}

.score-rating {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    margin-top: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   Main Content Wrapper
   ========================================================================== */

.content-wrapper {
    padding: 0 1rem 3rem;
}

.bio-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* ==========================================================================
   Content Cards
   ========================================================================== */

.content-card,
.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-card h2,
.sidebar-card h3 {
    font-family: 'Roboto Slab', Georgia, serif;
    color: #5a2425;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-card h2 {
    font-size: 28px;
    border-bottom: 3px solid #5a2425;
    padding-bottom: 0.5rem;
}

.sidebar-card h3 {
    font-size: 20px;
}

.content-card h3 {
    font-size: 22px;
    color: #333;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.content-card p,
.sidebar-card p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Score Breakdown
   ========================================================================== */

.score-breakdown {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.score-bar {
    background: #e0e0e0;
    height: 40px;
    border-radius: 20px;
    position: relative;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.score-fill {
    background: linear-gradient(90deg, #fddc00, #ffa500);
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: width 0.5s ease;
}

.score-marker {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'scoreboard', Arial, sans-serif;
    font-size: 24px;
    color: #111;
    font-weight: bold;
}

.score-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding: 0 5px;
}

.score-comparisons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.comparison-item {
    text-align: center;
}

.comparison-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 0.25rem;
}

.comparison-value {
    display: block;
    font-family: 'scoreboard', Arial, sans-serif;
    font-size: 28px;
    color: #5a2425;
    font-weight: normal;
}

/* ==========================================================================
   Lists
   ========================================================================== */

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #444;
}

.highlights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2d7a2d;
    font-weight: bold;
}

.content-card ul:not(.highlights-list) {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.content-card ul:not(.highlights-list) li {
    margin-bottom: 0.5rem;
    color: #444;
}

/* ==========================================================================
   Stats Table
   ========================================================================== */

.stats-table {
    overflow-x: auto;
    margin-top: 1rem;
}

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

.stats-table th {
    background: #2d7a2d;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.stats-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.stats-table tr:hover {
    background: #f8f8f8;
}

/* ==========================================================================
   Quick Facts
   ========================================================================== */

.facts-list {
    line-height: 1.8;
}

.facts-list dt {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.75rem;
}

.facts-list dt:first-child {
    margin-top: 0;
}

.facts-list dd {
    color: #333;
    font-weight: 600;
    margin-left: 0;
}

/* ==========================================================================
   Similar Players
   ========================================================================== */

.similar-players {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.similar-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.similar-player:hover {
    background: #fddc00;
    color: #111;
    transform: translateX(4px);
    text-decoration: none;
}

.similar-player .player-name {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.similar-player:hover .player-name {
    color: #111;
    text-decoration: none;
}

.similar-player .player-score {
    font-family: 'scoreboard', Arial, sans-serif;
    font-size: 24px;
    color: #5a2425;
    font-weight: normal;
}

.similar-player:hover .player-score {
    color: #111;
}

/* ==========================================================================
   CTA Card
   ========================================================================== */

.cta-card {
    background: linear-gradient(135deg, #5a2425, #3d1819);
    color: white;
}

.cta-card h3 {
    color: #fddc00;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    display: block;
    font-family: 'redzone', Arial, sans-serif;
    font-size: 16px;
    background: #fddc00;
    color: #111;
    text-align: center;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-cta:hover {
    background: #ffe44d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 220, 0, 0.4);
}

/* ==========================================================================
   Related Content
   ========================================================================== */

.related-content {
    margin-top: 3rem;
}

.related-content h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.related-card h4 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 18px;
    color: #5a2425;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   Responsive - Tablet (≤ 991px)
   ========================================================================== */

@media (max-width: 991px) {
    .bio-content-grid {
        grid-template-columns: 1fr;
    }

    .player-profile-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .player-info h1 {
        font-size: 36px;
    }

    .player-details {
        justify-content: center;
    }

    .wonderlic-score-display {
        margin: 0 auto;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .score-comparisons {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive - Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .page-header-wrapper {
        padding: 1.5rem 0.5rem;
    }

    .content-card,
    .sidebar-card {
        padding: 1.5rem;
    }

    .player-profile-header {
        gap: 1.5rem;
    }

    .player-info h1 {
        font-size: 32px;
    }

    .wonderlic-score-display {
        padding: 1.5rem 2rem;
        min-width: 180px;
    }

    .score-value {
        font-size: 60px;
    }

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

/* ==========================================================================
   Responsive - Small Mobile (≤ 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .player-info h1 {
        font-size: 26px;
    }

    .wonderlic-score-display {
        padding: 1.25rem 1.5rem;
        min-width: 160px;
    }

    .score-value {
        font-size: 52px;
    }

    .score-label {
        font-size: 11px;
    }

    .score-rating {
        font-size: 13px;
    }

    .position-badge {
        font-size: 13px;
        padding: 0.4rem 0.8rem;
    }
}
