/* === GILLION FOODIE — CUSTOM STYLES === */

/* === HEADER (Gillion: white, logo left, nav right) === */
.stb-header {
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-header-border);
    position: relative;
    z-index: 1000;
}
.stb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.stb-header-logo { flex-shrink: 0; }
.stb-logo .custom-logo { max-height: 50px; width: auto; }
.stb-logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.stb-logo-name {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.stb-logo-tagline {
    font-family: var(--font-heading);
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* Navigation */
.stb-nav { flex: 1; display: flex; justify-content: flex-end; }
.stb-nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.stb-nav-list li { position: relative; }
.stb-nav-list a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dark);
    padding: 8px 0;
    transition: color 0.2s;
}
.stb-nav-list a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; opacity: 1; }
.stb-nav-list .current-menu-item > a,
.stb-nav-list .current_page_item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Submenu */
.stb-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 100;
}
.stb-nav-list li:hover > .sub-menu,
.stb-nav-list li:focus-within > .sub-menu { display: block; }
.stb-nav-list .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.6875rem;
}

/* Header actions */
.stb-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}
.stb-search-toggle {
    color: var(--color-text-dark);
    padding: 13px;
    transition: color 0.2s;
}
.stb-search-toggle:hover { color: var(--color-primary); }

/* Hamburger */
.stb-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.stb-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-dark);
    transition: all 0.3s ease;
}
.stb-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.stb-hamburger.active span:nth-child(2) { opacity: 0; }
.stb-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search overlay */
.stb-search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.stb-search-overlay.active { display: flex; }
.stb-search-overlay form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
}
.stb-search-overlay input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-bottom: 2px solid var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    background: transparent;
    outline: none;
}
.stb-search-overlay button[type="submit"] {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    padding: 16px;
}
.stb-search-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: var(--color-text-dark);
    line-height: 1;
}

/* === HERO GRID (3 cards, Gillion Foodie style) === */
.stb-hero-section {
    padding: 32px 0;
}
.stb-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stb-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4 / 5;
}
.stb-hero-card-link {
    display: block;
    width: 100%;
    height: 100%;
}
.stb-hero-card-link img,
.stb-hero-mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.stb-hero-card:hover img { transform: scale(1.05); }
.stb-hero-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}
.stb-hero-card-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
.stb-hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.stb-hero-cat {
    font-family: var(--font-heading);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255,255,255,0.95);
    color: #1a1a1a !important;
    padding: 4px 10px;
}
.stb-hero-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.15;
    margin: 6px 0 8px;
}
.stb-hero-card-title a { color: #fff; }
.stb-hero-card-title a:hover { opacity: 0.85; }
.stb-hero-card-meta {
    font-family: var(--font-heading);
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.stb-hero-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
}
.stb-hero-comments svg { opacity: 0.7; }

/* Mini slider (3rd card) */
.stb-hero-card--slider { position: relative; }
.stb-hero-mini-slider { position: relative; width: 100%; height: 100%; }
.stb-hero-mini-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.stb-hero-mini-slide.active { opacity: 1; position: relative; }
.stb-hero-mini-nav {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}
.stb-hero-mini-counter {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.stb-hero-mini-prev,
.stb-hero-mini-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border-radius: 50%;
    transition: background 0.2s;
}
.stb-hero-mini-prev:hover,
.stb-hero-mini-next:hover { background: rgba(0,0,0,0.6); }

/* === BILLBOARD CB (pod hero) === */
.stb-billboard-section { padding: 16px 0; }

/* === CATEGORY BAR === */
.stb-cat-bar {
    background: #1a1a1a;
    padding: 0;
}
.stb-cat-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.stb-cat-bar-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    padding: 14px 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}
.stb-cat-bar-item:hover,
.stb-cat-bar-item:focus {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-bottom-color: #ffffff;
}

/* === FOOTER (dark, 4 columns — wzorzec stoliki-kawowe) === */
.stb-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 48px 0 0;
}
.stb-footer a { color: var(--color-footer-text); }
.stb-footer a:hover { color: #fff; }

.stb-footer-top {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stb-footer-logo-wrap { margin-bottom: 16px; }
.stb-footer-logo {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
}
.stb-footer-logo::before,
.stb-footer-logo::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}
.stb-footer-logo::before { margin-bottom: 8px; }
.stb-footer-logo::after { margin-top: 8px; }
.stb-footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--color-footer-text);
}
.stb-footer-social {
    display: flex;
    gap: 12px;
}
.stb-footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}
.stb-footer-social a:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.stb-footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 16px;
}
.stb-footer-col ul { list-style: none; padding: 0; }
.stb-footer-col ul li { margin-bottom: 8px; }
.stb-footer-col ul a {
    font-size: 0.875rem;
    color: var(--color-footer-text);
}
.stb-footer-col ul a:hover { color: #fff; }

.stb-footer-bottom {
    padding: 20px 0;
    text-align: center;
}
.stb-footer-copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* === BACK TO TOP === */
.stb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #2B2B2B;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s;
}
.stb-back-to-top.visible { display: flex; }
.stb-back-to-top:hover { transform: translateY(-2px); background: #1a1a1a; }

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .stb-header-inner { height: 60px; }
    .stb-nav { display: none; }
    .stb-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        padding: 16px 0;
        z-index: 999;
    }
    .stb-nav.active .stb-nav-list {
        flex-direction: column;
        gap: 0;
    }
    .stb-nav.active .stb-nav-list a {
        display: block;
        padding: 12px 24px;
    }
    .stb-nav.active .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 16px;
    }
    .stb-hamburger { display: flex; }

    .stb-hero-card { aspect-ratio: 16 / 10; }
    .stb-hero-card-title { font-size: 1rem; }

    .stb-footer-top { grid-template-columns: 1fr; gap: 24px; }
    .stb-footer-logo { font-size: 1.5rem; }
}
