/* INSOMNIA HUB Common Theme Variables & Global Styles */
:root {
    --color-bg: #09090e;
    --color-surface: rgba(20, 20, 35, 0.45);
    --color-surface-hover: rgba(30, 30, 55, 0.65);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(138, 92, 246, 0.4);
    --color-text-main: #f3f4f6;
    --color-text-sub: #9ca3af;
    --color-neon-purple: #8b5cf6;
    --color-neon-blue: #3b82f6;
    --color-neon-pink: #ec4899;
    --font-outfit: 'Outfit', 'Noto Sans KR', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Shared Background layout */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/images/wallpaper.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    filter: blur(10px);
    z-index: -2;
    transform: scale(1.05); /* Avoid white edges from blur */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(9, 9, 14, 0.2) 0%, rgba(9, 9, 14, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Common Header style */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 10;
}

.logo-area {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-neon-purple);
    filter: blur(25px);
    opacity: 0.6;
    left: -10px;
}

/* Common Footer Style */
.main-footer {
    padding: 40px 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--color-text-sub);
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Global Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive UI Improvements */
@media (max-width: 768px) {
    .logo-area {
        display: none !important; /* Hide logo on phones to save space */
    }
    .main-header {
        justify-content: flex-end;
        padding: 20px 30px;
    }
}

/* Global utility classes */
.hide {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
