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

/* --- CUSTOM VARIABLES --- */
:root {
    --bg-aura: #faf8f5;
    --bg-aura-rgb: 250, 248, 245;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --border-aura: rgba(218, 207, 191, 0.35);
    --border-aura-hover: rgba(218, 207, 191, 0.65);
    
    /* Calming Pastel Colors */
    --aura-peach: #ffbca0;
    --aura-peach-rgb: 255, 188, 160;
    --aura-lavender: #d5c7fc;
    --aura-lavender-rgb: 213, 199, 252;
    --aura-mint: #b5ebd2;
    --aura-mint-rgb: 181, 235, 210;
    --aura-gold: #e8c374;
    --aura-gold-rgb: 232, 195, 116;
    --aura-sky: #a5d8ff;
    --aura-sky-rgb: 165, 216, 255;
    
    --text-main: #3c3835;
    --text-muted: #7c756e;
    
    /* Font stacks */
    --font-sans: 'Outfit', sans-serif;
    --font-reading: 'Quicksand', sans-serif;
    
    /* Theme specs */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Soft organic organic shadows */
    --shadow-soft: 0 10px 40px rgba(182, 170, 153, 0.12);
    --shadow-glow: 0 10px 30px rgba(255, 188, 160, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(182, 170, 153, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-aura);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

/* --- FLUID AURIC BACKGROUNDS --- */
.aura-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #faf8f5 0%, #f4f0e6 100%);
}

.aura-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    mix-blend-mode: multiply;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.aura-blob--1 {
    width: 600px;
    height: 600px;
    background-color: var(--aura-peach);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.aura-blob--2 {
    width: 500px;
    height: 500px;
    background-color: var(--aura-lavender);
    bottom: -10%;
    right: -10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.aura-blob--3 {
    width: 450px;
    height: 450px;
    background-color: var(--aura-mint);
    top: 40%;
    left: 30%;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    }
    33% {
        transform: translate(50px, -40px) scale(1.1) rotate(60deg);
        border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
    }
    66% {
        transform: translate(-30px, 60px) scale(0.95) rotate(-45deg);
        border-radius: 60% 40% 70% 30% / 50% 50% 30% 70%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: rgba(218, 207, 191, 0.5);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--aura-peach);
}

/* --- LOADER --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-aura);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--transition-smooth), visibility 0.8s var(--transition-smooth);
}
.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, var(--aura-peach));
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 24px;
    animation: breathLoader 3s infinite alternate ease-in-out;
}
.loader__title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.loader__title span {
    color: var(--text-muted);
    font-weight: 300;
}
.loader__progress-bar {
    width: 180px;
    height: 3px;
    background: rgba(218, 207, 191, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}
.loader__progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--aura-peach), var(--aura-lavender));
    transform: translateX(-100%);
    animation: loaderBar 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.loader__text {
    font-family: var(--font-reading);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

@keyframes breathLoader {
    0% { transform: scale(0.92); box-shadow: 0 0 20px rgba(255, 188, 160, 0.15); }
    100% { transform: scale(1.08); box-shadow: 0 0 35px rgba(255, 188, 160, 0.4); }
}
@keyframes loaderBar {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(-35%); }
    100% { transform: translateX(0); }
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.section {
    padding: 80px 0;
    position: relative;
}
.list-none {
    list-style: none;
}
.hidden {
    display: none !important;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--aura-peach);
}

.text-lead {
    font-family: var(--font-reading);
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* --- GLASSMORPHIC CARDS --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-aura);
    border-radius: var(--border-radius-md);
    padding: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-smooth);
}
.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-aura-hover);
    box-shadow: var(--shadow-soft), var(--shadow-glass);
    transform: translateY(-2px);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    gap: 8px;
}

.btn--primary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-aura);
    box-shadow: var(--shadow-glass);
}
.btn--primary:hover {
    background: var(--aura-peach);
    border-color: var(--aura-peach);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn--accent {
    background: linear-gradient(135deg, var(--aura-peach), var(--aura-lavender));
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 188, 160, 0.25);
}
.btn--accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 188, 160, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-aura);
}
.btn--outline:hover {
    background: rgba(255,255,255,0.4);
    box-shadow: var(--shadow-glass);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.78rem;
}
.btn--lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}
.btn--full {
    width: 100%;
}

/* --- GLOBAL NAVIGATION HEADER --- */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.65);
    border-bottom: 1px solid rgba(218, 207, 191, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
}
.header.is-scrolled {
    background: rgba(250, 248, 245, 0.85);
    border-color: rgba(218, 207, 191, 0.4);
    box-shadow: 0 4px 30px rgba(182, 170, 153, 0.05);
}
.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.08em;
}
.header__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aura-peach), var(--aura-mint));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 188, 160, 0.15);
    transition: transform var(--transition-smooth);
}
.header__logo:hover .header__logo-icon {
    transform: rotate(180deg) scale(1.05);
}
.header__logo-text span {
    color: var(--text-muted);
    font-weight: 300;
}

.header__nav {
    display: none;
}
@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
}
.header__nav-list {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 24px);
}
.header__nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}
.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--aura-peach);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}
.header__nav-link:hover {
    color: var(--text-main);
}
.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.header__nav-link.is-active {
    color: var(--text-main);
    font-weight: 600;
}
.header__nav-link.is-active::after {
    transform: scaleX(1);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border-aura);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: var(--shadow-glass);
}
.header__user:hover {
    background: #fff;
    border-color: var(--aura-peach);
    box-shadow: 0 4px 15px rgba(255, 188, 160, 0.15);
}
.header__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aura-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}
.header__user-info {
    display: flex;
    flex-direction: column;
}
.header__username {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}
.header__userrank {
    font-family: var(--font-reading);
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Hamburger menu button */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
@media (min-width: 992px) {
    .burger { display: none; }
}
.burger__line {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 1px;
}
.burger.is-open .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-open .burger__line:nth-child(2) {
    opacity: 0;
}
.burger.is-open .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile full-screen navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(250, 248, 245, 0.95);
    border-left: 1px solid var(--border-aura);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 30px;
    transition: right var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mobile-menu.is-open {
    right: 0;
    box-shadow: -10px 0 30px rgba(182, 170, 153, 0.1);
}
.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu__link {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.mobile-menu__link:hover {
    color: var(--text-main);
}
.mobile-menu__link.is-active {
    color: var(--text-main);
    font-weight: 700;
}
.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(182, 170, 153, 0.15);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}
.header-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid rgba(218, 207, 191, 0.3);
    background: rgba(255, 255, 255, 0.3);
    padding: 40px 0 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.footer__text {
    font-family: var(--font-reading);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- MAIN WORKSPACE PADDING --- */
main {
    padding-top: var(--header-height);
    flex: 1;
}

/* --- FORM CONTROLS --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.02em;
}
.form-control {
    width: 100%;
    font-family: var(--font-reading);
    font-size: 0.9rem;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-aura);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(182, 170, 153, 0.03);
}
.form-control:focus {
    background: #fff;
    border-color: var(--aura-peach);
    box-shadow: 0 0 10px rgba(255, 188, 160, 0.2);
}
textarea.form-control {
    resize: vertical;
    min-height: 110px;
}
