/* --- 1. ALAPOK --- */
body {
    background-color: #f8f9fa; /* Az oldal háttere (világos szürke) */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a { text-decoration: none; }

/* --- 2. HEADER --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* !!! ITT TUDOD ÁLLÍTANI A HÁTTÉRSZÍNT !!! */
    background-color: #808080; /* Jelenleg: Sötétkék */
    
    padding: 10px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 4px solid #000000; /* Alsó színes csík (kék) */
    height: 80px;
    color: #fff;
}

/* MENÜ */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #f1f5f9; /* Menü szöveg színe */
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 14px;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.1); /* Hover effekt */
    color: #fff;
}

/* Különleges gombok a menüben */
.nav-btn-register { background-color: #3b82f6; color: #fff !important; }
.nav-btn-login { background-color: #f8fafc; color: #334155 !important; }

/* --- 3. REKLÁMOK (#808080-hoz optimalizálva) --- */
.ad-column { flex: 1; display: flex; align-items: center; overflow: hidden; height: 60px; }
#right-ads { justify-content: flex-end; }

.ad-item { 
    display: none; 
    padding: 8px 20px; 
    
    /* A TRÜKK: Félig átlátszó FEKETE háttér. 
       A szürke (#808080) háttéren ez sötétszürkének fog látszani, 
       amitől a színes betűk "világítani" fognak. */
    background: rgba(0, 0, 0, 0.5); 
    
    /* Vékony sötét keret */
    border: 1px solid rgba(0, 0, 0, 0.3); 
    
    border-radius: 8px; 
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    
    /* Erős árnyék a doboznak, hogy elemelkedjen */
    box-shadow: 0 4px 8px rgba(0,0,0,0.4); 
}

.ad-item.active { display: inline-block; }

/* A SZÖVEG BEÁLLÍTÁSA */
.ad-link-text { 
    font-weight: 800; /* Jó vastag betű */
    letter-spacing: 0.5px;
    
    /* ERŐS FEKETE KONTÚR 
       Ez a titok! Fekete körvonalat ad a betűknek, 
       így bármilyen háttéren olvashatóak maradnak. */
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px 2px 5px rgba(0,0,0,0.8);
}

/* --- FÉNYLÉS --- */
.ad-item::after { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: -150%; 
    width: 50%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); 
    transform: skewX(-25deg); 
    animation: shine-animation 6s infinite; 
}

@keyframes shine-animation { 
    0% { left: -150%; } 
    20% { left: 150%; } 
    100% { left: 150%; } 
}
.ad-item.active { display: inline-block; }

/* A SZÖVEG (Most már éles lesz!) */
.ad-link-text { 
    font-weight: 800; /* Vastagabb betű */
    letter-spacing: 0.5px;
    /* Levettem a homályosító árnyékot, helyette éles kontúr: */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); 
}

/* --- A FÉNYLÉS (ANIMÁCIÓ) VISSZATÉRT --- */
.ad-item::after { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: -150%; 
    width: 50%; 
    height: 100%; 
    
    /* A fénycsík színe */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); 
    
    transform: skewX(-25deg); 
    animation: shine-animation 6s infinite; /* 6 másodpercenként csillran */
}

@keyframes shine-animation { 
    0% { left: -150%; } 
    20% { left: 150%; } /* Gyorsan átsuhan */
    100% { left: 150%; } 
}
/* --- 4. TARTALOM ÉS ELRENDEZÉS (Hogy ne essen szét) --- */
.content-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

h1, h2 { color: #1a202c; margin-top: 0; }


/* --- 5. QR LISTA (Rács nézet) --- */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qr-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.2s;
    position: relative;
}

.qr-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.qr-thumb {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.qr-title {
    font-weight: bold;
    margin: 5px 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}


/* --- 6. STATISZTIKA (Index oldalra) --- */
.stats-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    min-width: 150px;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


/* --- 7. GOMBOK --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    text-decoration: none;
}

.btn-primary { background-color: #10b981; color: white; } /* Zöld */
.btn-primary:hover { background-color: #059669; }

.btn-danger { 
    background-color: #ef4444; 
    color: white; 
    padding: 5px 10px; 
    font-size: 12px; 
}
.btn-danger:hover { background-color: #dc2626; }


/* --- 8. FORMOK --- */
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fdfdfd;
}

button { cursor: pointer; }


/* --- 9. MODAL ABLAKOK --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.full-qr-img {
    max-width: 100%;
    margin-bottom: 20px;
}

.gdpr-link {
    cursor: pointer;
    color: #ccc; /* Halványabb a sötét headerben */
    font-size: 12px;
}
.gdpr-link:hover { color: #fff; }