/*
Theme Name: 4Street Coffee
Theme URI: https://barasuite.hu
Author: BaraSuite
Author URI: https://barasuite.hu
Description: Custom téma a 4Street Coffee számára – sötét design, teal accent, termék grid Sheets szinkronnal.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private
*/

:root {
    --teal: #77BFBE;
    --teal-dk: #5aadac;
    --black: #0a0a0a;
    --dark: #0d0d0d;
    --card: #1a1a1a;
    --white: #f5f5f5;
    --muted: #888;
    --border: #2a2a2a;
}

html { overflow-x: hidden; }
body { background: var(--black); overflow-x: hidden; }

.fs-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.fs-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(119,191,190,.18) 0%, transparent 70%),
        linear-gradient(to bottom, #0d2223 0%, #111a1a 40%, var(--black) 100%);
    border-bottom: 1px solid var(--border);
    padding: 72px 0 56px;
    text-align: center;
}
.fs-hero h1 {
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 14px;
}
.fs-hero h1 span { color: var(--teal); }
.fs-hero p { color: var(--muted); font-size: 16px; max-width: 460px; margin: 0 auto; }

/* ── MAIN ─────────────────────────────────────────────────────────────────── */
.fs-main { padding: 48px 0 80px; }

.entry-content h1,
.entry-content h2,
.entry-content h3 { color: var(--white); margin: 1.5em 0 .5em; }
.entry-content p   { color: var(--muted); margin-bottom: 1em; }
.entry-content ul,
.entry-content ol  { color: var(--muted); padding-left: 1.5em; margin-bottom: 1em; }

/* ── PROMÓCIÓS KÉPEK ──────────────────────────────────────────────────────── */
.fs-promo {
    padding: 32px 0 0;
}
.fs-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.fs-promo-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .2s, border-color .2s;
}
.fs-promo-item:hover { transform: translateY(-3px); border-color: var(--teal); }
.fs-promo-item img   { width: 100%; height: auto; display: block; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .fs-promo-grid { grid-template-columns: 1fr; }
    .fs-hero { padding: 48px 0 36px; }
}

/* ── HERO VARIÁNS HÁTTÉRKÉPPEL ────────────────────────────────────────────── */
.fs-hero--img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 96px 0 80px;
}
.fs-hero--img h1,
.fs-hero--img p { text-shadow: 0 1px 4px rgba(0,0,0,.4); }

.fs-hero-btn {
    display: inline-block;
    margin-top: 24px;
    background: #77BFBE;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    transition: background .2s, transform .15s;
}
.fs-hero-btn:hover {
    background: #5aadac;
    transform: translateY(-2px);
}

/* ── SZEKCIÓ CÍM ──────────────────────────────────────────────────────────── */
.fs-section-title {
    color: #f5f5f5;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    letter-spacing: -.5px;
}

/* ── OLDAL TARTALOM (Gutenberg) ───────────────────────────────────────────── */
.fs-page-content {
    padding: 56px 0 0;
}
.fs-page-content .wp-block-paragraph { color: #aaa; font-size: 16px; line-height: 1.7; margin-bottom: 1em; }
.fs-page-content .wp-block-heading   { color: #f5f5f5; }
.fs-page-content .wp-block-image img { border-radius: 12px; }
.fs-page-content .wp-block-button__link {
    background: #77BFBE !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.fs-page-content .wp-block-columns { gap: 24px; }
.fs-page-content figure { margin: 0; }

/* ── PROMÓCIÓS KÉPEK ──────────────────────────────────────────────────────── */
.fs-promo {
    padding: 56px 0 0;
}
.fs-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.fs-promo-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform .2s, border-color .2s;
}
.fs-promo-item:hover { transform: translateY(-3px); border-color: #77BFBE; }
.fs-promo-item img   { width: 100%; height: auto; display: block; }

/* ── BLOG / HÍREK ─────────────────────────────────────────────────────────── */
.fs-blog {
    padding: 56px 0 72px;
}
.fs-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.fs-blog-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.fs-blog-card:hover { border-color: #77BFBE; transform: translateY(-3px); }
.fs-blog-img { display: block; }
.fs-blog-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.fs-blog-body { padding: 18px 20px 22px; }
.fs-blog-date { font-size: 12px; color: #555; display: block; margin-bottom: 6px; }
.fs-blog-body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.fs-blog-body h3 a { color: #f5f5f5; }
.fs-blog-body h3 a:hover { color: #77BFBE; }
.fs-blog-body p { color: #888; font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.fs-blog-link { color: #77BFBE; font-size: 13px; font-weight: 600; }
.fs-blog-link:hover { color: #5aadac; }

@media (max-width: 600px) {
    .fs-promo-grid { grid-template-columns: 1fr; }
    .fs-blog-grid  { grid-template-columns: 1fr; }
}

/* ── KAPCSOLAT OLDAL ──────────────────────────────────────────────────────── */
.kapcsolat-wrap {
    padding: 56px 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.kapcsolat-title {
    color: #f5f5f5;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 32px;
}

.kapcsolat-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.kapcsolat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color .2s;
}
.kapcsolat-card:hover { border-color: #77BFBE; }

.kapcsolat-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.kapcsolat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #555;
    font-weight: 700;
    margin: 0 0 4px;
}

.kapcsolat-link {
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .2s;
}
.kapcsolat-link:hover { color: #77BFBE; }

/* Nyitvatartás */
.nyitvatartas { }
.nyitvatartas-title {
    color: #f5f5f5;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
}
.nyitvatartas-table {
    width: 100%;
    border-collapse: collapse;
}
.nyitvatartas-table td {
    padding: 10px 4px;
    font-size: 14px;
    color: #aaa;
    border-bottom: 1px solid #222;
}
.nyitvatartas-table td:first-child {
    color: #888;
    width: 50%;
    font-weight: 500;
}
.nyitvatartas-table td:last-child {
    color: #f5f5f5;
    font-weight: 600;
}
.nyit-highlight td { color: #77BFBE !important; }

/* Térkép */
.kapcsolat-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    position: sticky;
    top: 88px;
}
.kapcsolat-map {
    width: 100%;
    height: 520px;
    border: none;
    display: block;
    filter: grayscale(30%) invert(90%) hue-rotate(180deg);
}

@media (max-width: 768px) {
    .kapcsolat-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 60px;
    }
    .kapcsolat-map { height: 320px; }
    .kapcsolat-map-wrap { position: static; }
}

/* ── PROMO STACK (teljes szélesség, egymás alá) ───────────────────────────── */
.fs-promo-cim {
    color: #f5f5f5;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 28px;
    letter-spacing: -.3px;
}
.fs-promo-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fs-promo-row {
    width: 100%;
    line-height: 0;
}
.fs-promo-row img {
    width: 100%;
    height: auto;
    display: block;
}
.fs-promo-row a { display: block; }
.fs-promo-row a:hover img { opacity: .92; transition: opacity .2s; }

/* ── GUTENBERG TELJES SZÉLESSÉGŰ BLOKKOK ──────────────────────────────────── */
.fs-gutenberg-content { width: 100%; }
.fs-gutenberg-content .wp-block-image img { height: auto; max-height: 70vh; object-fit: contain; display: block; }
.fs-gutenberg-content .alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.fs-gutenberg-content .alignfull img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.fs-gutenberg-content .alignwide { width: 100%; max-width: 100%; }
.fs-gutenberg-content p { color: #aaa; font-size: 16px; line-height: 1.7; padding: 0 24px; max-width: 1160px; margin: 16px auto; }
.fs-gutenberg-content h2 { text-align: center; color: #f5f5f5; font-size: 22px; font-weight: 700; padding: 40px 24px 20px; max-width: 1160px; margin: 0 auto; }

/* ── TERMÉKEK SCROLL ANIMÁCIÓ ─────────────────────────────────────────────── */
@keyframes caCardIn {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ca-card.ca-animate {
    animation: caCardIn .4s ease forwards;
    will-change: transform, opacity;
}
/* opacity:0 JS-ből kerül be, nem CSS-ből → JS nélkül a kártyák látszanak */

/* ── VIDEÓS HERO ──────────────────────────────────────────────────────────── */
.fs-hero--media {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}
.fs-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.fs-hero-yt,
.fs-hero-mp4 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
}
/* YouTube iframe aspect ratio trükk */
.fs-hero-yt {
    width: 177.78vh; /* 16/9 * 100vh */
    height: 56.25vw; /* 9/16 * 100vw */
    min-width: 100%; min-height: 100%;
}
.fs-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
}
.fs-hero-content {
    position: relative;
    z-index: 1;
}

/* ── FÓKUSZ STÍLUSOK ──────────────────────────────────────────────────────── */
.ca-card:focus {
    outline: 2px solid #77BFBE;
    outline-offset: 2px;
}
.ca-filter-btn:focus-visible {
    outline: 2px solid #77BFBE;
    outline-offset: 2px;
}
.fs-nav a:focus-visible,
.fs-nav-mobile a:focus-visible {
    outline: 2px solid #77BFBE;
    outline-offset: 3px;
    border-radius: 3px;
}
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
