/* ============================================
   MEETBACK - Modern kék dizájn
   ============================================ */

/* ---------- ALAPOK ---------- */
:root {
    --primary-blue: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #cfe2ff;
    --bg-gradient-start: #e8f0fe;
    --bg-gradient-end: #d4e4ff;
    --card-shadow: 0 8px 30px rgba(13, 110, 253, 0.12);
    --border-radius-lg: 16px;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================
   KEZDŐOLDAL - HÁTTÉRKÉP
   ============================================ */

/* --- TELJES OLDAL HÁTTÉR --- */
.page-home {
    background: url('img/bus.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* --- SÖTÉT ÁTFEDÉS (hogy a szöveg olvasható legyen) --- */
.page-home::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* --- TARTALOM (a sötét átfedés felett) --- */
.page-home .container {
    position: relative;
    z-index: 1;
}

/* --- BEJELENTKEZÉSI KÁRTYA (középen) --- */
.page-home .card {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ---------- KÁRTYÁK ---------- */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.18);
}

.card-body {
    padding: 2rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 50%, #0b5ed7 100%) !important;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar .btn-warning {
    background: #ffc107;
    border: none;
    color: #0a58ca;
    font-weight: 600;
}

.navbar .btn-warning:hover {
    background: #ffca2c;
    transform: scale(1.02);
}

/* ---------- GOMBOK ---------- */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    border: none;
    font-weight: 600;
    color: #0a58ca;
    border-radius: 30px;
    transition: all 0.2s;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-dark {
    border-radius: 30px;
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-dark:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* ---------- VISSZALÉPÉS GOMB ---------- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a58ca;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: all 0.2s;
    background: rgba(13, 110, 253, 0.08);
}

.btn-back:hover {
    background: rgba(13, 110, 253, 0.15);
    color: #0a58ca;
    transform: translateX(-4px);
}

/* ---------- LAPOZÓ (TABS) ---------- */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: 30px 30px 0 0;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.05);
}

.nav-tabs .nav-link.active {
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.1);
    border-bottom: 3px solid #0d6efd;
    font-weight: 600;
}

/* ---------- BEJEGYZÉS KÁRTYÁK ---------- */
.card-title .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    border-radius: 30px;
}

.badge.bg-success {
    background: #198754 !important;
}

/* ---------- ŰRLAPOK ---------- */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.7rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
}

/* ---------- CIMKÉK A POSTS OLDALON ---------- */
.badge-primary {
    background: #0d6efd;
    color: #fff;
}

.badge-secondary {
    background: #6c757d;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-success {
    background: #198754;
    color: #fff;
}

/* ============================================
   BEJEGYZÉS RÉSZLETEK OLDAL (post_detail.php)
   ============================================ */

.post-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(255, 255, 255, 0.95));
}

/* A kiíró saját posztjának tartalma - jól látható arany/sárga árnyalat */
.description-card {
    background: rgba(255, 193, 7, 0.16) !important;
    border-left: 5px solid #ffc107;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0d6efd !important; /* Erős kék háttér */
    color: #ffffff !important;      /* Fehér szöveg */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

/* Biztosítja, hogy semmilyen ikon ne maradjon sárga a címkén belül */
.category-pill * {
    color: #ffffff !important;
}.post-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1a1a2e;
    margin: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.count-badge {
    background: #0d6efd;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

/* A jelentkezők kártyái - jól látható kék árnyalat */
.claim-card {
    background: rgba(13, 110, 253, 0.1) !important;
    border-left: 5px solid #0d6efd;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.claim-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.18);
}

.claim-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.claimant-name {
    font-weight: 700;
    color: #1a1a2e;
}

/* ---------- FŐKÁRTYA KERET STÍLUS ---------- */
.post-detail-card {
    background: transparent !important;
    border: none !important;
    border-left: 5px solid #0d6efd !important; /* Színes bal oldali keret */
    border-radius: 12px;
    padding: 1.5rem;
}

/* ---------- STÁTUSZ JELVÉNYEK (EGYETLEN IKON) ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 30px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Ikont kizárólag a CSS szúr be a beállított osztály alapján */
.status-accepted::before {
    content: "✅";
}

.status-pending::before {
    content: "⏳";
}

.status-rejected::before {
    content: "❌";
}

/* Színek finomítása */
.status-accepted {
    background: #d1e7dd !important;
    color: #0f5132 !important;
    border: 1px solid #badbcc;
}

.status-pending {
    background: #fff3cd !important;
    color: #664d03 !important;
    border: 1px solid #ffecb5;
}

.status-rejected {
    background: #f8d7da !important;
    color: #842029 !important;
    border: 1px solid #f5c2c7;
}}.claim-note {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #333;
    font-style: italic;
    margin-bottom: 0.9rem;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.1);
}

.claim-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(13, 110, 253, 0.15);
}

.status-alert {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(13, 110, 253, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem 1.5rem;
}

.status-alert .status-icon {
    font-size: 1.6rem;
}

/* ---------- RESPONZÍV BEÁLLÍTÁSOK ---------- */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .navbar .btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }
    
    .btn-back {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .claim-header {
        flex-wrap: wrap;
    }
}