@font-face {
    font-family: "Minecraftia";
    src: url("/fonts/Minecraftia-Regular.ttf") format("truetype");
}

/* Root Variables - macOS inspired color scheme */
:root {
    --primary-orange: #f5a742;
    --primary-brown: #8B4513;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --card-bg: rgba(30, 30, 30, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-glow: rgba(245, 167, 66, 0.3);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    background: #0d0d0d;
    width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Minecraftia", Arial, sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    width: 100%;
}

/* Subtle Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(245, 167, 66, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 167, 66, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 69, 19, 0.02) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Ensure content is above background */
.navbar, .hero, .section, .footer {
    position: relative;
    z-index: 1;
}

/* macOS-style glassmorphism navbar */
.navbar {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar ul {
    display: flex;
    gap: 8px;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-brown));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-orange);
    background: rgba(245, 167, 66, 0.1);
    transform: translateY(-2px);
}

.navbar a:hover::before {
    width: 80%;
}

.navbar a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(245, 167, 66, 0.2), rgba(139, 69, 19, 0.2));
    border: 1px solid rgba(245, 167, 66, 0.3);
    box-shadow: 0 4px 15px rgba(245, 167, 66, 0.2);
}

/* Mobile Brand */
.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 20px;
}

.mobile-brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger:hover {
    opacity: 0.8;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active {
    transform: translateY(-50%);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: 18px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.mobile-menu a:hover {
    background: rgba(245, 167, 66, 0.15);
    color: var(--primary-orange);
    transform: translateX(8px);
}

.mobile-menu a.active {
    background: linear-gradient(135deg, rgba(245, 167, 66, 0.25), rgba(139, 69, 19, 0.25));
    color: var(--text-primary);
    border-left: 4px solid var(--primary-orange);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 167, 66, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(245, 167, 66, 0.4);
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(245, 167, 66, 0.3);
}

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

.glitch-text {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FFD700 50%, var(--primary-brown) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease-out;
    text-shadow: 0 0 30px rgba(245, 167, 66, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-out;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 167, 66, 0.3);
    box-shadow: 0 20px 60px rgba(245, 167, 66, 0.2);
}

.server-pill {
    padding: 24px 32px;
    width: fit-content;
    margin: 30px auto;
    max-width: 500px;
}

.pill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    gap: 20px;
}

.pill-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.code-inline {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--primary-orange);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid rgba(245, 167, 66, 0.2);
    user-select: all;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-inline:hover {
    background: rgba(245, 167, 66, 0.1);
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px #4ade80;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: #4ade80;
    font-size: 14px;
    font-weight: 600;
}

.updated {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.7;
}

/* Main Section */
.section {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 32px;
    animation: fadeIn 1s ease-out;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-orange), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 25px 70px rgba(245, 167, 66, 0.25);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(245, 167, 66, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    margin-top: 60px;
}

.footer p {
    font-size: 14px;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 1.2s ease-out;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    /* Hide desktop nav, show hamburger on mobile */
    .navbar ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-brand {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 60px 15px;
    }

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

    .section {
        width: 95%;
        padding: 20px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .section p {
        font-size: 1rem;
    }

    .server-pill {
        padding: 20px;
        max-width: 100%;
    }

    .pill-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .code-inline {
        font-size: 13px;
        padding: 8px 12px;
    }

    .pill-row {
        gap: 12px;
    }

    .tech-grid,
    .stats-grid,
    .player-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .online-players-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .tech-icon,
    .feature-icon,
    .stat-icon {
        font-size: 2.5rem;
    }

    .join-step {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }

    .step-number {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-text {
        font-size: 0.9rem;
    }
}

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

    .logo {
        width: 80px;
        height: 80px;
    }

    .navbar a {
        padding: 5px 8px;
        font-size: 10px;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 40px 10px;
    }

    .server-pill {
        padding: 16px;
    }

    .feature-card,
    .tech-card,
    .stat-card {
        padding: 20px;
    }

    .online-players-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px 15px;
        font-size: 12px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }
}

/* Online Players Grid */
.online-players-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.player-badge {
    background: rgba(245, 167, 66, 0.1);
    border: 1px solid rgba(245, 167, 66, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out backwards;
}

.player-badge:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(245, 167, 66, 0.3);
}

.player-badge .player-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(245, 167, 66, 0.1);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Join Steps Styling */
.join-platform {
    padding: 24px;
    margin-bottom: 20px;
}

.join-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out backwards;
}

.join-step:nth-child(1) { animation-delay: 0.1s; }
.join-step:nth-child(2) { animation-delay: 0.2s; }
.join-step:nth-child(3) { animation-delay: 0.3s; }
.join-step:nth-child(4) { animation-delay: 0.4s; }
.join-step:nth-child(5) { animation-delay: 0.5s; }

.join-step:hover {
    background: rgba(245, 167, 66, 0.1);
    transform: translateX(8px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-brown));
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.step-text {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-text strong {
    color: var(--text-primary);
}

.info-box {
    padding: 20px;
    background: rgba(245, 167, 66, 0.05);
    border: 1px solid rgba(245, 167, 66, 0.2);
}

.info-box h4 {
    margin: 0 0 12px 0;
}

/* Player Grid & Cards */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.player-card {
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 20px 50px rgba(245, 167, 66, 0.3);
}

.player-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(245, 167, 66, 0.4);
}

.player-card h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-name {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.player-role {
    color: var(--primary-orange);
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 20px 50px rgba(245, 167, 66, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(245, 167, 66, 0.5));
}

.stat-value {
    color: var(--primary-orange);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.tech-card {
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out backwards;
}

.tech-card:nth-child(1) { animation-delay: 0.1s; }
.tech-card:nth-child(2) { animation-delay: 0.2s; }
.tech-card:nth-child(3) { animation-delay: 0.3s; }
.tech-card:nth-child(4) { animation-delay: 0.4s; }
.tech-card:nth-child(5) { animation-delay: 0.5s; }
.tech-card:nth-child(6) { animation-delay: 0.6s; }

.tech-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 20px 50px rgba(245, 167, 66, 0.3);
}

.tech-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px rgba(245, 167, 66, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

.tech-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.community-section {
    margin: 20px 0;
}

/* Player Detail Cards for Who's Online */
.player-detail-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out backwards;
}

.player-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 15px 40px rgba(245, 167, 66, 0.3);
}

.player-avatar-online {
    position: relative;
    flex-shrink: 0;
}

.player-skin {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-brown));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(245, 167, 66, 0.4);
}

.online-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #4ade80;
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px #4ade80;
}

.player-info {
    flex: 1;
    text-align: left;
}

.player-username {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-label {
    min-width: 60px;
    font-weight: 600;
}

.stat-value {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Responsive adjustments for player detail cards */
@media (max-width: 768px) {
    .player-detail-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .player-info {
        text-align: center;
    }

    .player-username {
        font-size: 1.2rem;
    }

    .stat-item {
        justify-content: center;
    }
}

/* Live Player Counter */
.player-counter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(245, 167, 66, 0.15), rgba(139, 69, 19, 0.15));
    border: 1px solid rgba(245, 167, 66, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    margin: 24px auto;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(245, 167, 66, 0.2);
    transition: all 0.3s ease;
}

.player-counter:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(245, 167, 66, 0.3);
}

.player-counter-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.player-count {
    color: var(--primary-orange);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16/9;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 20px 60px rgba(245, 167, 66, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 3rem;
}

.gallery-placeholder p {
    font-size: 1rem;
    margin-top: 12px;
}

/* Server Rules */
.rules-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out backwards;
}

.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }
.rule-item:nth-child(5) { animation-delay: 0.5s; }

.rule-item:hover {
    background: rgba(245, 167, 66, 0.1);
    transform: translateX(8px);
}

.rule-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rule-content h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.rule-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Copy Button */
.copy-btn {
    background: rgba(245, 167, 66, 0.2);
    border: 1px solid rgba(245, 167, 66, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--primary-orange);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.copy-btn:hover {
    background: rgba(245, 167, 66, 0.3);
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Mobile improvements for copy button */
@media (max-width: 768px) {
    .copy-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    .copy-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Updates Section */
.updates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.update-card {
    padding: 24px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease-out backwards;
}

.update-card:nth-child(1) { animation-delay: 0.1s; }
.update-card:nth-child(2) { animation-delay: 0.2s; }
.update-card:nth-child(3) { animation-delay: 0.3s; }

.update-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 167, 66, 0.5);
    box-shadow: 0 20px 50px rgba(245, 167, 66, 0.3);
}

.update-date {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.update-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.update-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Discord Button */
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
    min-height: 56px;
}

.discord-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.4);
}

.discord-btn:active {
    transform: translateY(-2px);
}

/* Mobile improvements for Discord button */
@media (max-width: 768px) {
    .discord-btn {
        padding: 18px 36px;
        font-size: 1.15rem;
        min-height: 64px;
    }

    .discord-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* Player Skin Display */
.player-skin-avatar {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    image-rendering: pixelated;
    box-shadow: 0 8px 20px rgba(245, 167, 66, 0.4);
}

.player-skin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
