:root {
    /* Trust Blue Paletta */
    --primary-blue: #4a6cf7;
    --primary-hover: #3855d6;
    --success-green: #16a34a;
    
    --bg-main: #ffffff;
    --bg-card: #f8fafc;
    --bg-input: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #475569;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

body { 
    margin: 0; 
    display: flex; 
    flex-direction: column; /* Hogy a tartalom és a footer egymás alá kerüljön */
    align-items: center; 
    min-height: 100vh; /* Kitölti a képernyőt akkor is, ha kevés a tartalom */
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Megakadályozza az esetleges vízszintes görgetést a 100vw miatt */
}

#app { width: 100%; max-width: 900px; padding: 20px; text-align: center; }

/* LOGO & HEADER */
.main-logo-img { width: 70px; height: auto; margin-bottom: 15px; display: inline-block; }
.logo { font-size: 2.8rem; font-weight: 900; letter-spacing: -1.5px; margin: 0; }
.logo .local { color: var(--primary-blue); } 
.logo .pixel-app { color: var(--text-heading); } 
.tagline { color: var(--text-muted); font-size: 0.75rem; font-weight: 700; margin-bottom: 45px; text-transform: uppercase; letter-spacing: 2px; }

/* ADS */
.ad-slot { background: #f1f5f9; border: 1px solid var(--border-color); border-radius: 16px; margin: 30px 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); position: relative; }
.top-ad { height: 90px; }
.middle-ad { min-height: 200px; margin: 60px 0; border-style: dashed; }
.ad-label { position: absolute; top: 6px; left: 12px; font-size: 9px; opacity: 0.6; }

/* DROPZONE */
.dropzone { 
    border: 2px dashed var(--border-color); 
    background: var(--bg-card); 
    border-radius: 24px; 
    padding: 60px 20px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.dropzone:hover { 
    border-color: var(--primary-blue); 
    background: #f1f5f9;
    transform: translateY(-2px);
}
.drop-main-text { font-size: 20px; font-weight: 800; color: var(--text-heading); margin: 15px 0 5px 0; } 
.drop-sub-text { font-size: 13px; color: var(--text-muted); }

/* EGYSÉGES DROPDOWN STÍLUS (Minden selectre) */
select { 
    appearance: none;
    -webkit-appearance: none;
    background-color: #f1f5f9; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat; 
    background-position: right 12px center; 
    background-size: 16px;
    color: var(--text-heading); 
    border: 1px solid var(--border-color); 
    padding: 0 35px 0 15px; 
    border-radius: 10px; 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    height: 42px; 
    transition: all 0.2s;
    outline: none;
}
select:hover { border-color: var(--primary-blue); background-color: #ffffff; }

/* FILE LIST UI */
.file-list-container { 
    background: var(--bg-main); border-radius: 16px; border: 1px solid var(--border-color); 
    margin: 25px 0; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
}

.file-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 16px 24px; 
    border-bottom: 1px solid var(--border-color); 
    gap: 20px; 
    position: relative; 
    overflow: hidden;
}
.file-row:last-child { border-bottom: none; }

.progress-bg {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: rgba(74, 108, 247, 0.1);
    width: 0%; z-index: 1;
    transition: width 0.3s ease;
    pointer-events: none;
}

.file-info { flex: 1; text-align: left; position: relative; z-index: 2; min-width: 0; }
.file-name { display: block; font-weight: 600; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta, .status-done { 
    font-size: 12px; 
    color: var(--text-muted); 
    display: inline-flex;    /* Ettől lesz rugalmas */
    align-items: center;     /* Középre zárja az ikont és szöveget */
    gap: 4px;                /* Távolság az esetleges ikon és szöveg között */
    line-height: 1; 
    margin-top: 5px;         /* Itt állítsd be a távolságot a fájlnévtől */
}

/* A Completed állapotnál maradjon meg a zöld szín */
.status-done { 
    color: var(--success-green) !important; 
    font-weight: 700; 
}

.row-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 2; }

/* Soron belüli specifikus select méret */
.file-row select { height: 36px; font-size: 12px; }

/* IKON GOMBOK */
.icon-btn { 
    background: #f1f5f9; 
    color: var(--text-main); 
    border: 1px solid var(--border-color); 
    width: 36px; height: 36px; 
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; transition: 0.2s; padding: 0; outline: none;
}
.icon-btn:hover { background: #e2e8f0; color: var(--text-heading); border-color: #cbd5e1; }
.icon-btn .material-symbols-rounded { font-size: 20px; }

/* ACTIONS (Lenti gombok) */
.global-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.convert-all-group { display: flex; align-items: center; gap: 12px; }
.convert-all-group select { height: 48px; min-width: 100px; } /* Az alsó select magassága illeszkedik a gombhoz */

.primary-btn { 
    background: var(--primary-blue); color: white; border: none; padding: 0 28px; 
    border-radius: 14px; font-weight: 700; cursor: pointer; display: flex; 
    align-items: center; gap: 10px; height: 48px; 
    box-shadow: 0 4px 14px rgba(74, 108, 247, 0.25);
    transition: 0.2s;
}
.primary-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74, 108, 247, 0.35); }

.secondary-btn { 
    background: white; color: var(--text-heading); border: 1px solid var(--border-color); 
    padding: 0 24px; border-radius: 14px; cursor: pointer; font-weight: 600; 
    height: 48px; display: flex; align-items: center; gap: 10px; transition: 0.2s;
}
.secondary-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

/* SEO & TARTALOM (Grid fixek) */
.seo-content { margin-top: 80px; text-align: center; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 100px; }
.seo-card { text-align: center; }
.card-icon-circle { 
    width: 64px; 
    height: 64px; 
    background: var(--primary-blue); /* Ez most a #4a6cf7-et használja */
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px auto; 
}
.seo-card h3 {
    color: var(--text-heading); /* Ez a sötétebb, #0f172a font szín */
    font-size: 18px;            /* Választható: egy picit nagyobbra vettem a hangsúly miatt */
    font-weight: 700;           /* Erősebb vastagság a jobb olvashatóságért */
    margin-bottom: 10px;
}

/* SEO kártyák szövegei (Fast & Secure stb.) */
.seo-card p {
    text-align: center;
    margin: 0 auto;
    max-width: 280px; /* Hogy ne nyúljon el túl szélesen a szöveg */
}

/* Lépések szövegei (Upload images stb.) */
.step-card p {
    text-align: center;
    color: var(--text-main);
    max-width: 250px; 
    margin: 0 auto; /* Ez biztosítja, hogy a középre igazított szövegtömb maga is középen legyen */
}

.feature-split { display: flex; align-items: center; gap: 60px; margin-bottom: 120px; }

.feature-text { 
    width: 50%; 
    text-align: left; /* Ez kényszeríti vissza balra a címet és a szöveget */
}
.feature-image { width: 50%; }
.feature-image img { width: 100%; border-radius: 24px;  }
/* FEATURE LIST TISZTÍTÁSA */
.feature-text ul {
    list-style: none;      /* Eltünteti a fekete pöttyöket */
    padding: 0;            /* Behúzás nullázása */
    margin: 25px 0;        /* Távolság a szövegtől */
}

.feature-text li {
    display: flex;         /* Hogy az ikon és a szöveg egy vonalban legyen */
    align-items: center;   /* Függőleges középre igazítás */
    gap: 12px;             /* Távolság az ikon és a szöveg között */
    margin-bottom: 12px;   /* Sorok közötti távolság */
    color: var(--text-main);
    font-weight: 500;
}

/* ZÖLD PIPÁK */
.feature-text li .material-symbols-rounded {
    color: var(--success-green); /* Használjuk a már definiált zöld változót */
    font-size: 22px;             /* Az ikon mérete */
}

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; margin-bottom: 120px; }

.step-number-dashed { 
    width: 54px; 
    height: 54px; 
    border: 2px dashed var(--primary-blue); 
    color: var(--primary-blue); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px auto; /* Átírva 25px-ről 20px-re, hogy egyezzen a Fast & Secure-rel */
    font-size: 22px; 
    font-weight: 800; 
}

/* A kártyák tartalmának középre igazítása */
.step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* A kártyák címeinek (pl. Upload images) színe és stílusa */
/* A LÉPÉSEK CÍMEI */
.step-card h3 {
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;           /* Ezt nullázzuk, mert a kör margója adja a távolságot */
    margin-bottom: 10px;
}

/* A leírások (Drag and drop...) középre igazítása */
.step-card p {
    text-align: center;
    color: var(--text-main);
    max-width: 250px; /* Hogy szép tömör maradjon a szöveg középen */
}

/* FAQ */
.faq-block { 
    max-width: 800px; 
    /* Növeljük az alsó margót 100px-re vagy 120px-re */
    margin: 100px auto 120px auto; 
}details { border-bottom: 1px solid var(--border-color); padding: 20px 0; cursor: pointer; }
summary { font-size: 18px; font-weight: 600; color: var(--text-heading); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; color: var(--primary-blue); font-size: 24px; }

.faq-block h2 {
    margin-bottom: 40px;
    text-align: center;
}

/* FAQ válaszok (lenyíló tartalom) balra igazítása */
details p {
    text-align: left;
    margin: 10px 0 0 0;
    padding-right: 40px; /* Hogy ne érjen rá a plusz jelre a szöveg */
    line-height: 1.6;
}

/* A kérdések (fejlécek) balra igazítása a lenyílóban */
summary {
    text-align: left;
    font-size: 18px; 
    font-weight: 600; 
    color: var(--text-heading); 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* OVERLAY */
#drop-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--primary-blue); display: none; 
    justify-content: center; align-items: center; z-index: 9999; color: white !important; text-align: center; 
}
#drop-overlay h2 { color: white !important; margin-top: 20px; }

h2 { font-size: 34px; font-weight: 800; color: var(--text-heading); }
.highlight { color: var(--primary-blue); }
footer { 
    width: 100%; /* Most már elég a 100%, ha a body-ban van */
    background-color: var(--text-heading); 
    color: #94a3b8; 
    padding: 60px 0; 
    margin-top: auto; /* Ez lenyomja a footer-t az oldal aljára, ha kevés a tartalom */
    text-align: center;
    border: none;
}

/* Opcionális: Ha vannak linkek a footerben, azok is nézzenek ki jól */
footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Távolság a logó, a hívószavak és a copyright között */
}

.footer-logo {
    width: 40px; /* Állítsd be a neked tetsző méretet */
    height: auto;
    margin-bottom: 5px;
    opacity: 0.9;
}

.footer-trust-text {
    color: #ffffff; /* Fehér szín a hívószavaknak, hogy kiemelkedjenek */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 15px; /* Ez a plusz hely a hívószavak és a copyright között */
}

.hidden { display: none !important; }

@media (max-width: 768px) {
    .seo-grid, .step-grid, .feature-split { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
    .feature-text, .feature-image { width: 100%; }
    .global-actions { flex-direction: column; gap: 20px; }
}

.feature-bg-wrapper {
    /* Teljes szélességű kifutás */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* Halvány szürke háttér */
    background-color: #f8fafc; /* Nagyon finom szürke, ami illik a modern dizájnhoz */
    
    /* Térközök a sávon belül, hogy ne legyen szűk */
    padding: 10px 0; 
    margin-top: 40px;
    margin-bottom: 120px;
}

/* Biztosítsuk, hogy a belső tartalom továbbra is középen maradjon a 900px-ben */
.feature-bg-wrapper .feature-split {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1e293b;
    color: #f8fafc;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.3);
    border-top: 1px solid #334155;
    visibility: visible !important; /* Kényszerítjük a megjelenést teszthez */
}

.cookie-content {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-bar p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0; /* Ne engedje összenyomni a gombokat */
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn.primary {
    background: #4a6cf7;
    color: white;
}

.cookie-btn.primary:hover {
    background: #3b59d9;
}

.cookie-btn.secondary {
    background: #334155;
    color: #f8fafc;
}

.cookie-btn.secondary:hover {
    background: #475569;
}

/* Mobilra optimalizált süti sáv */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-btns {
        width: 100%;
        justify-content: center;
    }
}

/* Globális box-sizing minden elemre - ez megakadályozza a kilógást */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fő tartalom igazítása mobilon */
main {
    width: 100%;
    max-width: 1100px;
    padding: 0 20px; /* Itt adunk neki egy kis biztonsági sávot a szélétől */
    margin: 0 auto;
}

/* Alapértelmezett állapot (+) */
details summary::after {
    content: "+";
    float: right;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease; /* Finom forgásért */
}

/* Nyitott állapot (X vagy elforgatott +) */
details[open] summary::after {
    content: "+"; /* Maradhat a +, de elforgatjuk */
    transform: rotate(45deg); /* 45 fokos forgatástól lesz belőle X */
    color: #4a6cf7; /* Opcionális: ilyenkor kaphat egy kis színt is */
}

/* Szebb térköz a kérdés és a válasz között */
details[open] summary {
    margin-bottom: 15px;
}