:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #333333;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Fix for iOS click bubbling */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.social-links a:hover .social-icon {
    transform: scale(1.2);
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #222 0%, #000 70%);
    padding-top: 80px;
    /* Account for fixed header or just add spacing */
    padding-bottom: 40px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 600px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fff;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 50px;
    color: #666;
}

/* Profile Page */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
}

.profile-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid #fff;
}

.player-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.player-details {
    margin-bottom: 30px;
    color: #ccc;
}

.player-details p {
    margin: 5px 0;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Sign Up Form */
.form-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #fff;
}

/* Navigation Button */
#nav-signup-btn {
    display: none;
    /* Hidden by default to prevent flash */
}

.nav-links .btn {
    background-color: #fff;
    color: #000;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

#nav-logout-btn {
    display: none;
    /* Hidden by default */
    cursor: pointer;
    margin-left: 15px;
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

#nav-logout-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Mobile Menu (Default) */
.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    height: -webkit-fill-available;
    width: 50%;
    min-width: 250px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    border-left: 1px solid #333;
    z-index: 9999;
    gap: 40px;
    padding-bottom: 60px;
}

/* Mobile Menu Order */
.nav-links .user-icon-link {
    order: -1;
    /* Move to top */
    margin-left: 0 !important;
    /* Reset margin for mobile */
    margin-bottom: 20px;
}

#nav-logout-btn {
    order: 100;
    /* Move to bottom */
    margin-left: 0 !important;
    margin-top: 20px;
}

.nav-links.active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: flex-end;
        -webkit-transform: none;
        transform: none;
        border-left: none;
        padding-bottom: 0;
        gap: 30px;
    }

    /* Reset Order for Desktop */
    .nav-links .user-icon-link {
        order: 0;
        margin-left: 15px !important;
        margin-bottom: 0;
    }

    #nav-logout-btn {
        order: 0;
        margin-left: 15px !important;
        margin-top: 0;
    }

    #nav-logout-btn {
        order: 0;
        margin-left: 15px !important;
        margin-top: 0;
    }
}

/* Product Showcase */
.product-showcase {
    margin-top: 80px;
    border-top: 1px solid #333;
    padding-top: 60px;
}

.product-showcase h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.showcase-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.showcase-image {
    flex: 1;
    width: 100%;
}

.showcase-image img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.showcase-image img:hover {
    transform: scale(1.02);
}

.showcase-text {
    flex: 1;
    padding: 20px;
}

.showcase-text h4 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.showcase-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.feature-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #eee;
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

@media (min-width: 768px) {
    .showcase-row {
        flex-direction: row;
        gap: 60px;
    }

    .showcase-row.reverse {
        flex-direction: row-reverse;
    }

    .about-content {
        max-width: 1000px;
        /* Widen container for showcase */
    }
}