/* =====================================================
   AktivBalaton Portal – Közös stílusok
   Stílus: Sötét editorial, meleg arany akcentusok
   Verzió: 1.0.0
   ===================================================== */

/* Font betöltés optimalizálva: display=swap → nem blokkolja a renderelést */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ---- CSS változók ---- */
:root {
    --bg-base:        #0a0f1e;
    --bg-card:        #111827;
    --bg-card-hover:  #1a2235;
    --bg-input:       #1e2a3a;
    --border:         rgba(255,255,255,0.08);
    --border-focus:   rgba(245,158,11,0.5);

    --gold:           #f59e0b;
    --gold-light:     #fcd34d;
    --gold-dim:       rgba(245,158,11,0.15);
    --teal:           #0ea5e9;
    --teal-dim:       rgba(14,165,233,0.12);
    --red:            #ef4444;
    --green:          #10b981;

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #475569;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(245,158,11,0.1);

    --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(245,158,11,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(14,165,233,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ---- Navbar közös stílusok ---- */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 68px;
    border-bottom: 1px solid var(--border);
    background: rgba(10,15,30,0.85);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.navbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.navbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .navbar-title { font-size: 0.95rem; }
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 24px; border: none;
    border-radius: var(--radius-lg); font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background var(--transition); }
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #0a0f1e;
    box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(245,158,11,0.45); transform: translateY(-1px); }

.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.btn-danger { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-full { width: 100%; }

.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.input-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.03em; text-transform: uppercase; }

.input-field {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 13px 16px;
    font-family: 'DM Sans', sans-serif; font-size: 15px;
    color: var(--text-primary); width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-gold  { background: var(--gold-dim);  color: var(--gold); }
.badge-teal  { background: var(--teal-dim);  color: var(--teal); }
.badge-green { background: rgba(16,185,129,0.12); color: var(--green); }
.badge-red   { background: rgba(239,68,68,0.12);  color: var(--red); }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px 18px;
    font-size: 14px; font-weight: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: 10px;
    animation: toastIn 0.3s ease forwards; max-width: 340px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--teal); }

@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }

.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up   { opacity: 0; animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.19s; }
.fade-up-4 { animation-delay: 0.26s; }
.fade-up-5 { animation-delay: 0.33s; }

@media (max-width: 768px) {
    .toast-container { bottom: 16px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }
}
