/* ---
    Theme: SQWARE Fluid Glass
    Author: Gemini
--- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #101010;
    --glass-bg: rgba(16, 16, 16, 0.5); /* #101010 with 50% opacity */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-heading: #F8FAFC;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-secondary: #4F46E5;
    --success: #10B981;
    --danger: #EF4444;
}

/* --- Base & Typography --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 800;
}

/* --- Background Aurora Effect --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    will-change: transform;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    animation: moveBlob1 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    animation: moveBlob2 30s infinite alternate ease-in-out;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--success);
    animation: moveBlob3 20s infinite alternate ease-in-out;
}

@keyframes moveBlob1 {
    from { transform: translate(-20%, -20%) rotate(0deg); }
    to { transform: translate(50%, 30%) rotate(360deg); }
}

@keyframes moveBlob2 {
    from { transform: translate(100vw, 10vh) rotate(0deg); }
    to { transform: translate(40vw, 90vh) rotate(-360deg); }
}

@keyframes moveBlob3 {
    from { transform: translate(10vw, 100vh) rotate(0deg); }
    to { transform: translate(80vw, -10vh) rotate(180deg); }
}


/* --- Glassmorphism Component Style --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* --- Navigation --- */
nav.glass-card {
    border-radius: 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}
.btn-primary:hover {
    background: #4a8ff7;
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-discord {
    background: #5865F2;
    color: white;
}
.btn-discord:hover {
    background: #4752c4;
}

/* --- Hero Section --- */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* --- Game Server Cards --- */
.server-card {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.server-card-img-container {
    position: relative;
    aspect-ratio: 4 / 3;
}
.server-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.server-card-img-container .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 16, 16, 0.9), transparent 60%);
}

.server-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.server-card-tags {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.server-tag {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Community Section --- */
.community-feature-card {
    text-align: center;
}
.community-feature-card .icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    background: var(--glass-bg);
}

/* --- Modal --- */
#game-instructions-modal {
    animation: modal-fade-in 0.3s ease-out;
}
#game-instructions-modal > .glass-card {
    animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
} 