/* =========================================
   1. ALAP BEÁLLÍTÁSOK & PRÉMIUM VÁLTOZÓK
   ========================================= */
:root {
    --primary: #00e5ff;       /* Prémium Cián */
    --secondary: #9d00ff;     /* Mély Neon Lila */
    --accent: #ff0055;        /* Éles Neon Piros */
    --bg: #050507;            /* Nagyon sötét kék-fekete */
    --surface: rgba(20, 20, 25, 0.4); /* Kártyák alap háttere */
    --text: #f0f0f5;          /* Lágyabb fehér szöveg */
    --text-muted: #8e8e99;    /* Halványabb szürke */
    --glass: rgba(15, 15, 20, 0.65); /* Erős üveghatás */
    --glass-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 229, 255, 0.3);
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Outfit', sans-serif; 
}

/* --- EGYEDI SCROLLBAR (Prémium érzés) --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 2vh;
    padding-bottom: 5vh;
}

/* =========================================
   2. HÁTTÉR ANIMÁCIÓ (LÁGYABB GLOW)
   ========================================= */
.glow-blob {
    position: fixed; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 60%);
    opacity: 0.1; filter: blur(100px);
    animation: moveBlob 25s infinite alternate ease-in-out; 
    z-index: -1;
    border-radius: 50%;
}
.glow-blob:nth-child(1) { top: -20%; left: -20%; }
.glow-blob:nth-child(2) { 
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%); 
    bottom: -10%; right: -10%; top: auto; left: auto;
    animation-delay: -10s; 
}

@keyframes moveBlob { 
    0% { transform: translate(0, 0) scale(1); } 
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 20px) scale(0.9); } 
}

/* =========================================
   3. FŐ KONTÉNER & LAYOUT
   ========================================= */
.container {
    background: var(--glass);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 1400px;
    width: 95%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
}

.inner-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px; 
    gap: 35px; 
    margin-top: 30px; 
    text-align: left; 
    align-items: start;
}

/* =========================================
   4. HEADER (FEJLÉC)
   ========================================= */
header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding-bottom: 25px; 
    border-bottom: 1px solid var(--border); 
}
.logo-area a { text-decoration: none; display: inline-block; transition: 0.3s; }
.logo-area a:hover { transform: scale(1.02); }
.logo-area h1 { 
    font-size: 2.2rem; font-weight: 800; line-height: 1; 
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0; 
}
.logo-area span { 
    font-size: 0.75rem; letter-spacing: 3px; font-weight: 600;
    text-transform: uppercase; color: var(--text-muted); display: block; margin-top: 8px; 
}

.desktop-only {
    /* Kapott egy alap cián színt és keretet */
    background: rgba(0, 229, 255, 0.1); 
    border: 1px solid var(--primary); 
    color: var(--primary);
    padding: 10px 24px; border-radius: 50px; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    font-weight: 700; font-size: 0.95rem; letter-spacing: 1px;
}
.desktop-only:hover { 
    background: var(--primary); color: #000; 
    box-shadow: 0 10px 25px -5px rgba(0, 229, 255, 0.5); 
    transform: translateY(-2px);
}

/* =========================================
   5. KÁRTYÁK & ELEMEK (PRÉMIUM 3D EFFEKT)
   ========================================= */
.card {
    background: var(--surface); 
    border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; margin-bottom: 25px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; max-width: 100%;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    position: relative; z-index: 1;
}
.card:hover { 
    transform: translateY(-5px);
    border-color: var(--border-glow); 
    background: rgba(25, 25, 32, 0.6); 
    box-shadow: 0 15px 35px -10px rgba(0, 229, 255, 0.15);
}

.section-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 20px; font-weight: 700; }

.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-meta { font-size: 0.85rem; color: var(--text-muted); }
.post-content { font-size: 1.05rem; line-height: 1.7; color: #e0e0e0; margin-bottom: 20px; font-weight: 300; }
.post-actions { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 15px; }
.action-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; transition: 0.3s; }
.action-btn:hover { color: var(--primary); transform: scale(1.05); }

/* =========================================
   6. ŰRLAP ELEMEK (LETISZTULT, MODERN)
   ========================================= */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%; padding: 14px 18px; 
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); border-radius: 12px;
    color: white; font-size: 1rem; outline: none; 
    transition: all 0.3s ease; font-family: 'Outfit', sans-serif; 
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus { 
    border-color: var(--primary); 
    background: rgba(0, 229, 255, 0.03); 
    box-shadow: inset 0 0 0 1px var(--primary), 0 0 20px rgba(0, 229, 255, 0.1); 
}
::placeholder { color: rgba(255, 255, 255, 0.3); }

button[type="submit"] { 
    margin-top: 10px; letter-spacing: 1px; text-transform: uppercase; 
    background: var(--primary); color: #000; border: none; 
    padding: 12px 25px; border-radius: 10px; font-weight: 700; 
    cursor: pointer; transition: 0.3s; 
}
button[type="submit"]:hover { background: #fff; box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3); transform: translateY(-2px); }

/* =========================================
   7. MENÜ ÉS OLDALSÁVOK
   ========================================= */
.nav-item { 
    display: flex; align-items: center; padding: 12px 18px; color: var(--text-muted); 
    text-decoration: none; border-radius: 12px; transition: 0.3s; margin-bottom: 8px; font-weight: 500;
}
.nav-item i { width: 25px; text-align: center; margin-right: 12px; color: #555; transition: 0.3s; }
.nav-item:hover, .nav-item.active { background: var(--glass-hover); color: white; }
.nav-item:hover i, .nav-item.active i { color: var(--primary); }
.nav-item.active { background: linear-gradient(90deg, rgba(0, 229, 255, 0.1) 0%, transparent 100%); border-left: 3px solid var(--primary); }
.nav-item .badge-count { margin-left: auto; background: var(--accent); color: white; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; box-shadow: 0 0 10px rgba(255, 0, 85, 0.4); }

.profile-mini { display: flex; align-items: center; gap: 15px; padding: 10px 0; }
.avatar { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; box-shadow: 0 5px 15px rgba(157, 0, 255, 0.3); }
.user-info h4 { font-size: 1.05rem; color: white; margin-bottom: 3px; }
.user-info span { font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   8. MOBIL MENÜ
   ========================================= */
.mobile-toggle-btn { display: none; background: transparent; border: 1px solid var(--border); color: #fff; font-size: 1.2rem; padding: 10px 14px; border-radius: 10px; cursor: pointer; z-index: 1001; transition: 0.3s; }
.mobile-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 7, 0.98); backdrop-filter: blur(20px); z-index: 2000; display: flex; flex-direction: column; padding: 30px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); overflow-y: auto; }
.mobile-menu-overlay.active { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.mobile-nav-link { display: block; font-size: 1.2rem; padding: 18px 15px; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.03); transition: 0.3s; }
.mobile-nav-link i { width: 35px; color: #555; transition: 0.3s; }
.mobile-nav-link.active, .mobile-nav-link:hover { color: white; background: rgba(255,255,255,0.02); }
.mobile-nav-link.active i, .mobile-nav-link:hover i { color: var(--primary); }

/* =========================================
   9. ARANYKÖPÉSEK & KATEGÓRIÁK
   ========================================= */
.filter-bar { display: flex; gap: 12px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); padding: 10px 22px; border-radius: 50px; cursor: pointer; white-space: nowrap; transition: all 0.3s; font-size: 0.95rem; font-weight: 600; }
.filter-btn:hover { border-color: rgba(255,255,255,0.3); color: white; }

.quote-text { font-size: 1.4rem; font-style: italic; font-weight: 300; text-align: center; padding: 25px 15px; line-height: 1.6; background: linear-gradient(180deg, #fff 40%, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; overflow-wrap: break-word; word-wrap: break-word; }
.top-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.top-list-item:hover { transform: translateX(5px); }
.top-list-item:last-child { border-bottom: none; }
.medal { width: 30px; text-align: center; font-size: 1.3rem; margin-right: 12px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }

/* Színes kártyák finomítása */
.card[data-category="legjobbak"] { border-left: 4px solid #f1c40f; background: linear-gradient(90deg, rgba(241, 196, 15, 0.05), transparent); }
.card[data-category="humor"] { border-left: 4px solid var(--secondary); background: linear-gradient(90deg, rgba(157, 0, 255, 0.05), transparent); }
.card[data-category="bolcsesseg"] { border-left: 4px solid var(--primary); background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), transparent); }

.filter-btn[data-filter="legjobbak"].active { background: rgba(241, 196, 15, 0.1); color: #f1c40f; border-color: #f1c40f; box-shadow: inset 0 0 0 1px #f1c40f; }
.filter-btn[data-filter="humor"].active { background: rgba(157, 0, 255, 0.1); color: var(--secondary); border-color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); }
.filter-btn[data-filter="bolcsesseg"].active { background: rgba(0, 229, 255, 0.1); color: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }

.card.hidden { display: none; }
.card.fade-in { animation: fadeIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   10. KOMMENT SZEKCIÓ
   ========================================= */
.comments-section { display: none; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border); animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

.single-comment { display: flex; gap: 18px; margin-bottom: 25px !important; align-items: flex-start; }
.comment-body { background: rgba(0, 0, 0, 0.2); padding: 18px 22px !important; border-radius: 0 16px 16px 16px; width: 100%; line-height: 1.6 !important; border: 1px solid var(--border); }
.comment-author { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; display: block; letter-spacing: 0.5px; }
.comment-text { color: #d0d0d0; word-break: break-word; font-weight: 300; }
.comment-time { font-size: 0.75rem; color: #666; margin-top: 10px; display: block; text-align: right; }

.comment-input-area { display: flex; align-items: center; gap: 12px; margin-top: 30px; background: rgba(0,0,0,0.3) !important; padding: 6px 6px 6px 20px !important; border-radius: 50px !important; border: 1px solid var(--border); transition: 0.3s; }
.comment-input-area:focus-within { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 229, 255, 0.1); }
input.comment-input { background: transparent !important; border: none !important; box-shadow: none !important; color: white !important; margin-bottom: 0 !important; padding: 8px 0 !important; width: 100%; font-size: 1rem; height: auto !important; }
input.comment-input::placeholder { color: rgba(255,255,255,0.3); }

.send-comment-btn { background: var(--primary) !important; color: #000 !important; border: none !important; width: 44px !important; height: 44px !important; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; flex-shrink: 0; }
.send-comment-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4); }

/* =========================================
   11. LOGIN POPUP & VÁLASZ KOMMENTEK
   ========================================= */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); z-index: 3000; justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
.modal-content { background: #0a0a0d; border: 1px solid var(--border); padding: 40px; border-radius: 24px; text-align: center; max-width: 420px; width: 90%; box-shadow: 0 25px 50px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05); position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #666; font-size: 1.8rem; cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: white; transform: rotate(90deg); }
.modal-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 15px; }
.modal-btn { display: block; width: 100%; padding: 14px; margin-top: 15px; border-radius: 12px; text-decoration: none; font-weight: 700; letter-spacing: 1px; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3); transform: translateY(-2px); }
.btn-outline { border: 1px solid white; color: white; }
.btn-outline:hover { background: white; color: black; }

/* --- VÁLASZ KOMMENTEK --- */
.replies-container { margin-left: 50px; border-left: 2px solid var(--border); padding-left: 20px; display: none; animation: slideDown 0.3s ease; }
.replies-container.show { display: block; }
.reply-btn { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; margin-left: 10px; font-weight: 600; transition: 0.3s; }
.reply-btn:hover { color: var(--primary); }
.toggle-replies { background: none; border: none; color: var(--secondary); font-size: 0.85rem; cursor: pointer; margin-left: 50px; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; font-weight: 600; transition: 0.3s; }
.toggle-replies:hover { text-decoration: underline; color: #b733ff; }
.replying-to-badge { background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.3); color: var(--primary); font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; margin-bottom: 10px; display: none; align-items: center; justify-content: space-between; }
.cancel-reply { cursor: pointer; margin-left: 10px; color: white; transition: 0.3s; }
.cancel-reply:hover { color: var(--accent); }

/* =========================================
   12. JAVÍTOTT KERESŐ DESIGN
   ========================================= */
.search-card { background: var(--surface) !important; border: 1px solid var(--border) !important; padding: 24px; margin-bottom: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.search-form { display: flex; gap: 15px; align-items: center; width: 100%; height: 56px; margin-bottom: 20px; }
.search-input-group { position: relative; flex-grow: 1; height: 100%; }
.search-input-group i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.2rem; z-index: 2; pointer-events: none; }
.custom-input { width: 100%; height: 100% !important; padding: 0 20px 0 55px !important; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 14px; color: white; font-size: 1rem; transition: 0.3s; box-sizing: border-box; margin: 0 !important; }
.custom-input:focus { background: rgba(0,0,0,0.5); }

.custom-dropdown { position: relative; width: 240px; height: 100%; font-size: 1rem; z-index: 100; }
.dropdown-selected { background: rgba(0,0,0,0.3); color: white; padding: 0 22px; border: 1px solid var(--border); border-radius: 14px; height: 100%; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: 0.3s; box-sizing: border-box; user-select: none; }
.custom-dropdown.active .dropdown-selected { border-color: var(--primary); background: rgba(0, 229, 255, 0.03); box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1); }
.dropdown-selected::after { content: '\f107'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--primary); transition: 0.3s; }
.custom-dropdown.active .dropdown-selected::after { transform: rotate(180deg); }

.dropdown-options { position: absolute; top: 65px; left: 0; width: 100%; background: #121216; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 1000; overflow: hidden; }
.custom-dropdown.active .dropdown-options { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { padding: 14px 22px; color: var(--text-muted); cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.03); transition: 0.2s; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(255,255,255,0.03); color: white; padding-left: 28px; border-left: 3px solid var(--primary); }

.search-btn { background: var(--primary); color: #000; border: 1px solid var(--primary); padding: 0 35px; height: 100%; border-radius: 14px; font-weight: 800; text-transform: uppercase; font-size: 0.95rem; cursor: pointer; transition: 0.3s; letter-spacing: 1px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0 !important; }
.search-btn:hover { background: #fff; box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3); transform: translateY(-2px); }
.reset-btn { width: 56px; height: 100%; color: var(--accent); background: rgba(255, 0, 85, 0.05); border: 1px solid rgba(255, 0, 85, 0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: 0.3s; font-size: 1.3rem; flex-shrink: 0; box-sizing: border-box; text-decoration: none; }
.reset-btn:hover { background: rgba(255, 0, 85, 0.15); box-shadow: 0 8px 15px rgba(255, 0, 85, 0.2); transform: translateY(-2px); }

/* GYORS SZŰRŐ GOMBOK (CHIPS) */
.filter-tags { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.filter-tags::-webkit-scrollbar { display: none; }
.filter-chip { padding: 8px 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 50px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: 0.3s; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.filter-chip:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: white; }
.filter-chip.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 700; box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }
.filter-chip.active i { color: #000; }

/* =========================================
   MOBIL NÉZET
   ========================================= */
@media (max-width: 1024px) {
    .left-sidebar, .right-sidebar, .desktop-only { display: none !important; }
    .inner-layout { display: block !important; margin-top: 15px; }
    .mobile-toggle-btn { display: block; }
    
    .container { width: 100% !important; max-width: 100% !important; margin: 0 !important; border-radius: 0 !important; border: none !important; background: rgba(5, 5, 7, 0.95) !important; box-shadow: none !important; padding: 15px !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    header { padding: 10px 0; margin-bottom: 20px; }
    h1 { font-size: 1.8rem !important; }
    .card, .search-card { padding: 20px !important; margin-bottom: 20px !important; border-radius: 16px !important; }
    .quote-text { font-size: 1.2rem !important; padding: 10px 0 !important; }
    .filter-bar { padding-bottom: 10px; margin-bottom: 20px; }

    .search-form { flex-direction: column; height: auto; align-items: stretch; gap: 12px; }
    .custom-input, .custom-dropdown, .search-btn, .reset-btn { height: 55px !important; width: 100%; }
}