/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --secondary-color: #fb923c;
    --accent-color: #06b6d4;
    --dark-bg: #171717;
    --darker-bg: #0a0a0a;
    --card-bg: #262626;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #404040;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.25rem;
}

.nav-username {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.45);
    background: rgba(6, 182, 212, 0.14);
    color: #67e8f9;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-family: inherit;
    line-height: 1;
    cursor: default;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-username.guest {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    text-transform: none;
    cursor: pointer;
}

.nav-username.guest:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-signout {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-signout:hover {
    border-color: #fb7185;
    color: #fb7185;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0%" stop-color="%23f97316" stop-opacity="0.1"/><stop offset="100%" stop-color="%23f97316" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 200px;
    height: 200px;
    border-radius: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

/* Featured Game Section */
.featured-game {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.game-showcase {
    display: flex;
    justify-content: center;
}

.game-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 800px;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
}

.game-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    min-width: 100px;
}

.stat i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.stat span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat small {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shared Page Section Layout */
.auth-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.auth-page-main {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.about-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: var(--darker-bg);
}

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

.team-member {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

/* Loading and error states for avatars */
.member-avatar .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ensure avatar images load smoothly */
.avatar-image {
    opacity: 0;
    animation: fadeInAvatar 0.5s ease forwards;
}

@keyframes fadeInAvatar {
    from { opacity: 0; }
    to { opacity: 1; }
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-age {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.member-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.member-social:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.member-social.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.member-social.youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.member-social.twitter:hover {
    border-color: #000000;
    color: #000000;
}

.member-social.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
}

.member-social.roblox:hover {
    border-color: #00a2ff;
    color: #00a2ff;
}

.member-social .x-icon {
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

/* Social Section */
.social {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link .x-icon {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

.social-link.discord:hover {
    border-color: #5865f2;
    color: #5865f2;
}

.social-link.roblox:hover {
    border-color: #00a2ff;
    color: #00a2ff;
}

.social-link.twitter:hover {
    border-color: #000000;
    color: #000000;
}

.social-link.youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.social-link.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-divider {
    margin: 0 0.45rem;
    color: var(--text-muted);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-shell {
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.legal-updated {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-section {
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
}

.legal-list {
    padding-left: 1.25rem;
}

.admin-intro {
    margin-bottom: 2rem;
}

.admin-tool-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.admin-tool-note {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-input,
.admin-textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.95);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus,
.admin-textarea:focus {
    border-color: rgba(249, 115, 22, 0.85);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.admin-textarea {
    resize: vertical;
    min-height: 140px;
}

.admin-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.admin-checkbox-row input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.admin-submit-btn {
    margin-top: 0.4rem;
    width: fit-content;
}

.admin-status {
    margin-top: 1rem;
    font-weight: 600;
}

.admin-status.success {
    color: #4ade80;
}

.admin-status.error {
    color: #fb7185;
}

.admin-status.info {
    color: #22d3ee;
}

.admin-results {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-result-summary {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--text-secondary);
}

.admin-target-result {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.75);
}

.admin-target-result h4 {
    margin-bottom: 0.35rem;
}

.admin-target-result p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.admin-target-errors {
    margin-top: 0.45rem;
    color: #fda4af;
    font-size: 0.84rem;
    white-space: pre-wrap;
}

.admin-access-denied {
    text-align: center;
    padding: 1rem 0;
}

.admin-denied-message {
    color: #fda4af;
    font-weight: 700;
}

/* Hero Community Stat */
.hero-community-stat {
    margin: 2rem 0;
}

.community-highlight {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.community-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.2);
}

.community-highlight i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.community-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.community-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
    }

    .nav-account {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    .nav-username {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .nav-signout {
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .game-card.featured {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .floating-card {
        padding: 2rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .community-highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .community-highlight i {
        font-size: 1.5rem;
    }

    .community-count {
        font-size: 2rem;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .community-stat {
        padding: 1rem;
        gap: 1rem;
    }

    .community-stat i {
        font-size: 2rem;
        min-width: 40px;
    }

    .stat-number {
        font-size: 2rem;
    }
}
