/* ==========================================================================
   Garmin Designer - Apple Cupertino Inspired Design System (Light Luxury)
   ========================================================================== */

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

:root {
    /* Kolorystyka Apple Light System */
    --bg-body: #FBFBFD;
    --bg-surface: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #E8E8ED;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --bg-glass-card: rgba(255, 255, 255, 0.7);

    /* Apple Typografia & Odcienie */
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-muted: #86868B;
    --text-light: #A1A1A6;

    /* Apple Signature Colors */
    --accent-blue: #0071E3;
    --accent-blue-hover: #0077ED;
    --accent-cyan: #00C7BE;
    --accent-emerald: #34C759;
    --accent-orange: #FF9500;
    --accent-red: #FF3B30;
    --accent-purple: #AF52DE;
    --accent-indigo: #5856D6;

    /* Gradienty */
    --gradient-hero: linear-gradient(180deg, #1D1D1F 0%, #434344 100%);
    --gradient-blue: linear-gradient(135deg, #0071E3 0%, #4facfe 100%);
    --gradient-accent: linear-gradient(135deg, #0071E3 0%, #00C7BE 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 100%);

    /* Obramowania & Delikatne Kreski */
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-card: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 113, 227, 0.3);

    /* Cienie Przestrzenne Apple */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-bezel: 0 20px 48px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.08);

    /* Typografia */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Zaokrąglenia Apple */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Przejścia */
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.15s var(--ease-apple);
    --transition-normal: 0.3s var(--ease-apple);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Bazowe */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtelny gradient w tle */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 113, 227, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(0, 199, 190, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(175, 82, 222, 0.02) 0%, transparent 50%);
}

.app-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Nawigacja Apple Style (Frosted Glass Header)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-subtle);
}

.brand-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   Przyciski w Stylu Apple
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-success {
    background: var(--accent-emerald);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.25);
}

.btn-success:hover {
    background: #28a745;
    transform: scale(1.02);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero Section Apple Style
   ========================================================================== */
.hero-section {
    padding: 80px 0 50px;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow-subtle);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 20px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, #0071E3 0%, #00C7BE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.45;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 10px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.hero-feature-item span {
    color: var(--accent-emerald);
    font-weight: 700;
}

/* ==========================================================================
   Bento Grid / 3-Kroki
   ========================================================================== */
.steps-section {
    padding: 30px 0 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.step-badge-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   Katalog Zegarków & Filtry
   ========================================================================== */
.catalog-section {
    padding: 40px 0 90px;
}

.catalog-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.catalog-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    outline: none;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-normal);
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* Apple Segmented Control / Filtry */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid var(--border-subtle);
}

.filter-pill {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Siatka Zegarków (Apple Device Cards)
   ========================================================================== */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.device-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.device-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.25);
}

.device-preview-wrapper {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: radial-gradient(circle, #F8F8FA 0%, #EDEDF0 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

/* Fotorealistyczna miniatura zegarka */
.mini-watch-frame {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: #11141a;
    border: 8px solid #3a4252;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-watch-frame.rect {
    border-radius: 30px;
    width: 124px;
    height: 144px;
}

.mini-watch-screen {
    width: 86%;
    height: 86%;
    border-radius: 50%;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
}

.mini-watch-frame.rect .mini-watch-screen {
    border-radius: 18px;
}

.mini-time {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #FFFFFF;
}

.mini-data {
    font-size: 0.68rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.device-info {
    margin-bottom: 24px;
}

.device-series-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--accent-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.device-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.device-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.45;
}

.device-specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.spec-val {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Modale Apple Style
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    padding: 36px;
    box-shadow: var(--shadow-modal);
    transform: scale(0.94);
    transition: transform var(--transition-bounce);
    position: relative;
}

.modal-backdrop.active .modal-window {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ==========================================================================
   Stopka
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    background: var(--bg-secondary);
    margin-top: auto;
}

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

.footer a:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   Responsywność i Urządzenia Mobilne (Mobile First Apple Standards)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }
    .devices-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .navbar {
        padding: 10px 0;
    }
    .nav-container {
        gap: 8px;
    }
    .brand-logo {
        font-size: 1.05rem;
    }
    .brand-badge {
        display: none;
    }
    .btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
    .hero-section {
        padding: 40px 0 30px;
    }
    .hero-pill {
        font-size: 0.76rem;
        padding: 5px 12px;
        margin-bottom: 16px;
    }
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        background: var(--bg-secondary);
        padding: 16px 20px;
        border-radius: var(--radius-lg);
    }
    .catalog-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .search-box {
        max-width: 100%;
    }
    .filter-pills {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px;
        border-radius: var(--radius-lg);
    }
    .filter-pills::-webkit-scrollbar {
        display: none;
    }
    .filter-pill {
        white-space: nowrap;
        padding: 7px 14px;
        font-size: 0.82rem;
        flex-shrink: 0;
    }
    .devices-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .device-card {
        padding: 20px;
    }
    .device-preview-wrapper {
        height: 160px;
    }
    .mini-watch-frame {
        width: 110px;
        height: 110px;
        border-width: 6px;
    }
    .mini-time {
        font-size: 1.2rem;
    }
    .modal-window {
        padding: 24px 18px;
        max-height: 88vh;
        overflow-y: auto;
    }
    .modal-title {
        font-size: 1.3rem;
    }
    .step-card {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   Przełącznik Języka (Apple Language Switcher Pill)
   ========================================================================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--bg-surface);
    color: var(--accent-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Banner Zgody Cookies & RODO (Apple Frosted Glass)
   ========================================================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    width: calc(100% - 32px);
    max-width: 820px;
    background: var(--bg-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 18px 24px;
    box-shadow: var(--shadow-modal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.cookie-text a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 12px;
        padding: 16px;
    }
    .cookie-actions {
        width: 100%;
        gap: 6px;
    }
    .cookie-actions .btn {
        flex: 1;
        font-size: 0.78rem;
        padding: 8px 10px;
    }
}
