/* ============================================
   CUSTOM.CSS — PenNews Fashion Magazine design
   Specific styles for kanapy-rozkladane.pl
   Author: Damian Zięba <biuro@semtak.pl>
   ============================================ */

/* ── Header Top Bar ────────────────────────── */
.stb-header-top {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.stb-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.stb-logo { flex-shrink: 0; }
.stb-logo .custom-logo { max-height: 50px; width: auto; }
.stb-logo-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 34px;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
}
.stb-logo-text:hover { color: var(--accent); }

/* ── Navigation Bar ────────────────────────── */
.stb-navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.stb-navbar.stb-navbar--scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stb-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

/* Menu */
.stb-menu {
    display: flex;
    align-items: center;
    gap: 0;
}
.stb-menu > li { position: relative; }
.stb-menu > li > a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-menu);
    font-size: var(--menu-size);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.stb-menu > li > a:hover,
.stb-menu > .current-menu-item > a,
.stb-menu > .current-menu-ancestor > a {
    color: var(--accent);
}

/* Submenu */
.stb-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 2px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}
.stb-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.stb-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-menu);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}
.stb-menu .sub-menu a:hover { color: var(--accent); background: var(--bg-surface); }
.stb-menu .sub-menu li:last-child a { border-bottom: none; }

/* Navbar right: search + hamburger */
.stb-navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.stb-search-toggle {
    color: var(--text-primary);
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stb-search-toggle:hover { color: var(--accent); }

.stb-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}
.stb-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ── Search Overlay ────────────────────────── */
.stb-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.stb-search-overlay.stb-active {
    opacity: 1;
    visibility: visible;
}
.stb-search-close {
    position: absolute;
    top: 32px;
    right: 32px;
    color: #fff;
    font-size: 40px;
    min-width: 44px;
    min-height: 44px;
}
.stb-search-form-overlay { width: 60%; max-width: 600px; }
.stb-search-input-overlay {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    padding: 16px 0;
    outline: none;
}
.stb-search-input-overlay::placeholder { color: rgba(255,255,255,0.4); }
.stb-search-input-overlay:focus { border-bottom-color: var(--accent); }

/* ── Mobile Menu ───────────────────────────── */
.stb-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
}
.stb-mobile-menu.stb-active { right: 0; }
.stb-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.stb-mobile-menu-title {
    font-family: var(--font-menu);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}
.stb-mobile-menu-close { font-size: 24px; color: var(--text-primary); }
.stb-mobile-nav a {
    display: block;
    padding: 12px 20px;
    font-family: var(--font-menu);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.stb-mobile-nav a:hover { color: var(--accent); }
.stb-mobile-nav .sub-menu a { padding-left: 40px; font-size: 12px; }
.stb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.stb-overlay.stb-active { opacity: 1; visibility: visible; }

/* ── Hero Section (Editor's Picks) ─────────── */
.stb-hero-wrapper {
    padding: 32px 0 48px;
}
.stb-hero-section {
    background: var(--bg-dark);
    padding: 32px 24px 40px;
}
.stb-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.stb-hero-card { position: relative; overflow: hidden; }
.stb-hero-card-link {
    display: block;
    position: relative;
}
.stb-hero-card-link img {
    width: 100%;
    aspect-ratio: 370/460;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.stb-hero-card-link:hover img { opacity: 0.8; }
.stb-hero-card-placeholder {
    aspect-ratio: 370/460;
    background: #333;
}
.stb-hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.stb-hero-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
}
.stb-hero-section .stb-meta { color: rgba(255,255,255,0.6); font-size: 11px; }

/* ── Featured Section (main + sidebar) ─────── */
.stb-featured-section { padding: 48px 0; }
.stb-featured-card { margin-bottom: 40px; }
.stb-featured-card-thumb {
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
}
.stb-featured-card-thumb img {
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.stb-featured-card:hover .stb-featured-card-thumb img {
    opacity: 0.85;
    transform: scale(1.01);
}
.stb-featured-card-body { text-align: center; }
.stb-featured-card-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0;
}
.stb-featured-card-title a:hover { color: var(--accent); }
.stb-featured-card-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-meta);
}
.stb-featured-card-meta a { color: var(--text-meta); }
.stb-featured-card-meta a:hover { color: var(--accent); }

/* ── 2+3 Grid (Makeup & Beauty style) ─────── */
.stb-grid-2plus3-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.stb-grid-2plus3-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Newsletter Section ────────────────────── */
.stb-newsletter-section {
    background: var(--bg-dark);
    padding: 64px 0;
    text-align: center;
}
.stb-newsletter-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.stb-newsletter-desc {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 32px;
    font-style: italic;
    font-family: var(--font-heading);
}
.stb-newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}
.stb-newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.stb-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.stb-newsletter-input:focus { border-color: var(--accent); }
.stb-newsletter-btn {
    padding: 14px 28px;
    background: var(--text-primary);
    color: #fff;
    font-family: var(--font-menu);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--text-primary);
    transition: var(--transition);
}
.stb-newsletter-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ── Footer ────────────────────────────────── */
.stb-footer { background: var(--bg-footer); color: rgba(255,255,255,0.7); }
.stb-footer-main {
    padding: 64px 0 32px;
    text-align: center;
}
.stb-footer-content { max-width: 600px; margin: 0 auto; }
.stb-footer-logo-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
}
.stb-footer-logo-text:hover { color: var(--accent); }
.stb-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.stb-footer-contact a { color: var(--accent); }
.stb-footer-contact a:hover { text-decoration: underline; }

.stb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.stb-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.stb-copyright { font-size: 12px; color: rgba(255,255,255,0.5); }
.stb-footer-menu {
    display: flex;
    gap: 24px;
}
.stb-footer-menu a {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stb-footer-menu a:hover { color: var(--accent); }

/* ── Back to Top ───────────────────────────── */
.stb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--text-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.stb-back-to-top.stb-visible { opacity: 1; visibility: visible; }
.stb-back-to-top:hover { background: var(--accent); }

/* ── Responsive overrides ──────────────────── */
@media (max-width: 1024px) {
    .stb-menu { display: none; }
    .stb-hamburger { display: flex; }
    .stb-hero-grid { grid-template-columns: repeat(2, 1fr); }
    .stb-header-banner { display: none; }
}

@media (max-width: 768px) {
    .stb-logo-text { font-size: 24px; }
    .stb-hero-card-title { font-size: 15px; }
    .stb-hero-card-overlay { padding: 16px 12px; }
    .stb-featured-card-title { font-size: 22px; }
    .stb-newsletter-form { flex-direction: column; gap: 12px; }
    .stb-newsletter-input,
    .stb-newsletter-btn { width: 100%; }
    .stb-footer-bottom-inner { flex-direction: column; text-align: center; }
    .stb-footer-menu { justify-content: center; }
}

@media (max-width: 480px) {
    .stb-hero-grid { gap: 2px; }
    .stb-hero-card-title { font-size: 13px; }
    .stb-hero-section .stb-meta { display: none; }
    .stb-featured-card-title { font-size: 20px; }
}
