/* --- 1. Alapbeállítások és Változók --- */
:root {
    --primary: #d32f2f;
    --secondary: #1976d2;
    --gray: #f4f4f4;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Fejléc --- */
.main-header {
    background: #222;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.main-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.main-header h2 {
    margin: 10px 0;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.motto {
    font-style: italic;
    font-size: 1.2rem;
}

/* --- 3. Hero / Adományozási Szekció --- */
.hero-donation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; /* Két sor: felső a kép/widget, alsó a bank/qr */
    gap: 30px;
    margin-top: 30px;
}

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

/* Kép konténer és a kép maga */
.hero-image-container {
    height: 600px; /* Fixált maximum magasság, hogy ne vágja le a kép felét */
    width: 100%;
}

.main-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kitölti a helyet, de a 600px korlát miatt nem torzul el annyira */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- 4. Modern Adományozó Box és Widgetek --- */
.modern-box {
    background: var(--gray);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 600px; /* Pontosan akkora, mint a kép konténere */
    box-sizing: border-box;
    position: relative;
}

.target-toggle-container {
    text-align: center;
    flex-shrink: 0;
}

.toggle-label {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #444;
}

.modern-toggle {
    display: inline-flex;
    position: relative;
    background: #e0e0e0;
    padding: 4px;
    border-radius: 50px;
    width: 320px; /* Két 160px-es rész */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.modern-toggle input { display: none; }

.modern-toggle label {
    flex: 1;
    padding: 10px 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
    transition: color 0.3s;
    text-align: center;
}

.modern-toggle input:checked + label {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 156px;
    background: var(--secondary);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Csúszka mozgása a VR kiválasztásakor */
#target_vr:checked ~ .toggle-slider {
    transform: translateX(156px);
}

.widgets-display-area {
    flex-grow: 1;
    position: relative;
    background: white;
    border-radius: 10px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.widget-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.widget-slide.active {
    opacity: 1;
    visibility: visible;
}

.widget-slide iframe {
    width: 100%;
    height: 100%;
}

/* --- 5. Alsó kártyák (Bank és RePont) --- */
.static-block.stripe-top {
    background: var(--gray);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.blue-stripe {
    height: 6px;
    background: var(--secondary);
    width: 100%;
    flex-shrink: 0;
}

.card-inner {
    padding: 20px 25px;
}

.static-block h4 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.transfer-comments {
    padding-left: 20px;
    margin: 10px 0 0 0;
    list-style-type: disc;
    font-size: 0.9rem;
}

.repont-qr-img {
    display: block;
    margin: 10px auto;
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    object-fit: contain;
}

/* --- 6. Bio Szekció és Galéria --- */
.bio-section { margin: 60px 0; }

.bio-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #777;
    transition: color 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 4px solid var(--primary);
}

.bio-content {
    display: none;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    hyphens: auto;
}

.bio-content.active { display: block; }

.quote-box {
    background: #f9f9f9;
    padding: 30px;
    border-left: 5px solid var(--primary);
    margin: 35px 0;
    font-style: italic;
    font-weight: bold;
    text-align: center;
}

.haha-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    text-align: center;
    background: var(--gray);
    padding: 10px;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.bottom-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid #eee;
}

.btn-scroll { background-color: #27ae60; color: white; }
.btn-next-tab { background-color: var(--secondary); color: white; }

.btn-scroll, .btn-next-tab {
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

/* --- 7. Responzív Beállítások --- */
@media (max-width: 850px) {
    .hero-donation {
        grid-template-columns: 1fr;
    }

    .hero-image-container, .modern-box {
        height: auto;
        min-height: 400px;
    }

    .widgets-display-area {
        height: 500px;
    }

    .modern-toggle {
        width: 100%;
        max-width: 320px;
    }

    .bottom-cta, .bio-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

.dev-badge {
    background: #ff9800;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
    transform: rotate(5deg);
    z-index: 5;
}

/* Kép konténer javítása - most már azonos szürke háttérrel */
.hero-image-container {
    height: 600px;
    width: 100%;
    background-color: var(--gray); /* Ez azonos a többi kártya színével */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    /* Opcionális: egy nagyon halvány keret, ha el akarod választani az oldaltól */
    border: 1px solid rgba(0,0,0,0.05);
}

.main-hero-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Megtartja az arányokat, nem vág le semmit */
    display: block;
    /* Ha a képnek van fehér széle, az object-fit miatt most szépen belesimul a szürke háttérbe */
}

/* Biztosítsuk, hogy a modern-box (widget doboz) magassága is pontosan ekkora legyen */
.modern-box {
    background: var(--gray);
    padding: 25px;
    border-radius: 15px;
    height: 600px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modern-toggle {
    display: inline-flex;
    position: relative;
    background: #e0e0e0;
    padding: 4px;
    border-radius: 50px;
    width: 320px;
    box-sizing: border-box; /* Biztosítja a pontos szélességet */
    user-select: none;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 156px; /* 320px fele mínusz a padding */
    background: var(--secondary);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.main-footer {
    background: #222;
    color: #888;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

.visitor-stats {
    margin-top: 10px;
    color: #222; /* A kampány kék színe */
    font-weight: normal;
}

.visitor-stats strong {
    color: #222;
    font-size: 1.1rem;
}