/* =========================================
   1. ALAPVETŐ TÉMA ÉS HÁTTÉR
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Bungee+Tint&family=Indie+Flower&display=swap');
body {
    background-image: linear-gradient(rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.75)), url('images/bg.webp');
    background-color: #050505;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #f5f5f7;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================
   2. KÖZÖS FEJLÉC ÉS LÁBLÉC
========================================= */
.site-header {
    position: relative;
    width: 100%;
    height: 130px;
    background-color: #000000;
    margin-top: 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid #1a1a1a;
}

.header-bg-polygons {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: 
        linear-gradient(105deg, transparent 20%, rgba(150, 0, 0, 0.6) 21%, rgba(200, 20, 20, 0.9) 50%, transparent 51%),
        linear-gradient(45deg, transparent 40%, rgba(100, 0, 0, 0.7) 41%, rgba(180, 10, 10, 0.95) 70%, transparent 71%),
        linear-gradient(160deg, transparent 60%, rgba(80, 0, 0, 0.8) 61%, #d00000 90%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.custom-logo {
    height: 75px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.header-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
    color: #ffffff;
    font-style: italic;
    font-weight: 700;
}

.title-line {
    width: 60px;
    height: 1px;
    background-color: #666666;
    margin-top: 5px;
}

.site-header h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #dddddd;
    letter-spacing: 0.5px;
    margin: 5px 0 0 0;
}

.header-domain {
    position: absolute;
    right: 5%; /* Megegyezik a .site-header paddingjével, így pont vonalban lesz */
    bottom: 3px; /* <--- Ez határozza meg, milyen magasan legyen az aljától */
    z-index: 10; /* Biztosítja, hogy a piros poligonok felett maradjon */
    color: rgba(150, 150, 150, 0.4); /* <--- Tompább betűszín (a #dddddd fehér helyett) */
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.site-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.85);
    border-top: 1px solid #1a1a1a;
    text-align: center;
    box-sizing: border-box;
    margin-top: auto; /* Ez tolja le a láblécet! */
}

.site-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #666666;
    letter-spacing: 0.3px;
}

/* =========================================
   3. KÖZÖS CÍMSOR ÉS GOMBOK
========================================= */

/* --- KÖZÖS OLDAL CÍM (Indie Flower vagy Bungee Tint) --- */
.page-title {
    font-family: 'Indie Flower', cursive;
    font-size: 2.375rem;
    line-height: 1.25;
    font-weight: 400;
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border-bottom: 2px solid #d00000;
    padding-bottom: 10px;
    display: block; 
    width: 100%;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 950px) {
    .page-title {
        font-size: 1.6rem !important; /* Mobilon kisebb betűméret, így garantáltan kifér */
    }
}

.back-home {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 20px 0;
    padding: 8px 16px;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid #333333;
    border-radius: 8px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.back-home:hover {
    color: #ffffff;
    border-color: #666666;
    background: rgba(30, 30, 30, 0.9);
}

/* =========================================
   4. UNIVERZÁLIS KONTÉNEREK
========================================= */

/* Alap konténer, ami tartja a középre rendezést és a lábléc letolását */
.page-wrapper {
    position: relative;
    width: 100%;
    min-width: 0; /* Flexbox kifutás elleni védelem */
    padding: 20px 25px 50px 25px;
    box-sizing: border-box;
    flex: 1; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Szélesség szabályozó osztályok a különböző aloldalakhoz */
.w-1200 { max-width: 1200px; }
.w-950  { max-width: 950px; }
.w-800  { max-width: 800px; }
.w-780  { max-width: 780px; }
.w-700  { max-width: 700px; }

/* Az "Üveg Doboz" hatás, amit bármire rárakhatsz */
.glass-box {
    background: rgba(15, 15, 15, 0.85);
    min-width: 0; /* Flexbox kifutás elleni védelem */
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================================
   5. AKORDEON (LENYÍLÓ MENÜK) ÉS SUPPORT
========================================= */
.support-subtitle {
    text-align: center;
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 40px;
}

.accordion-item {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid #262626;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color 0.3s;
}

.accordion-item:hover {
    border-color: #333333;
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: rgba(20, 20, 20, 0.6);
}

.accordion-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.accordion-icon {
    font-size: 24px;
    color: #d00000;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 30px;
    background: rgba(10, 10, 10, 0.4);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.6s ease-in;
    padding: 25px 30px 30px 30px;
    border-top: 1px solid #222222;
}

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

.support-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-links li { margin-bottom: 12px; }
.support-links li:last-child { margin-bottom: 0; }

.support-links a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    display: inline-block;
}

.support-links a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* =========================================
   6. KAPCSOLAT / SZÖVEGES DOBOZOK
========================================= */
.contact-info p {
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.contact-info li {
    margin-bottom: 15px;
    color: #dddddd;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #ffffff;
    display: inline-block;
    width: 120px;
}

.contact-info a {
    color: #d00000;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ff1a1a;
    text-decoration: underline;
}

/* =========================================
   7. LIGHTBOX (KÉPNAGYÍTÁS)
========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

/* --- KÖZÖS VISSZA GOMB STÍLUS --- */
.back-home, .back-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    width: fit-content;
}

.back-home:hover, .back-btn:hover {
    background: #d00000;
    border-color: #d00000;
    transform: translateX(-3px);
    color: #ffffff;
}

/* =========================================
   8. MOBIL NÉZET
========================================= */
@media (max-width: 950px) {
    .site-header {
        height: auto;
        padding: 20px;
        flex-direction: column; /* oszlopba rendezi az elemeket mobilon */
        .header-domain {
        position: static; /* Mobilon kikapcsoljuk az abszolút pozíciót */
        transform: none; 
        margin-top: 15px; /* Távolság a felső elemektől */
        text-align: center;
    }
    }
    .header-domain {
        margin-left: 0; /* Mobilon megszüntetjük a jobbra tolást */
        margin-top: 5px; /* Kis térköz felülről */
    }
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .title-row {
        flex-direction: column;
        gap: 10px;
    }
    .title-line {
        display: none;
    }
    .site-header h1 {
        font-size: 1.8rem;
    }
    .back-home {
        margin: 15px auto;
        align-self: center;
    }
    .accordion-header {
        padding: 20px;
    }
    .accordion-header h3 {
        font-size: 17px;
    }
}

@media (max-width: 700px) {
    .contact-info strong {
        display: block;
        margin-bottom: 5px;
    }
    .glass-box {
        padding: 25px; /* Mobilon kisebb belső margó a dobozoknak */
    }
}
