* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    background: #1e1e2f;
    color: #fff;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* =====================
   LOGO (mates.bg)
   ===================== */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* кръгче като app icon */
.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #00e5ff);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: lowercase;
    box-shadow: 0 6px 16px rgba(79,70,229,0.35);
}

/* текст */
.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
}

.logo-text span {
    color: #00e5ff;
}

/* hover ефект (desktop) */
@media (hover: hover) {
    .logo:hover .logo-icon {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,229,255,0.4);
    }
}

/* mobile – по-компактно */
@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }
}



/* Nav */
.nav {
    display: none;
    flex-direction: column;
    background: #1e1e2f;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
}

.nav a {
    padding: 16px;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-link {
    background: #1d4ed8;
    color: white !important;
    font-weight: bold;
}

.admin-link:hover {
    background: #2563eb;
}


/* Toggle */
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Nav open */
.nav.open {
    display: flex;
}

/* Main */
.main {
    flex: 1;
    padding: 24px 16px;
}

/* Footer */
.footer {
    background: #eaeaea;
    text-align: center;
    padding: 16px;
    font-size: 14px;
}

/* =====================
   DESKTOP
   ===================== */
@media (min-width: 768px) {

    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
    }

    .nav a {
        border: none;
        margin-left: 16px;
        padding: 0;
    }
}

/* =====================
   AUTH (LOGIN / REGISTER)
   ===================== */

.auth-title {
    text-align: center;
    margin-bottom: 16px;
}

.auth-error {
    text-align: center;
    color: #d63031;
    margin-bottom: 12px;
    min-height: 18px;
}

.auth-form {
    max-width: 360px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 16px;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.auth-form input:focus {
    border-color: #4f46e5;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #4338ca;
}

/* Auth switch (login <-> register) */
.auth-switch {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-link {
    margin-left: 6px;
    color: #00e5ff;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* =====================
   WELCOME PAGE
   ===================== */

.welcome {
    max-width: 480px;
    margin: 60px auto 0;
    text-align: center;
    background: #fff;
    padding: 32px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.welcome-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome-text {
    color: #666;
    margin-bottom: 24px;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-actions a {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

/* Secondary button */
.btn-secondary {
    display: inline-block;
    padding: 12px;
    background: #e5e7eb;
    color: #111;
    border-radius: 6px;
    font-size: 15px;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* =====================
   DASHBOARD
   ===================== */

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: 28px;
    margin-bottom: 6px;
}

.dashboard-subtitle {
    color: #666;
    margin-bottom: 32px;
}

/* Cards grid */
.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Card */
.dashboard-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.dashboard-card h3 {
    margin-bottom: 8px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* Desktop */
@media (min-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================
   LANGUAGE SWITCHER
   ===================== */

.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-btn {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    color: #c7d2fe;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* активен език */
.lang-btn.active {
    background: linear-gradient(135deg, #4f46e5, #00e5ff);
    color: #fff;
}

/* =========================
   PROFILE – QUESTIONS
   ========================= */

.page-title {
    font-size: 24px;
    margin-bottom: 4px;
}

.page-subtitle {
    color: #666;
    margin-bottom: 20px;
}

/* list */
.profile-questions {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* card */
.profile-question {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

.profile-question:hover {
    background: #f9fafb;
}

.profile-question-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-question-answer {
    font-size: 14px;
    color: #4b5563;
}

.profile-question-answer.is-empty {
    color: #9ca3af;
    font-style: italic;
}

/* =========================
   OVERLAY (reuse app style)
   ========================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.hidden {
    display: none;
}

.overlay-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    margin: 0 16px;
    padding: 20px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.overlay-close {
    position: absolute;
    right: 14px;
    top: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
}

/* =========================
   OPTIONS
   ========================= */

.options {
    margin-top: 16px;
}

.option {
    padding: 14px;
    border-radius: 10px;
    background: #f9fafb;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .15s ease;
    border: 1px solid #e5e7eb;
}

.option:hover {
    background: #f3f4f6;
}

.option.selected {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #1e1b4b;
    font-weight: 600;
}

.option-muted {
    opacity: 0.55;
    font-style: italic;
    border-style: dashed;
}
