/* ============================================================
   PLAYER-DETAIL.CSS — Page-specific styles for player-detail.html
   ============================================================ */

/* ============ PAGE HERO ============ */
.page-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--primary);
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0f1e, #1e3a5f);
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    background: rgba(255,255,255,0.06);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }

.player-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.player-hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 0 0 0 8px rgba(232,25,44,0.2);
    background: var(--surface);
    flex-shrink: 0;
}
.player-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-hero-info h1 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.player-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 12px;
}
.player-hero-info p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}
.player-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.hero-stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}
.hero-stat-item .stat-value {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-item .stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ MAIN LAYOUT ============ */
.main-wrap {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 16px;
}
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 48px 0 60px;
    align-items: start;
}

/* ============ DETAIL CONTENT ============ */
.detail-content {
    min-width: 0;
}

/* Stats Grid */
.stats-grid-custom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.stat-card .stat-number {
    font-family: "Oswald", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-card .stat-title {
    font-size: 12px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
}

/* Info Section */
.info-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}
.info-section h3 {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.info-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    min-width: 100px;
}
.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Bio Section */
.bio-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}
.bio-section h3 {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.bio-section p {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.8;
}

/* Career Timeline */
.timeline-mini {
    margin-top: 24px;
}
.timeline-item-mini {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}
.timeline-year {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    min-width: 70px;
}
.timeline-text {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
}
.timeline-text strong {
    color: var(--text);
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold), #f97316);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.achievement-badge i {
    font-size: 11px;
}

/* Related Players */
.related-players {
    margin-top: 32px;
}
.related-players h3 {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.related-card-img {
    height: 120px;
    overflow: hidden;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-card-body {
    padding: 12px;
    text-align: center;
}
.related-card-body h4 {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.related-card-body p {
    font-size: 11px;
    color: var(--text3);
}

/* ============ SIDEBAR ============ */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-widget {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}
.widget-title {
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--accent);
}
.social-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-stat-item {
display: flex;
    /* align-items: center; */
    flex-direction: column;
    /* justify-content: space-between; */
    padding: 10px;
    background: var(--surface2);
    border-radius: var(--radius-sm);
}
.social-stat-item i {
    font-size: 18px;
}
.social-stat-item .stat {
    font-weight: 700;
    color: var(--text);
}
.follow-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    display: inline-block;
    transition: all var(--transition);
}
.follow-btn:hover {
    background: #c7152a;
    transform: translateY(-2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 768px) {
    .stats-grid-custom { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-sidebar { grid-template-columns: 1fr; }
    .player-hero-content { flex-direction: column; text-align: center; }
    .player-hero-avatar { width: 140px; height: 140px; }
    .player-hero-stats { justify-content: center; }
}
@media (max-width: 480px) {
    .stats-grid-custom { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   PLAYER-DETAIL.CSS ADDITIONS
   Add these rules to your existing player-detail.css file
   ============================================================ */

/* -- hero social buttons -- */
.player-hero-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.hero-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 14px;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* -- bio content (rich text) -- */
.bio-content {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.8;
}
.bio-content p { margin-bottom: 12px; }
.bio-content ul, .bio-content ol { padding-left: 20px; margin-bottom: 12px; }
.bio-content li { margin-bottom: 6px; }
.bio-content strong { color: var(--text); }
.bio-content a { color: var(--accent); }

/* -- back to players buttons -- */
.btn-back-players {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition);
    width: 100%;
}
.btn-back-players:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* -- stats-grid-custom: responsive for many stats -- */
.stats-grid-custom {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* -- page-hero bg when player image is used -- */
.page-hero-bg {
    filter: brightness(0.35) blur(2px);
}

/* ============ SECTION HEADER WITH PLAYER IMAGE ============ */
.info-section h3,
.bio-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 232, 25, 44), 0.1);
    transition: all var(--transition);
}

.section-player-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback icon styling when image fails */
.section-icon-wrap i {
    font-size: 16px;
    color: var(--accent);
}

/* Hover effect */
.section-icon-wrap:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb, 232, 25, 44), 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-icon-wrap {
        width: 30px;
        height: 30px;
    }
    
    .info-section h3,
    .bio-section h3 {
        gap: 10px;
    }
}
