/*
 Theme Name: Kanapenz
 Theme URI: https://www.kanapenz.hu
 Description: Child theme a GeneratePress-hez
 Author: Androk
 Template: generatepress
 Version: 1.0
*/

/* =========================================================
   KANAPENZ – KEZDŐLAP (FULL-WIDTH, MODERN LAYOUT)
   ====================================================== */

/* Alap – háttér, tipográfia */

.tbsz-page {
    width: 100%;
    background: #f3f4f6;
    color: #0f172a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* GeneratePress: kezdőlap tényleges teljes szélességre húzása */

.home .site-content,
.home .site-content .content-area,
.home .site-content .inside-article,
.home .site-main,
.home .grid-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Kezdőlap: default cím/margó eltüntetése */

.home .inside-article > .entry-header,
.home .inside-article > .entry-content {
    padding: 0;
    margin: 0;
}

/* ---------------------------------------------------------
   HERO – teljes szélességű, modern nyitó szekció (világos)
   ------------------------------------------------------ */

.tbsz-hero {
    width: 100%;
    padding: 3.5rem 1.5rem 2.75rem;
    background:
        linear-gradient(to bottom right, rgba(61, 132, 160, 0.562), rgba(4, 18, 56, 0.349)),
        radial-gradient(circle at 0% 0%, rgba(13, 34, 80, 0.295), transparent 60%),
        var(--hero-bg, #eff6ff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.tbsz-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
        radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.16), transparent 55%);
    opacity: 1;
    pointer-events: none;
}

.tbsz-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tbsz-hero-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 720px;
}

.tbsz-hero-copy {
    max-width: 640px;
}

.tbsz-hero-title {
    font-size: clamp(2.4rem, 3.3vw, 3rem);
    line-height: 1.05;
    margin: 0.6rem 0 1rem;
    color: #f9fafb;
    letter-spacing: -0.03em;
}

.tbsz-hero-text {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.4rem;
    color: #ffffff;
    opacity: 0.95;
}

.tbsz-hero-text p {
    margin: 0 0 0.6rem;
}

.tbsz-hero-note {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: #e5e7eb;
    opacity: 0.9;
}

/* ---------------------------------------------------------
   Globális pill / gomb stílusok
   ------------------------------------------------------ */

.tbsz-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgb(253, 222, 45);
    background: rgba(42, 39, 15, 0.2);
    color: #f9fafb;
}

.tbsz-pill--soft {
    background: rgba(192, 167, 55, 0.116);
}

/* Hírlevél badge – külön stílus a hero pilltől */

.tbsz-newsletter .tbsz-pill--newsletter {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.tbsz-pill--weekly-report{
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

/* Gombok */

.tbsz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        transform 0.08s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tbsz-button--small {
    padding: 0.35rem 0.9rem;
    font-size: 0.76rem;
}

.tbsz-button--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.tbsz-button--primary:hover,
.tbsz-button--primary:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff !important; /* ne legyen fekete hoverkor */
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.tbsz-button--ghost {
    background: rgba(15, 23, 42, 0.12);
    border-color: rgba(249, 250, 251, 0.9);
    color: #f9fafb;
}

.tbsz-button--ghost:hover,
.tbsz-button--ghost:focus-visible {
    background: rgba(15, 23, 42, 0.22);
    border-color: #e5e7eb;
    color: #f9fafb !important; /* hoverkor se feketedjen el */
    transform: translateY(-1px);
}

/* Focus állapot – hozzáférhetőség */

.tbsz-button:focus-visible,
.tbsz-card-title a:focus-visible,
.tbsz-card-link:focus-visible,
.tbsz-sidebar-links a:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

/* Hero CTA sor */

.tbsz-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* ---------------------------------------------------------
   Fő tartalom – shell + layout
   ------------------------------------------------------ */

.tbsz-shell {
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    padding: 2.4rem 1.5rem 3rem;
    background: #ffffff;
    border-radius: 1.75rem 1.75rem 0 0;
    box-shadow:
        0 -10px 25px rgba(148, 163, 184, 0.25),
        0 12px 30px rgba(148, 163, 184, 0.18);
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.tbsz-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2.4rem;
}

.tbsz-main {
    min-width: 0;
}

.tbsz-section {
    margin-bottom: 2.6rem;
}

.tbsz-section-header {
    margin-bottom: 1.3rem;
}

.tbsz-section-title {
    font-size: 1.3rem;
    margin: 0 0 0.25rem;
    color: #0f172a;
}

/* Bevezető szöveg */

.tbsz-intro-body {
    max-width: 680px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
}

.tbsz-intro-list {
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
    list-style: none
}

.tbsz-intro-list li + li {
    margin-top: 0.25rem;
}

/* ---------------------------------------------------------
   Kártyák
   ------------------------------------------------------ */

.tbsz-card {
    position: relative;
    border-radius: 1.1rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 1.35rem 1.35rem 1.15rem;
    box-shadow: 0 10px 26px rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
    transition:
        box-shadow 0.16s ease,
        transform 0.12s ease,
        border-color 0.16s ease;
}

.tbsz-card--highlight {
    background:
        radial-gradient(circle at top left, #e0edff 0, #ffffff 55%),
        #ffffff;
    border-color: #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

.tbsz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.25);
    border-color: #d1d5db;
}

/* Header / footer sorok */

.tbsz-card-header-row,
.tbsz-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Meta sor a sima bejegyzésekhez */

.tbsz-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tbsz-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.tbsz-card-date {
    font-weight: 500;
}

.tbsz-card-readtime {
    font-size: 0.8rem;
    color: #6b7280;
}

.tbsz-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tbsz-card-title {
    font-size: 1.05rem;
    margin: 0;
}

.tbsz-card-title a {
    text-decoration: none;
    color: #0f172a;
}

.tbsz-card-title a:hover {
    color: #1d4ed8;
}

.tbsz-card-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Meta ikonok a dátum és olvasási idő előtt (Font Awesome) */

.tbsz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tbsz-meta-icon {
    font-size: 0.9em;
    opacity: 0.85;
    line-height: 1;
}

/* Borítókép a kártyákon – 16:9 */

.tbsz-card-thumb {
    display: block;
    border-radius: 0.9rem;
    overflow: hidden;
    margin: 0.05rem 0 0.6rem;
}

.tbsz-card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* "Tovább olvasom" gomb-szerű link */

.tbsz-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    color: #1d4ed8;
    background: #e0ecff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(129, 161, 246, 0.6);
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        transform 0.08s ease;
}

.tbsz-card-link:hover,
.tbsz-card-link:focus-visible {
    background: #2563eb;
    color: #ffffff !important; /* itt is fix, ne legyen fekete */
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

/* Kategória chip-ek */

.tbsz-card-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.tbsz-chip {
    font-size: 0.76rem;
    padding: 0.12rem 0.6rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.tbsz-chip--tiny {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
}

.tbsz-chip:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Grid a legutóbbi bejegyzésekhez */

.tbsz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

/* Empty state */

.tbsz-empty-state {
    border-radius: 1rem;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    padding: 1.4rem 1.3rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.tbsz-empty-state h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

/* ---------------------------------------------------------
   Oldalsáv
   ------------------------------------------------------ */

.tbsz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.tbsz-sidebar-section {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 12px 26px rgba(148, 163, 184, 0.16);
}

.tbsz-sidebar-title {
    font-size: 1rem;
    margin: 0 0 0.6rem;
    color: #0f172a;
}

.tbsz-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tbsz-sidebar-links li + li {
    margin-top: 0.35rem;
}

.tbsz-sidebar-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #2563eb;
}

.tbsz-sidebar-links a:hover {
    text-decoration: underline;
}

.tbsz-sidebar-steps {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: #4b5563;
}

.tbsz-sidebar-steps li + li {
    margin-top: 0.35rem;
}

.tbsz-sidebar-section--note .tbsz-sidebar-text {
    font-size: 0.86rem;
}

/* ---------------------------------------------------------
   Hirdetés blokkok
   ------------------------------------------------------ */

.tbsz-ad-wrapper {
    margin: 1.75rem 0 0.75rem;
}

.tbsz-ad-wrapper--between {
    margin-top: 2rem;
    margin-bottom: 2.1rem;
}

.tbsz-ad-wrapper--bottom {
    margin-top: 2.4rem;
}

.tbsz-ad-slot {
    position: relative;
    border-radius: 1rem;
    border: 1px dashed #e5e7eb;
    background: #f9fafb;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
    text-align: center;
}

.tbsz-ad-slot--wide {
    min-height: 110px;
}

.tbsz-ad-placeholder-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    text-align: center;
}

/* ---------------------------------------------------------
   Hírlevél szekció
   ------------------------------------------------------ */

.tbsz-newsletter {
    width: 100%;
    padding: 2.8rem 1.5rem 3.2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.tbsz-newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.2rem;
}

.tbsz-newsletter-copy {
    flex: 1 1 260px;
    color: #111827;
}

.tbsz-newsletter-title {
    margin: 0.7rem 0 0.7rem;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    color: #0f172a;
}

.tbsz-newsletter-text {
    margin: 0 0 0.9rem;
    font-size: 0.96rem;
    color: #4b5563;
}

.tbsz-newsletter-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.tbsz-newsletter-bullets li + li {
    margin-top: 0.3rem;
}

.tbsz-newsletter-form {
    flex: 1 1 260px;
}

/* ---------------------------------------------------------
   Reszponzív töréspontok
   ------------------------------------------------------ */

@media (max-width: 1024px) {
    .tbsz-hero-layout {
        max-width: 100%;
        gap: 2rem;
    }

    .tbsz-shell {
        border-radius: 1.5rem 1.5rem 0 0;
        margin-top: -1.2rem;
    }
}

@media (max-width: 900px) {
    .tbsz-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tbsz-sidebar {
        order: -1;
    }

    .tbsz-shell {
        margin-top: -1rem;
    }

    .tbsz-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .tbsz-hero {
        padding: 2.6rem 1.25rem 2.1rem;
    }

    .tbsz-shell {
        padding: 2.1rem 1.25rem 2.4rem;
        border-radius: 1.3rem 1.3rem 0 0;
        margin-top: -0.9rem;
    }

    .tbsz-hero-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tbsz-newsletter {
        padding: 2.4rem 1.25rem 2.8rem;
    }
}

@media (max-width: 480px) {
    .tbsz-hero-title {
        font-size: 2rem;
    }

    .tbsz-hero {
        padding-inline: 1rem;
    }

    .tbsz-shell {
        padding-inline: 1rem;
    }

    .tbsz-newsletter {
        padding-inline: 1rem;
    }

    .tbsz-newsletter-form form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Mozgás csökkentése, ha a user ezt kérte */

@media (prefers-reduced-motion: reduce) {
    .tbsz-button,
    .tbsz-card,
    .tbsz-newsletter-form button,
    .tbsz-newsletter-form input[type="submit"],
    .tbsz-card-link {
        transition: none !important;
    }
}
