/* ==========================================================================
   VitálEgyensúly Magyarország - Clean Health & Weight Loss Theme (Hungarian)
   ========================================================================== */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --secondary: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.max-w-700 {
    max-width: 740px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.section {
    padding: 80px 0;
}

/* --- Felső értesítési sáv --- */
.top-bar {
    background: #064e3b;
    color: #a7f3d0;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

/* --- Header & Navigáció --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo-mark {
    color: var(--primary);
    font-size: 1.4rem;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* --- Gombok --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* --- Hero szekció --- */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.18;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
}

/* Hero Feature Card */
.hero-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.card-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
}

.card-header-text h3 {
    font-size: 1.15rem;
    color: var(--secondary);
}

.card-header-text .subtle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-body-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fact-row strong {
    color: var(--primary-dark);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #047857;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Szekció fejlécek --- */
.section-header {
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* --- Pillérek --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
}

/* --- BMI Kalkulátor szekció --- */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 56px;
    box-shadow: var(--shadow-md);
}

.calc-info h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.25;
}

.calc-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.calc-disclaimer small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
}

.calc-box {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.calc-result {
    margin-top: 24px;
    animation: fadeIn 0.4s ease-in-out;
}

.calc-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin-bottom: 20px;
}

.result-highlight {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    display: inline-block;
    margin: 4px 0;
}

.result-status {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.metric-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.metric-val.highlight {
    color: var(--primary-dark);
}

.result-advice {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Cikkek szekció --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-excerpt {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    font-weight: 600;
    color: var(--primary-dark);
}

.read-more:hover {
    text-decoration: underline;
}

/* --- Napi szokások --- */
.checklist-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.checklist-header {
    margin-bottom: 32px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.check-item:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

.check-item input[type="checkbox"] {
    display: none;
}

.custom-box {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.check-item input:checked + .custom-box {
    background-color: var(--primary);
    border-color: var(--primary);
}

.check-item input:checked + .custom-box::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.check-item input:checked ~ .item-text strong {
    text-decoration: line-through;
    color: var(--text-muted);
}

.item-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.item-text small {
    color: var(--text-muted);
    font-size: 0.825rem;
}

.checklist-progress {
    background: var(--bg-light);
    padding: 18px;
    border-radius: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* --- GYIK Harmonika --- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-icon {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.925rem;
}

.accordion-item.active .accordion-content {
    max-height: 250px;
    padding: 0 24px 20px 24px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* --- Lábléc / Footer --- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 72px 0 36px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-desc {
    max-width: 380px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.copyright {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

.disclaimer-row {
    border-top: 1px solid #1e293b;
    padding-top: 28px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- Cookie-banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 18px 24px;
    z-index: 9999;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cookie-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Animációk */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reszponzív nézet */
@media (max-width: 900px) {
    .hero-grid,
    .calc-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .calc-wrapper {
        padding: 32px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: flex;
    }
    .header-actions .btn {
        display: none;
    }
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .input-grid {
        grid-template-columns: 1fr;
    }
}
