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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.5);

    --accent-color: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.5);

    --bg-dark: #000000;
    --bg-card: #0f0f11;
    --bg-card-hover: #18181b;
    --bg-input: #18181b;

    --text-main: #ffffff;
    --text-muted: #9ca3af;

    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;

    --border-color: #27272a;
    --border-highlight: #3f3f46;

    --glass-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.2);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../IMG/BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* REDUCED OPACITY HERE: was 0.8/0.95, now 0.4/0.7 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: -1;
    pointer-events: none;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.8rem 1.5rem;
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.desktop-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.desktop-menu .menu-item {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.desktop-menu .menu-item:hover,
.desktop-menu .menu-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.menu-item.dropdown {
    position: relative;
    cursor: pointer;
}

.desktop-menu .dropdown-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 220px;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.menu-item.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.desktop-menu .dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.desktop-menu .dropdown-content a {
    display: block;
    color: var(--text-muted);
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.desktop-menu .dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white;
}


/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.glass-hub-card {
    background: rgba(15, 15, 23, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 3.5rem 4rem;
    max-width: 700px;
    width: 90%;
    animation: slideUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.hub-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* UPDATED BUTTON STYLE FOR LEGIBILITY */
.hub-cta-button {
    background: linear-gradient(90deg, #4f46e5, #0891b2);
    color: #ffffff;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-cta-button span {
    position: relative;
    z-index: 5;
}

.hub-cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(8, 145, 178, 0.6);
    background: linear-gradient(90deg, #6366f1, #06b6d4);
}

.hub-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-value.text-green {
    color: #10b981;
}

.stat-value.text-red {
    color: #ef4444;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- GLASS CONTAINERS --- */
.glass-container {
    background: rgba(15, 15, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 1200px;
    width: 90%;
    margin: 4rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-container h1,
.glass-container h2 {
    color: white;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

/* --- IMAGE GRID --- */
.image-card-grid,
.furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.image-card,
.furniture-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-card:hover,
.furniture-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.image-card img,
.furniture-item img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
}

.image-card h2,
.furniture-item h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

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

/* --- FORM CSS --- */
.form-container {
    background: rgba(15, 15, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    width: 100% !important;
    margin: 4rem auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

@media (min-width: 800px) {
    .form-container {
        width: 800px !important;
    }
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.1);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
    min-height: 450px;
}

.form-step.active {
    display: block;
    min-height: 450px;
}

#multi-step-form {
    width: 100%;
}

.form-step h2 {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.form-step p,
.form-step .step-info {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    min-height: 3em;
}

.form-step .form-group,
.form-step .buttons {
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

.form-group:focus-within label {
    color: var(--primary-color);
}

input,
select,
textarea {
    width: 100%;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: white !important;
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    background: #202025 !important;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

button.prev {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

button.prev:hover {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.error-message {
    color: #f43f5e !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

input.error {
    border-color: #f43f5e !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- ACCORDION FOR RULES --- */
.accordion {
    background: transparent;
    margin-bottom: 2rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin-bottom: 1.5rem !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
}

.accordion-header.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.accordion-body ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.accordion-body li {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    padding-left: 1rem;
    border-left: 2px solid var(--border-highlight);
    transition: border-color 0.3s;
}

.accordion-body li:hover {
    border-left-color: var(--accent-color);
}

/* Custom styles for Quill.js content in articles */
.article-content p {
    margin-bottom: 0.5rem;
}

.article-content ul,
.article-content ol {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc !important;
}

.article-content ol {
    list-style-type: decimal !important;
}

.article-content li {
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 0.5rem;
    list-style-position: outside;
    display: list-item !important;
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content li:hover {
    border-left: none !important;
}

.article-content li::before {
    display: none !important;
}

.article-content strong {
    font-weight: 600;
}

.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Custom styles for Quill.js content in FAQ */
.faq-content p {
    margin-bottom: 0.5rem;
}

.faq-content ul,
.faq-content ol {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc !important;
}

.faq-content ol {
    list-style-type: decimal !important;
}

.faq-content li {
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 0.5rem;
    list-style-position: outside;
    display: list-item !important;
}

.faq-content li:last-child {
    margin-bottom: 0;
}

.faq-content li:hover {
    border-left: none !important;
}

.faq-content li::before {
    display: none !important;
}

.faq-content strong {
    font-weight: 600;
}

.faq-content h1, .faq-content h2, .faq-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.accordion-body > ul > li:last-child {
    margin-bottom: 1.5rem !important;
}

.accordion-header.active+.accordion-body {
    padding: 1rem 2rem 2rem;
    max-height: 2000px;
}

/* --- RANKINGS / TABLES --- */
.glass-table-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    margin-top: 1rem;
}

.glass-table th {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.glass-table td {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    color: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.glass-table td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 700;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.glass-table td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    font-weight: 700;
    text-align: right;
}

.glass-table tr:hover td {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Medals */
.medal {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

.medal.gold {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.medal.silver {
    color: #c0c0c0;
    text-shadow: 0 0 10px #c0c0c0;
}

.medal.bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px #cd7f32;
}

/* Login Card */
.login-card {
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    animation: pulseGlow 3s infinite alternate;
}

.steam-login-btn {
    display: inline-block;
    background: #171a21;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: 1px solid #3c4049;
}

.steam-login-btn:hover {
    background: #2a475e;
    border-color: #66c0f4;
    transform: translateY(-2px);
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

/* Footer & Mobile */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

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

@media (max-width: 900px) {
    header {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .nav-container,
    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}