/* ==========================================================================
   QR MENÜ PRO — HEADER & FOOTER CSS (Premium SaaS Edition)
   ========================================================================== */

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.site-header.header--scrolled {
    background: rgba(8, 12, 20, 0.92);
    border-bottom-color: rgba(255,255,255,0.10);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.4);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
}

/* Logo */
.header__logo img { display: block; }

/* Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.header__nav-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.header__nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.header__nav-link.active {
    color: var(--text-primary);
}

/* Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.header__login-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.header__login-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* btn--sm override for header */
.btn--sm {
    padding: 7px 16px;
    font-size: 0.825rem;
}

/* Account dropdown */
.header__dropdown { position: relative; }

.header__account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.header__account-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
    background: var(--surface-3);
}

.header__account-avatar {
    width: 26px; height: 26px;
    background: var(--green-dim);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.header__account-chevron {
    transition: transform 0.2s;
    color: var(--text-muted);
}
.header__account-btn[aria-expanded="true"] .header__account-chevron {
    transform: rotate(180deg);
}

.header__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--surface-2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
    pointer-events: none;
}
.header__dropdown-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.header__dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.header__dropdown-item:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}
.header__dropdown-item--danger { color: #F87171; }
.header__dropdown-item--danger:hover {
    background: rgba(239,68,68,0.08);
    color: #F87171;
}

.header__dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Mobile toggle */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.header__mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.25s var(--ease-out);
    transform-origin: center;
}
.header__mobile-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__mobile-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.header__mobile-menu {
    display: none;
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out);
}
.header__mobile-menu.is-open {
    max-height: 480px;
}

.header__mobile-menu .container {
    padding-top: 16px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header__mobile-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.header__mobile-link:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}
.header__mobile-link--danger { color: #F87171; }
.header__mobile-link--danger:hover { background: rgba(239,68,68,0.08); }

.header__mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}
.header__mobile-cta {
    margin-top: 8px;
    border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 900px) {
    .header__nav  { display: none; }
    .header__actions { display: none; }
    .header__mobile-toggle { display: flex; }
    .header__mobile-menu   { display: block; }
    .header__inner { gap: 0; }
}


/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    padding-top: clamp(56px, 8vw, 80px);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: clamp(32px, 5vw, 60px);
    padding-bottom: 48px;
}

/* Brand col */
.footer__logo img { display: block; margin-bottom: 16px; }

.footer__brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 300px;
    margin: 0 0 24px;
}

.footer__socials {
    display: flex;
    gap: 8px;
}
.footer__social-link {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.footer__social-link:hover {
    background: var(--surface-3);
    color: var(--text-primary);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

/* Links cols */
.footer__links {
    display: flex;
    gap: clamp(24px, 4vw, 48px);
}

.footer__col h6,
.footer__col-title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
}
.footer__col ul li a:hover { color: var(--text-primary); }

/* Newsletter col */
.footer__newsletter p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.footer__newsletter-form {
    display: flex;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.footer__newsletter-form:focus-within {
    border-color: rgba(34,197,94,0.35);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}

.footer__newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 0;
}
.footer__newsletter-form input::placeholder { color: var(--text-muted); }

.footer__newsletter-form button {
    background: var(--green);
    border: none;
    padding: 0 14px;
    color: #052E16;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.footer__newsletter-form button:hover { background: #1FB050; }

/* Bottom bar */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer__copy strong { color: var(--text-secondary); font-weight: 600; }

.footer__bottom-links {
    display: flex;
    gap: 20px;
}
.footer__bottom-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
}
.footer__bottom-links a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 960px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
    }
    .footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
    .footer__brand {
        grid-column: span 1;
    }
    .footer__links {
        gap: 32px;
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
