/* Base Reset & Variables */
:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #d4af37; /* Premium Gold */
    --accent-hover: #f9c945;
    --transition-speed: 0.3s;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-gold {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('assets/images/hero.jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3), rgba(5,5,5,1));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Stats Section */
.stats {
    background-color: var(--surface-color);
    padding: 50px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Players Section */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.player-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    position: relative;
}

.player-card:hover {
    transform: translateY(-10px);
}

.player-image {
    width: 100%;
    height: 350px;
    background-color: #2a2a2a;
    position: relative;
    overflow: hidden;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.player-card:hover .player-image img {
    transform: scale(1.05);
}

.player-info {
    padding: 20px;
}

.player-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.player-position {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.player-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    padding: 40px;
    background: linear-gradient(145deg, var(--card-bg), #151515);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

/* Contact / recruitment */
.recruitment {
    background: linear-gradient(rgba(5,5,5,0.8), rgba(5,5,5,0.9)), url('assets/images/hero.jpg') center/cover;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: grid;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.1);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 20px;
    background-color: var(--surface-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* simple hamburger later if requested */
    }
}

/* =========================================
   ADDITIONS FOR MULTI-PAGE
   ========================================= */

/* Profile Page Layout */
.profile-header {
    margin-top: 80px; /* Space for fixed header */
    padding: 60px 0;
    background: linear-gradient(to right, #0a0a0a, #1a1a1a);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.profile-img-container {
    width: 100%;
    height: 500px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.profile-meta {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    display: block;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.stats-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-box h4 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.stat-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

.news-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Enhancements for Player Cards to be clickable */
.player-card {
    position: relative; /* Ensure specific stacking context */
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Sit on top of everything */
    cursor: pointer;
}

/* Header Adjustments for non-hero pages */
body.subpage {
    background-color: var(--bg-color);
}

body.subpage header {
    background: rgba(5,5,5,1); /* solid by default */
}

/* Breadcrumb or simple back button */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.back-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-img-container {
        height: 400px;
    }
    .profile-info h1 {
        font-size: 2.5rem;
    }
}
