/* Fejléc üzenet ikon */
.message-notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
    font-weight: bold;
    border: 2px solid #121212;
}

/* Alap stílusok és betűtípus (a régi header.php-ből) */
@font-face {
    font-family: 'WildWords';
    src: url('/font/wildwords-lower-3.ttf') format('truetype');
}
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --border-color: #444444;
    --highlight-color: #333333;
}
html, body { margin: 0; padding: 0; box-sizing: border-box; overflow-x: hidden; }
body { background-color: #1a1a1a; color: #e0e0e0; font-family: 'WildWords', sans-serif; }
*, *:before, *:after { box-sizing: inherit; }
a { text-decoration: none; color: inherit; }

/* Fejléc (a régi header.php-ből) */
header { background-color: #121212; padding: 5px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; }
.header-left, .header-right { }
.header-center { flex: 1; text-align: center; }
.header-right { text-align: right; }
.logo img { height: 60px; display: block; }

.nav-button { background-color: #2a2a2a; border: 1px solid #444; padding: 10px; border-radius: 8px; font-size: 1em; cursor: pointer; transition: background-color 0.2s; font-family: 'WildWords', sans-serif; color: var(--primary-text-color); display: inline-flex; align-items: center; justify-content: center; line-height: 0; position: relative; }
.nav-button:hover { background-color: #3a3a3a; }
.nav-button .nav-icon { height: 24px; width: 24px; }

.login-button { background-color: #2a2a2a; border: 1px solid #444; padding: 6px 12px; border-radius: 6px; font-size: 0.85em; cursor: pointer; transition: background-color 0.2s; font-family: Arial, Helvetica, sans-serif; color: var(--primary-text-color); text-decoration: none; }
.login-button:hover { background-color: #3a3a3a; }

/* Profil Menü (a régi header.php-ből) */
.profile-dropdown { position: relative; display: inline-block; }
.profile-pic-container { position: relative; display: inline-block; cursor: pointer; }
.profile-pic-container:hover .profile-pic { border-color: #e0e0e0; }
.notification-dot { position: absolute; bottom: 0px; right: 0px; width: 18px; height: 18px; background-color: #e74c3c; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; font-family: Arial, sans-serif; border: 2px solid #121212; pointer-events: none; }
.message-notification-badge { position: absolute; top: -5px; right: -8px; background-color: #e74c3c; color: white; border-radius: 50%; padding: 3px 7px; font-size: 1em; font-family: Arial, sans-serif; font-weight: bold; border: 2px solid #121212; min-width: 15px; text-align: center; }
.profile-pic { width: 60px; height: 60px; border-radius: 50%; cursor: pointer; border: 2px solid #555; transition: border-color 0.2s; object-fit: cover; }
.profile-pic:hover { border-color: #e0e0e0; }
.dropdown-content { display: none; position: absolute; right: 0; top: 55px; background-color: #1e1e1e; min-width: 180px; border: 1px solid #444; border-radius: 8px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4); z-index: 100; overflow: hidden; }
.dropdown-content a { color: #e0e0e0; padding: 12px 16px; text-decoration: none; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 0.9em; text-align: left; }
.dropdown-content a:hover { background-color: #3a3a3a; }
.show { display: block; }
.dropdown-content a.has-notification { color: #e74c3c !important; font-weight: bold; text-shadow: 0 0 8px rgba(231, 76, 60, 0.7); position: relative; }
.dropdown-content a.has-notification::after { content: '!'; margin-left: 8px; font-weight: bold; }

/* Auth Modál - JAVÍTOTT MOBILNÉZET */
.modal-overlay { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    justify-content: center; 
    align-items: center; 
    padding: 10px; /* Padding az oldalakra */
}

.modal-content { 
    background-color: #1a1a1a; 
    border-radius: 20px; 
    width: 100%; /* Teljes szélességet használja */
    max-width: 380px; /* Csökkentett max-szélesség */
    text-align: center; 
    position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    /* JAVÍTOTT PADDING MOBILRA */
    padding: 25px 20px 30px 20px; /* Csökkentett padding */
    margin: 0 auto; /* Középre igazítás */
}

.close-button { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    color: #aaa; 
    font-size: 24px; /* Kisebb bezáró gomb */
    font-weight: normal; 
    cursor: pointer; 
}
.close-button:hover { color: white; }

.auth-form-container .form-logo { 
    max-width: 100px; /* Kisebb logó */
    max-height: 100px; 
    width: auto; 
    height: auto; 
    margin-bottom: 15px; /* Kisebb margó */
}

.auth-form-container h2 { 
    font-size: 2.2em; /* Kisebb cím */
    margin-bottom: 20px; /* Kisebb margó */
    color: white; 
    font-family: 'WildWords', sans-serif;
    word-break: break-word; /* Szöveg törése ha szükséges */
}

.auth-form-container .form-subtitle { 
    color: #ffffff; 
    font-size: 35px; /* Kisebb alcím */
    margin-top: -5px; 
    margin-bottom: 15px; /* Kisebb margó */
    word-break: break-word; /* Szöveg törése */
}

.auth-input { 
    width: 100%; 
    background-color: transparent; 
    border: none; 
    border-bottom: 1px solid #666; 
    color: white; 
    padding: 8px 10px; /* Kisebb padding */
    margin-bottom: 20px; /* Kisebb margó */
    font-size: 1.1em; /* Kisebb betűméret */
    font-family: 'WildWords', sans-serif; 
    box-sizing: border-box; 
    text-indent: 2px; 
}
.auth-input:focus { outline: none; border-bottom-color: white; }
.auth-input::placeholder { color: #888; }

.auth-button { 
    background-color: white; 
    color: black; 
    border: none; 
    border-radius: 30px; 
    padding: 12px 0; /* Kisebb padding */
    width: 100%; 
    font-size: 1.1em; /* Kisebb betűméret */
    font-weight: normal; 
    font-family: 'WildWords', sans-serif; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: transform 0.2s; 
}
.auth-button:hover { transform: scale(1.03); }

.switch-form-text { 
    margin-top: 25px; /* Kisebb margó */
    color: #aaa; 
    font-size: 0.9em; /* Kisebb betűméret */
    line-height: 1.3; /* Jobb sorköz */
}
.switch-form-text a { 
    color: white; 
    font-weight: normal; 
    text-decoration: none; 
    cursor: pointer; 
}

.hidden { display: none; }
.input-with-status { position: relative; display: flex; align-items: center; }
.status-icon { position: absolute; right: 10px; height: 22px; }
.status-icon img { width: 22px; height: 22px; vertical-align: middle; }
.auth-input.valid { border-bottom-color: #28a745; color: #28a745; }
.auth-input.invalid { border-bottom-color: #dc3545; color: #dc3545; }

/* MOBILNÉZET MÉDIA QUERY */
@media screen and (max-width: 480px) {
    .modal-content {
        padding: 20px 15px 25px 15px; /* Még kisebb padding kis képernyőkön */
        max-width: 95%; /* Majdnem teljes szélesség */
    }
    
    .auth-form-container h2 {
        font-size: 1.8em; /* Még kisebb cím */
        margin-bottom: 15px;
    }
    
    .auth-form-container .form-subtitle {
        font-size: 28px; /* Még kisebb alcím */
        margin-bottom: 10px;
    }
    
    .auth-input {
        font-size: 1em; /* Még kisebb input betűméret */
        padding: 6px 8px;
        margin-bottom: 15px;
    }
    
    .auth-button {
        font-size: 1em; /* Még kisebb gomb betűméret */
        padding: 10px 0;
    }
    
    .switch-form-text {
        font-size: 0.85em; /* Még kisebb switch szöveg */
        margin-top: 20px;
    }
}

/* ===== EGYSÉGES VISSZAJELZŐ ABLAK (MODAL) STÍLUSOK ===== */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
    padding: 10px; /* Padding hozzáadása */
}
.custom-alert-box {
    background-color: #1e1e1e;
    border: 1px solid #444;
    padding: 25px 20px; /* Javított padding mobilra */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    max-width: 380px; 
    width: 95%; /* Mobilbarát szélesség */
}
.custom-alert-box h3 {
    margin: 0 0 15px 0; font-size: 1.4em; /* Kisebb cím */
    font-family: 'WildWords', sans-serif;
}
.custom-alert-box p {
    margin: 0 0 20px 0; color: #aaa;
    font-size: 1em; /* Kisebb szöveg */
    line-height: 1.4;
}
.custom-alert-box .ok-btn {
    padding: 10px 25px; border-radius: 6px;
    border: none; color: white; cursor: pointer;
    font-family: 'WildWords', sans-serif; font-size: 0.9em; /* Kisebb gomb */
}
.custom-alert-box.success h3 { color: #2ecc71; }
.custom-alert-box.success .ok-btn { background-color: #27ae60; }
.custom-alert-box.error h3 { color: #e74c3c; }
.custom-alert-box.error .ok-btn { background-color: #c0392b; }

/* =================================================================== */
/* =====            ÁLTALÁNOS MODÁLIS ABLAK STÍLUSOK           ===== */
/* =================================================================== */

/* Fejléc */
header { background-color: #121212; padding: 5px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; }
.header-left, .header-right { flex: 1; }
.header-center { flex: 1; text-align: center; display: flex; justify-content: center; gap: 15px; }
.header-right { text-align: right; }
.logo img { height: 60px; display: block; }
.nav-button { background-color: #2a2a2a; border: 1px solid #444; padding: 10px; border-radius: 8px; font-size: 1em; cursor: pointer; transition: background-color 0.2s; font-family: 'WildWords', sans-serif; color: var(--primary-text-color); display: inline-flex; align-items: center; justify-content: center; line-height: 0; position: relative; }
.nav-button:hover { background-color: #3a3a3a; }
.nav-button .nav-icon { height: 24px; width: 24px; }
.login-button { background-color: #2a2a2a; border: 1px solid #444; padding: 6px 12px; border-radius: 6px; font-size: 0.85em; cursor: pointer; font-family: Arial, Helvetica, sans-serif; color: var(--primary-text-color); }

/* Profil Menü */
.profile-dropdown { position: relative; display: inline-block; }
.profile-pic-container { cursor: pointer; }
.profile-pic { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #555; object-fit: cover; }
.dropdown-content { display: none; position: absolute; right: 0; top: 70px; background-color: #1e1e1e; min-width: 180px; border: 1px solid #444; border-radius: 8px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4); z-index: 100; }
.dropdown-content a { color: #e0e0e0; padding: 12px 16px; text-decoration: none; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 0.9em; }
.dropdown-content a:hover { background-color: #3a3a3a; }
.show { display: block; }

/* Auth Modál */
#auth-modal { display: none; } /* Ennek is 'none'-nak kell lennie alapból */
.modal-overlay { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; }
.modal-content { background-color: #1a1a1a; padding: 40px; border-radius: 20px; width: 90%; max-width: 400px; text-align: center; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.close-button { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.auth-input { width: 100%; background-color: transparent; border: none; border-bottom: 1px solid #666; color: white; padding: 10px 12px; margin-bottom: 25px; font-size: 1.2em; }
.auth-button { background-color: white; color: black; border: none; border-radius: 30px; padding: 15px 0; width: 100%; font-size: 1.2em; cursor: pointer; margin-top: 10px; }
.hidden { display: none !important; }

/* TÖRLÉS MEGERŐSÍTŐ MODÁLIS ABLAK STÍLUSOK */
.modal {
    display: none; /* JAVÍTVA: Alapértelmezetten rejtett */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding: 10px; /* Padding hozzáadása mobilra */
}

.modal-content { 
    background-color: #2c2c2c; 
    border: 1px solid #555; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: 95%; /* Mobilbarát szélesség */
    max-width: 420px;
    padding: 25px 20px; /* Javított padding */
}

.modal-content h3 { 
    margin-top: 0; 
    margin-bottom: 15px; 
    color: #e74c3c; 
    font-family: 'WildWords', sans-serif; 
    font-size: 1.6em; /* Kisebb cím mobilra */
    text-shadow: none; 
    word-break: break-word;
}
.modal-content p { 
    font-size: 0.95em; /* Kisebb szöveg */
    color: #bbb; 
    margin-bottom: 20px; 
    line-height: 1.4; 
}
.checkbox-group { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 20px; 
    font-size: 0.9em; /* Kisebb checkbox szöveg */
    color: #ccc; 
}
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: #3498db; cursor: pointer; }
.checkbox-group label { cursor: pointer; }
.modal-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 15px; }
.modal-button { 
    padding: 8px 20px; /* Kisebb gombok */
    border: none; 
    border-radius: 6px; 
    font-size: 0.9em; /* Kisebb gomb betűméret */
    cursor: pointer; 
    font-family: 'WildWords', sans-serif; 
    text-shadow: none; 
    transition: background-color 0.2s ease, transform 0.2s ease; 
}
.modal-button.confirm { background-color: #c0392b; color: white; }
.modal-button.confirm:hover { background-color: #e74c3c; transform: translateY(-2px); }
.modal-button.cancel { background-color: #555; color: white; }
.modal-button.cancel:hover { background-color: #777; transform: translateY(-2px); }

/* =================================================================== */
/* =====            ÉRTESÍTÉS JELZÉSEK STÍLUSAI                  ===== */
/* =================================================================== */

.profile-pic-container {
    position: relative; /* Szükséges a felkiáltójel pozicionálásához */
}

.notification-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border: 2px solid #121212;
}

.dropdown-content a.has-notification {
    color: #e74c3c !important;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.8); /* Ragyogás effektus */
    position: relative;
}

.dropdown-content a.has-notification::after {
    content: '!';
    margin-left: 8px;
    font-weight: bold;
}

/* =================================================================== */
/* =====         ÁLTALÁNOS MEGERŐSÍTŐ ABLAK STÍLUSAI           ===== */
/* =================================================================== */
.confirm-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Padding mobilra */
}
.confirm-overlay.is-visible {
    display: flex;
}
.confirm-box {
    background-color: #2c2c2c;
    border: 1px solid #555;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    width: 95%; /* Mobilbarát szélesség */
    max-width: 420px;
    padding: 25px 20px; /* Javított padding */
}
.confirm-box h3 {
    margin: 0 0 12px 0;
    font-family: 'WildWords', sans-serif;
    color: #fff;
    font-size: 1.4em; /* Kisebb cím */
    word-break: break-word;
}
.confirm-box p {
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 0.95em; /* Kisebb szöveg */
}
.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.confirm-btn {
    padding: 8px 20px; /* Kisebb gombok */
    border: none;
    border-radius: 6px;
    font-family: 'WildWords', sans-serif;
    cursor: pointer;
    font-size: 0.9em; /* Kisebb gomb betűméret */
}
.confirm-btn.confirm-yes {
    background-color: #27ae60; /* Zöld az igen gombnak */
    color: white;
}
.confirm-btn.confirm-no {
    background-color: #c0392b; /* Piros a nem gombnak */
    color: white;
}

