/* =======================================
   Alap layout + tipográfia
   ======================================= */

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f1ea;
    color: #2b2b2b;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =======================================
   HEADER
   ======================================= */

.kv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 999;
}

.kv-logo img {
    height: 48px;
    width: auto;
}

.kv-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Desktop menü */
.kv-nav-desktop {
    display: flex;
    gap: 20px;
}

.kv-nav-desktop a {
    text-decoration: none;
    color: #3b2a26;
    font-weight: 500;
}

/* Hamburger ikon */
.kv-menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #3b2a26;
}

/* Avatar */
.kv-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d2c7b8;
    padding: 2px;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
}

.kv-header-avatar:hover {
    border-color: #b8a996;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    transform: scale(1.03);
}

/* Avatar dropdown */
.kv-avatar-dropdown-wrapper {
    position: relative;
}

.kv-avatar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    background: #222;
    padding: 10px 0;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 999;
}

.kv-avatar-dropdown.open {
    display: block;
}

.kv-avatar-dropdown a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.kv-avatar-dropdown a:hover {
    background: #333;
}

/* Mobil menü */
.kv-mobile-menu {
    display: none;
    background: #f7f7f7;
    padding: 10px 25px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 9999;
    text-align: right;
}

.kv-mobile-menu a {
    display: block !important;
    padding: 12px 0;
    font-size: 1.1rem;
    color: #3b2a26;
}

.kv-mobile-menu.active {
    display: block;
}

/* =======================================
   HERO
   ======================================= */

.kv-hero {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

.kv-hero picture img {
    width: 100%;
    height: auto;
    display: block;
}

.kv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.kv-hero h1,
.kv-hero .kv-subtitle {
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 2;
    color: #fff;
}

/* DESKTOP HERO FIX – százalékos pozíció */
.kv-hero h1 {
    top: 22%;
    font-size: 2.4rem;
}

.kv-subtitle {
    top: 40%;
    font-size: 1.28rem;
    font-weight: 600;
}

/* =======================================
   MOBIL HERO FIX
   ======================================= */

@media (max-width: 768px) {

    .kv-hero {
        padding-bottom: 0;
    }

    .kv-hero h1 {
        top: 58%;
        font-size: 1.9rem;
    }

    .kv-subtitle {
        top: 72%;
        font-size: 1.1rem;
    }
}

/* =======================================
   MOBIL HEADER FIX
   ======================================= */

@media (max-width: 768px) {

    .kv-nav-desktop {
        display: none !important;
    }

    .kv-menu-icon {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 9px;
        font-size: 32px;
        z-index: 1001;
    }

    .kv-avatar-dropdown-wrapper {
        position: absolute;
        right: 15px;
        top: 9px;
    }
}

/* =======================================
   Címek
   ======================================= */

h1, h2, h3 {
    color: #4b2e2a;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.6rem;
    margin-top: 30px;
}

h3 {
    font-size: 1.3rem;
}

/* =======================================
   Linkek
   ======================================= */

a {
    color: #3b2a26;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* =======================================
   Választó vonal
   ======================================= */

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
}

/* =======================================
   Kérdéslista
   ======================================= */

.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-list li {
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
}

.question-list li:last-child {
    border-bottom: none;
}

.question-date {
    font-size: 0.8rem;
    color: #777;
    margin-left: 6px;
}

/* =======================================
   Topic tag
   ======================================= */

.topic-tag {
    display: inline-block;
    background: #e8e0d4;
    color: #4b2e2a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 6px;
    margin-bottom: 6px;
}

.topic-tag:hover {
    background: #d9cfc1;
}

/* =======================================
   404 oldal
   ======================================= */

.error-404 h1 {
    font-size: 3rem;
    color: #4b2e2a;
}

.back-link {
    text-decoration: none;
    color: #3b2a26;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* =======================================
   Kérdés tartalom
   ======================================= */

.question-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* =======================================
   Téma header
   ======================================= */

.topic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.topic-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.topic-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

/* =======================================
   Felhasználói avatar
   ======================================= */

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d2c7b8;
    margin: 15px 0;
}

.user-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

/* =======================================
   Form elemek
   ======================================= */

.input-text,
.input-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-primary {
    background: #4b2a26;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #3a231f;
}

.topic-checkboxes {
    margin-bottom: 20px;
}

.topic-check {
    display: block;
    margin-bottom: 6px;
}

/* =======================================
   FOOTER
   ======================================= */

.kv-footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    background: #a49b8a;
    color: #fefefe;
    border-radius: 12px 12px 0 0;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.kv-footer a {
    margin: 0 10px;
    color: #ffffff;
}

.kv-footer a:hover {
    text-decoration: underline;
}

/* =======================================
   AUTH
   ======================================= */

.kv-auth-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.kv-auth-box {
    background: #a49b8a;
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.kv-auth-box h1 {
    margin-bottom: 25px;
    font-size: 2rem;
    color: #fff;
}

.kv-auth-box label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-weight: 600;
    color: #fefefe;
}

.kv-auth-box .input-text {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.kv-auth-box .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 6px;
}

.kv-auth-alt {
    margin-top: 20px;
    font-size: 1rem;
}

.kv-auth-alt a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* =======================================
   Mobil menü fix pozicionálása
   ======================================= */

.kv-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    background: #f7f7f7;
    padding: 10px 25px;
    border-bottom: 1px solid #ddd;
    z-index: 9999;
    text-align: right;
}

.kv-mobile-menu.active {
    display: block;
}

/* =======================================
   ⭐ ÚJ: Főoldali kérdéskártyák
   ======================================= */

.kv-home-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 30px;
}

.kv-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.kv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.kv-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.kv-card-title:hover {
    text-decoration: underline;
}

.kv-card-topic {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
}

.kv-card-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.kv-card-user {
    font-weight: 600;
    color: #4b2e2a;
}

.kv-card-date {
    font-size: 12px;
    color: #777;
}

/* =======================================
   ⭐ ÚJ: Válasz szerkesztés KV dizájn
   ======================================= */

.kv-container {
    max-width: 900px;
    margin: 40px auto;
    background: #111;
    padding: 25px;
    border-radius: 10px;
    color: #fff;
}

.kv-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff4444;
}

.kv-success-box {
    background: #1f3d1f;
    padding: 12px;
    border-left: 4px solid #4caf50;
    border-radius: 6px;
    margin-bottom: 20px;
}

.kv-error-box {
    background: #3d1f1f;
    padding: 12px;
    border-left: 4px solid #ff4444;
    border-radius: 6px;
    margin-bottom: 20px;
}

.kv-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.kv-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #222;
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.kv-btn-primary {
    display: inline-block;
    padding: 10px 18px;
    background: #ff4444;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.kv-btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 10px;
}

.kv-btn-primary:hover {
    background: #ff2222;
}

.kv-btn-secondary:hover {
    background: #444;
}
