:root {
    --bg-color: #f4e8d3;
    --primary-color: #d6942a;
    --primary-hover: #b87c1f;
    --secondary-color: #5c3a21;
    --text-dark: #3b2413;
    --text-light: #8c6a50;
    --card-bg: #ffffff;
    --border-color: #e3d2b6;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); }

/* Bejelentkezés panel */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-box { background: var(--card-bg); padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; border: 1px solid var(--border-color); }
.login-box input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid var(--border-color); border-radius: 5px; }

header { background-color: var(--secondary-color); color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary-color); }
.user-profile { display: flex; align-items: center; gap: 10px; }
.user-profile img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-color); }
.logout-btn { background-color: var(--primary-color); color: white; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; }

.container { max-width: 1200px; margin: 20px auto; display: grid; grid-template-columns: 250px 1fr 300px; gap: 20px; padding: 0 15px; }
.card { background-color: var(--card-bg); border-radius: 10px; padding: 15px; margin-bottom: 20px; border: 1px solid var(--border-color); }

.menu ul { list-style: none; }
.menu li { padding: 12px 15px; margin-bottom: 5px; border-radius: 8px; cursor: pointer; font-weight: bold; color: var(--secondary-color); }
.menu li:hover, .menu li.active { background-color: var(--primary-color); color: white; }

.post-creator textarea { width: 100%; resize: none; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; font-size: 16px; background-color: #faf5eb; margin-bottom: 10px; }
.post-actions { display: flex; justify-content: space-between; align-items: center; }
.action-buttons button { background: none; border: none; color: var(--secondary-color); cursor: pointer; font-weight: bold; padding: 5px 10px; }
.btn-post { background-color: var(--primary-color); color: white; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }

.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-header img { width: 40px; height: 40px; border-radius: 50%; }
.post-meta h4 { color: var(--secondary-color); margin-bottom: 2px; }
.post-meta span { font-size: 12px; color: var(--text-light); }

.widget-title { font-size: 16px; color: var(--secondary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; margin-bottom: 15px; }
.room-item, .event-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.room-info h5 { color: var(--secondary-color); }
.room-info p { font-size: 12px; color: var(--text-light); }
.join-btn { background-color: var(--secondary-color); color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; }

/* --- LETÖLTÉS MODAL (Felugró ablak) --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(59, 36, 19, 0.8); z-index: 1000; justify-content: center; align-items: center; }
.modal-box { background: var(--card-bg); padding: 30px; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; border: 2px solid var(--primary-color); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.modal-box h2 { color: var(--secondary-color); margin-bottom: 10px; }
.modal-box p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.device-btn { display: block; width: 100%; background: var(--bg-color); border: 2px solid var(--border-color); color: var(--secondary-color); padding: 15px; margin-bottom: 10px; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.device-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-hover); }
.close-modal-btn { background: none; border: none; color: red; font-weight: bold; cursor: pointer; margin-top: 10px; text-decoration: underline; }
.install-trigger { background-color: #28a745; color: white; border: none; padding: 12px 15px; border-radius: 8px; cursor: pointer; font-weight: bold; margin-bottom: 20px; width: 100%; font-size: 15px; box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3); }
.install-trigger:hover { background-color: #218838; }

/* --- KOCSMA (SZOBA) NÉZET --- */
.kocsma-container { background: #2a1a10; border-radius: 15px; box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.5); color: #fff; display: flex; flex-direction: column; min-height: 70vh; border: 2px solid #5c3a21; overflow: hidden; }
.kocsma-header { background: rgba(0, 0, 0, 0.4); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #5c3a21; }
.kocsma-header h2 { color: #d6942a; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.btn-leave { background: #b33939; color: white; padding: 8px 15px; border-radius: 8px; text-decoration: none; font-weight: bold; }
.btn-leave:hover { background: #ff5252; }
.kocsma-body { display: flex; flex: 1; flex-wrap: wrap; }
.participants-area { flex: 3; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; align-content: start; }
.participant-card { background: #1a0f09; border: 2px solid #3b2413; border-radius: 10px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.participant-card img { width: 70px; height: 70px; border-radius: 50%; border: 2px solid #d6942a; margin-bottom: 10px; }
.participant-card .name { font-weight: bold; font-size: 14px; }
.mic-status { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); padding: 5px; border-radius: 50%; font-size: 12px; }
.kocsma-sidebar { flex: 1; min-width: 250px; background: rgba(0, 0, 0, 0.3); border-left: 2px solid #5c3a21; padding: 15px; display: flex; flex-direction: column; }
.kocsma-sidebar h3 { color: #d6942a; border-bottom: 1px dashed #5c3a21; padding-bottom: 10px; margin-bottom: 15px; text-align: center;}
.drink-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.drink-btn { background: #3b2413; color: #d6942a; border: 1px solid #d6942a; padding: 10px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.drink-btn:hover { background: #d6942a; color: #1a0f09; }
.drink-log { flex: 1; background: #1a0f09; border-radius: 5px; padding: 10px; overflow-y: auto; font-size: 13px; color: #ccc; }
.drink-log p { margin-bottom: 5px; border-bottom: 1px solid #3b2413; padding-bottom: 3px; }
.kocsma-controls { background: rgba(0, 0, 0, 0.6); padding: 15px; display: flex; justify-content: center; gap: 15px; border-top: 2px solid #5c3a21; }
.ctrl-btn { background: #3b2413; color: white; border: none; padding: 12px 20px; border-radius: 25px; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: bold; transition: 0.2s; }
.ctrl-btn:hover { background: #5c3a21; }
.ctrl-btn.off { background: #b33939; }

/* MOBIL NÉZET - DISCORD STÍLUSÚ OLDALSÁVOK */
.mobile-toggle { display: none; background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
    .mobile-toggle { display: block; }
    .hide-mobile { display: none !important; }
    .container { display: block; position: relative; overflow-x: hidden; padding: 0; }
    
    /* Fő tartalom */
    .feed { width: 100%; padding: 15px; }
    
    /* Kicsúszó oldalsávok */
    .sidebar-left, .sidebar-right {
        position: fixed;
        top: 61px; /* Fejléc alatti részről indul */
        height: calc(100vh - 61px);
        background: var(--bg-color);
        z-index: 999;
        transition: transform 0.3s ease;
        width: 280px;
        padding: 15px;
        overflow-y: auto;
    }
    
    .sidebar-left { left: 0; transform: translateX(-100%); border-right: 2px solid var(--border-color); box-shadow: 5px 0 15px rgba(0,0,0,0.1); margin-top: 0; }
    .sidebar-right { right: 0; transform: translateX(100%); border-left: 2px solid var(--border-color); box-shadow: -5px 0 15px rgba(0,0,0,0.1); margin-top: 0; }
    
    .sidebar-left.open { transform: translateX(0); }
    .sidebar-right.open { transform: translateX(0); }
}