/* ==========================================================================
   SZALONE NALEWKI - MODERN LUXURY THEME
   ========================================================================== */

:root {
    --sz-bg-dark: #0f0d13;
    --sz-card-bg: #18141d;
    --sz-card-border: rgba(243, 196, 107, 0.15);
    --sz-card-hover: rgba(243, 196, 107, 0.35);
    --sz-gold: #e5a93c;
    --sz-gold-light: #f5d082;
    --sz-crimson: #c83349;
    --sz-text-main: #f8fafc;
    --sz-text-muted: #94a3b8;
    --sz-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset / Base Wrappers */
.sz-hero, .sz-recipes-section, .sz-calc-section, .sz-guide-section {
    font-family: var(--sz-font-family);
    box-sizing: border-box;
    color: var(--sz-text-main);
}
.sz-hero *, .sz-recipes-section *, .sz-calc-section *, .sz-guide-section * {
    box-sizing: border-box;
}

/* ---------------- HERO SECTION ---------------- */
.sz-hero {
    position: relative;
    padding: 90px 20px 80px;
    background: radial-gradient(circle at 50% 20%, #2a1523 0%, #0f0d13 75%);
    text-align: center;
    border-bottom: 1px solid rgba(243, 196, 107, 0.12);
    overflow: hidden;
}
.sz-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(15, 13, 19, 0.85) 100%);
    pointer-events: none;
}
.sz-hero-content {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    z-index: 2;
}
.sz-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(229, 169, 60, 0.12);
    border: 1px solid rgba(229, 169, 60, 0.35);
    color: var(--sz-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 24px;
}
.sz-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--sz-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sz-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--sz-text-muted);
    margin: 0 auto 36px;
    max-width: 680px;
}

/* Search Box */
.sz-hero-search-wrap {
    max-width: 580px;
    margin: 0 auto 40px;
}
.sz-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(24, 20, 29, 0.9);
    border: 1px solid rgba(243, 196, 107, 0.3);
    border-radius: 50px;
    padding: 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 169, 60, 0.1);
    transition: all 0.25s ease;
}
.sz-search-box:focus-within {
    border-color: var(--sz-gold);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 169, 60, 0.25);
    transform: translateY(-2px);
}
.sz-search-icon {
    width: 22px;
    height: 22px;
    color: var(--sz-gold);
    margin-right: 12px;
    flex-shrink: 0;
}
.sz-search-box input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    padding: 10px 0 !important;
    box-shadow: none !important;
}
.sz-search-box input::placeholder {
    color: #64748b;
}
.sz-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
}
.sz-clear-btn:hover {
    color: #ffffff;
}

/* Stats Pill */
.sz-hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sz-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}
.sz-stat-val {
    font-weight: 700;
    color: var(--sz-gold);
}
.sz-stat-lbl {
    font-size: 0.9rem;
    color: var(--sz-text-muted);
}

/* ---------------- SECTION HEADERS ---------------- */
.sz-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.sz-section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--sz-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.sz-section-title {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.2;
}
.sz-section-desc {
    color: var(--sz-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------------- RECIPES SECTION & GRID ---------------- */
.sz-recipes-section {
    padding: 80px 20px;
    max-width: 1320px;
    margin: 0 auto;
}
.sz-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.sz-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sz-text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sz-filter-btn:hover {
    background: rgba(229, 169, 60, 0.1);
    color: #ffffff;
    border-color: rgba(229, 169, 60, 0.3);
}
.sz-filter-btn.active {
    background: linear-gradient(135deg, var(--sz-gold) 0%, #c88a24 100%);
    color: #0f0d13;
    border-color: var(--sz-gold);
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.35);
}

.sz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Recipe Card */
.sz-card {
    background: var(--sz-card-bg);
    border: 1px solid var(--sz-card-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.sz-card:hover {
    transform: translateY(-6px);
    border-color: var(--sz-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(229, 169, 60, 0.12);
}
.sz-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #110d16;
}
.sz-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}
.sz-card:hover .sz-card-media img {
    transform: scale(1.06);
}
.sz-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(15, 13, 19, 0.85);
    border: 1px solid rgba(243, 196, 107, 0.3);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sz-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sz-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sz-card-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}
.sz-meta-item {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sz-text-muted);
}
.sz-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}
.sz-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.sz-card-title a:hover {
    color: var(--sz-gold) !important;
}
.sz-card-desc {
    color: var(--sz-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 20px;
    flex: 1;
}
.sz-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sz-gold) !important;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}
.sz-card-btn:hover {
    gap: 12px;
    color: var(--sz-gold-light) !important;
}

.sz-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--sz-text-muted);
}
.sz-btn-reset {
    background: var(--sz-gold);
    color: #0f0d13;
    border: none;
    padding: 10px 22px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
}

/* ---------------- CALCULATOR SECTION ---------------- */
.sz-calc-section {
    padding: 40px 20px 80px;
    max-width: 1100px;
    margin: 0 auto;
}
.sz-calc-card {
    background: linear-gradient(145deg, #1d1724 0%, #120e17 100%);
    border: 1px solid rgba(229, 169, 60, 0.25);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(229, 169, 60, 0.08);
}
.sz-calc-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.sz-calc-badge {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--sz-gold);
    display: inline-block;
    margin-bottom: 10px;
}
.sz-calc-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
}
.sz-calc-subtitle {
    color: var(--sz-text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.sz-calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 860px) {
    .sz-calc-grid {
        grid-template-columns: 1fr;
    }
}

.sz-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.sz-field label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}
.sz-field label strong {
    color: var(--sz-gold);
    font-family: monospace;
    font-size: 1.05rem;
}
.sz-field input[type="range"] {
    width: 100%;
    accent-color: var(--sz-gold);
    cursor: pointer;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sz-calc-result-box {
    background: rgba(15, 13, 19, 0.7);
    border: 1px solid rgba(229, 169, 60, 0.3);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
}
.sz-result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sz-text-muted);
    margin-bottom: 8px;
}
.sz-result-main {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--sz-gold);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.sz-result-type {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.sz-result-details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.sz-res-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--sz-text-muted);
}
.sz-res-row strong {
    color: #ffffff;
}
.sz-calc-tip {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
    background: rgba(229, 169, 60, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
}

/* ---------------- GUIDE SECTION ---------------- */
.sz-guide-section {
    padding: 80px 20px 100px;
    max-width: 1240px;
    margin: 0 auto;
}
.sz-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}
.sz-guide-card {
    background: var(--sz-card-bg);
    border: 1px solid var(--sz-card-border);
    border-radius: 18px;
    padding: 32px 26px;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.sz-guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--sz-card-hover);
}
.sz-guide-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(229, 169, 60, 0.25);
    margin-bottom: 16px;
    font-family: monospace;
}
.sz-guide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}
.sz-guide-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sz-text-muted);
    margin: 0;
}
.sz-guide-card p strong {
    color: var(--sz-gold);
}

/* Seamless Avada container integration */
body.home #main,
body.home #content,
body.home #wrapper {
    background-color: var(--sz-bg-dark) !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.home .fusion-row {
    max-width: 100% !important;
    padding: 0 !important;
}
body.home .post-content {
    margin-bottom: 0 !important;
}
