:root {
    --primary: #b30000;
    --dark: #000000;       /* Teljesen fekete háttér a fejlécnek */
    --bg: #f8fafc;
    --text: #1e293b;
    --search-bg: #121212;  /* Sötétszürke a kereső doboznak */
    --input-bg: #222222;   /* Input mezők háttere */
}

/* ALAPOK */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.4; }

/* HEADER */
.main-nav { background: var(--dark); height: 60px; position: sticky; top: 0; z-index: 9999; display: flex; align-items: center; border-bottom: 1px solid #333; }
.nav-container { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 20px; font-weight: 900; color: white !important; text-decoration: none; }
.logo span { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.header-search input { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 20px; padding: 6px 15px; width: 160px; outline: none; font-size: 12px; }
.menu-trigger { color: white !important; text-decoration: none; font-weight: 800; font-size: 12px; cursor: pointer; }

/* MEGA MENU - GÖRGETHETŐ JAVÍTÁS */
.mega-menu { 
    display: none; 
    position: fixed; 
    top: 60px; 
    left: 0; 
    width: 100%; 
    max-height: calc(100vh - 60px); 
    overflow-y: auto; 
    background: white; 
    z-index: 10000; 
    padding: 30px 20px; 
    border-bottom: 4px solid var(--primary); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    scrollbar-width: thin; 
    scrollbar-color: var(--primary) #eee;
}

/* Görgetősáv Chrome/Safari */
.mega-menu::-webkit-scrollbar { width: 6px; }
.mega-menu::-webkit-scrollbar-track { background: #f1f1f1; }
.mega-menu::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.mega-menu.active { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.mega-col { display: flex; flex-direction: column; gap: 8px; }
.mega-col h4 { color: var(--primary); border-bottom: 2px solid #f1f5f9; margin-bottom: 12px; font-weight: 900; padding-bottom: 5px; font-size: 14px; }
.mega-col a { display: block; padding: 4px 0; text-decoration: none; color: #475569; font-size: 13px; font-weight: 700; transition: color 0.2s; }
.mega-col a:hover { color: var(--primary); }

/* KERESŐ SÁV */
.search-wrapper { background: var(--dark); padding: 0 0 20px 0; display: flex; justify-content: center; }
.search-container { background: var(--search-bg); border-radius: 8px; width: 95%; max-width: 800px; overflow: hidden; border: 1px solid #333; }
.search-trigger-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; cursor: pointer; background: #1a1a1a; font-weight: 900; font-size: 13px; color: #ffffff; }
.search-trigger-bar span { color: var(--primary); }
.acc-icon { font-size: 0.8rem; transition: transform 0.3s ease; opacity: 0.8; color: white; }
.search-container.open .acc-icon { transform: rotate(180deg); }
.search-content-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--search-bg); }
.search-container.open .search-content-wrapper { max-height: 600px; border-top: 1px solid #333; }

/* Tab gombok */
.tab-buttons { display: flex; background: #000; }
.tab-btn { flex: 1; padding: 12px; border: none; background: none; font-weight: 800; color: #888; cursor: pointer; }
.tab-btn.active { background: var(--search-bg); color: white; border-bottom: 3px solid var(--primary); }
.tab-content { padding: 15px; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* Select mezők */
select { height: 40px; border-radius: 6px; border: 1px solid #444; padding: 0 10px; width: 100%; background: var(--input-bg); color: white; outline: none; }
select:focus { border-color: var(--primary); }

/* PROMÓCIÓS GOMB */
.promo-button {
    background: #fff;
    color: #ff9900;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    border: 2px solid #ff9900;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255,153,0,0.2);
    transition: transform 0.2s ease;
}
.promo-button:hover { transform: scale(1.02); }

/* KERESÉSI TALÁLATOK */
.results-wrapper { display: flex; flex-direction: column; gap: 20px; width: 100%; margin: 30px 0; }
.car-card { display: flex; flex-direction: row; justify-content: space-between; background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; align-items: flex-start; }
.car-info h3 { margin: 0 0 5px 0; font-size: 1.5rem; color: #111; font-weight: 800; }
.tire-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.btn-amazon { background: #fbbf24; color: #111; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; text-decoration: none; border: 1px solid #d97706; }

/* HERO & GRID */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.dual-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; height: 450px; margin-bottom: 40px; }
.hero-card { position: relative; display: block; overflow: hidden; border-radius: 15px; text-decoration: none; color: white; height: 100%; }
.hero-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; }
.hero-card:hover .hero-bg { transform: scale(1.05); }

/* Hero szöveg olvashatóságának javítása */
.hero-content { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 30px 20px; }
.hero-content h2, .hero-content h3 { font-size: 2rem; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* Badge stílusok */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 10px;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
}
.badge.new { background: #16a34a; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-card { background: white; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid #e2e8f0; transition: 0.3s; display: flex; flex-direction: column; }
.grid-card:hover { transform: translateY(-5px); }
.grid-img { height: 200px; background-size: cover; background-position: center; }
.grid-text { padding: 20px; flex-grow: 1; }

@media (max-width: 768px) {
    .dual-hero { grid-template-columns: 1fr; height: auto; }
    .hero-card { height: 250px; }
    .article-grid { grid-template-columns: 1fr; }
    .car-card { flex-direction: column; }
}

/* REKLÁM SÁV - PRIME VIDEO UPDATE */
.inter-grid-ad {
    width: 100%; 
    margin: 40px 0; 
    padding: 50px 20px; 
    
    /* Alapértelmezett háttér, ha nincs specifikus kép */
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a); 
    
    border-radius: 12px; 
    border: 1px solid #333; 
    text-align: center; 
    color: white; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 15px;
    position: relative;
    overflow: hidden;
}

/* Külön osztály a Prime Video háttérképhez */
.inter-grid-ad.amazon-prime-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('img/prime-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Kis logó beállítása */
.small-logo {
    width: 100px; 
    height: auto; 
    display: block; 
    margin: 0 auto 10px auto;
}

/* Szövegek stílusa az olvashatóságért */
.inter-grid-ad h3 { 
    font-size: 1.6rem; 
    font-weight: 900; 
    color: #fff; 
    margin: 0; 
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.inter-grid-ad p {
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Gomb stílus */
.ad-btn { 
    background-color: #ff9900; 
    color: #000; 
    padding: 12px 30px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1rem; 
    transition: transform 0.2s, background-color 0.2s; 
    display: inline-block; 
}

.ad-btn:hover { 
    background-color: #e68a00; 
    transform: scale(1.05); 
}