/* ========== ALAPVETŐ BEÁLLÍTÁSOK ========== */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== NAVIGÁCIÓ ========== */
.navbar {
    background-color: #0b1120;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ========== GOMBOK ========== */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* utility helpers for auth pages */
.btn-block {
    display: block;
    width: 100%;
}
.register-block {
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    max-width: 320px; /* keep blocks narrow */
    text-align: center;
}

/* center the auth container and its contents */
.auth-box {
    max-width: 360px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

/* ========== HEADER / HERO ========== */
.hero {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ========== TESZT SZEKCIÓ (KÁRTYÁK) ========== */
.test-section {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    /* Hozzáadott Flexbox szabályok a tökéletes középre igazításhoz */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    text-align: left;
    width: 100%;
}

/* Projects section mirrors test-section but left-aligned */
.projects-section {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Ensure h2 and h4 headings align to the left by default */
h2, h4 {
    text-align: left;
}
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ========== LÁBLÉC ========== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== RESZPONZIVITÁS ========== */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ========== ŰRLAPOK (FORMS) ÉS AUTH ========== */
form label {
    display: block;
    text-align: left;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

form input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.4rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.auth-box p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-box a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-box a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ========== ÜZENETEK (ERROR, INFO) ========== */
.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}

.info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}