/* DESIGN SYSTEM APPLIED */

/* ==========================================================================
   BAR I PRZYJACIELE - GLOBAL STYLES (v2.0)
   ========================================================================== */

/* --- Configuration & Variables (Design Tokens) --- */
:root {
    /* Colors - Reduced Palette */
    --primary: #C5A059;
    --primary-light: #E5C585;
    --primary-dim: #8a703d;
    
    --bg-dark: #050505;
    --bg-surface: #0f1115;
    --bg-card: rgba(255, 255, 255, 0.02);
    
    --text-main: #EAEAEA;
    --text-muted: #888888;
    
    /* Typography - Standardized Scale */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    
    --size-h1: 3rem;       /* 48px */
    --size-h2: 2.25rem;    /* 36px */
    --size-h3: 1.75rem;    /* 28px */
    --size-h4: 1.5rem;     /* 24px */
    --size-p: 1rem;        /* 16px */
    --size-small: 0.875rem; /* 14px */
    
    --line-heading: 1.2;
    --line-body: 1.6;
    
    /* Spacing & Layout */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    
    --radius-btn: 2px;     /* Elegant/Sharp */
    --radius-card: 12px;
    --radius-input: 2px;
    
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    --container-max: 1200px;
}

/* --- Global Reset & Atmosphere --- */
[x-cloak] { display: none !important; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--size-p);
    line-height: var(--line-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: var(--line-heading);
    margin-bottom: var(--space-md);
    font-weight: 400; /* Regular per spec */
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }

p {
    font-size: var(--size-p);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    max-width: 65ch; /* Comfortable reading width */
}

small, .text-sm {
    font-size: var(--size-small);
}

.text-primary { color: var(--primary); }
.text-italic { font-style: italic; font-weight: 300; }

/* --- Layout & Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }
}

/* --- Button System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: var(--radius-btn);
    text-decoration: none;
    min-height: 48px; /* Improved Mobile Touch Target */
    border: 1px solid transparent;
    font-weight: 500;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Primary Action */
.btn-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: rgba(197, 160, 89, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover::before { width: 100%; }
.btn-primary:hover { 
    color: var(--bg-dark); 
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.2);
}

/* Secondary Action */
.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Ghost / Text Only */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--primary);
}

/* Legacy Support (Mapping old classes to new system) */
.btn-gold, .btn-luxury {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid var(--primary);
    background: rgba(197, 160, 89, 0.03);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    cursor: pointer;
    min-height: 48px;
    font-weight: 500;
}
.btn-gold::before, .btn-luxury::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-gold:hover::before, .btn-luxury:hover::after { width: 100%; }
.btn-gold:hover, .btn-luxury:hover { 
    color: var(--bg-dark); 
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.2);
}


/* --- Cards & Containers --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: var(--radius-card);
    padding: var(--space-md); /* Standardized padding */
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* --- Inputs --- */
.input-minimal, .luxury-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: var(--space-sm) 0;
    transition: border-color 0.3s ease;
    width: 100%;
    font-family: var(--font-body);
    font-weight: 300;
    border-radius: var(--radius-input);
}

.input-minimal:focus, .luxury-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

/* --- Utilities & Animations --- */
.fade-up, .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.visible, .fade-up-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Mouse Icon Animation */
.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(197, 160, 89, 0.6);
    border-radius: 20px;
    position: relative;
    animation: mouseBounce 2s infinite;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes mouseBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}
