/* assets/style.css */
:root {
    --bg: #f4efe8;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --ink: #1d2433;
    --muted: #5d6678;
    --line: rgba(24, 36, 58, 0.11);
    --brand: #c44f2a;
    --brand-dark: #7f2f16;
    --accent: #0f766e;
    --accent-soft: #dff5f1;
    --hero-start: #241b4b;
    --hero-end: #0d3b66;
    --shadow: 0 18px 45px rgba(22, 32, 56, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(196, 79, 42, 0.13), transparent 32%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 24%),
        linear-gradient(180deg, #f9f4ee 0%, #f4efe8 38%, #eef3f6 100%);
    padding-top: 104px;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Sora', 'Segoe UI', sans-serif;
}

a {
    color: inherit;
}

.navbar-custom {
    min-height: 82px;
    background: rgba(10, 15, 28, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(4, 8, 20, 0.25);
}

.navbar-brand img {
    margin-right: 0;
}

.brand-logo-main,
.brand-logo-secondary {
    object-fit: contain;
}

.brand-tag {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(196, 79, 42, 0.95), rgba(220, 122, 59, 0.88));
    box-shadow: 0 10px 20px rgba(196, 79, 42, 0.2);
}

.nav-logout-btn {
    padding-inline: 1rem;
    border-radius: 999px;
    min-width: 92px;
}

.admin-dropdown-menu {
    min-width: 240px;
    padding: 0.55rem;
    border-radius: 18px;
    background: rgba(12, 17, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 30px rgba(4, 8, 20, 0.3);
}

.admin-dropdown-menu .dropdown-item {
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    padding: 0.7rem 0.9rem;
}

.admin-dropdown-menu .dropdown-item:hover,
.admin-dropdown-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-dropdown-menu .dropdown-item.active,
.admin-dropdown-menu .dropdown-item:active {
    background: linear-gradient(135deg, rgba(196, 79, 42, 0.95), rgba(220, 122, 59, 0.88));
    color: #fff;
}

.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 76vh;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(14, 17, 42, 0.9), rgba(22, 61, 102, 0.72)),
        url('../img/hero.png') center center / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: auto -10% -28% auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 118, 0.35), transparent 65%);
    pointer-events: none;
}

.hero-content {
    max-width: 760px;
    padding: 3rem 1.25rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.08rem;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.section-shell,
.card,
.event-card,
.register-form,
.login-panel,
.participant-shell,
.confirmation-shell {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.section-shell {
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-heading h2,
.section-heading h1 {
    margin-bottom: 0.35rem;
}

.section-heading p,
.section-subtitle {
    margin: 0;
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 500;
}

.event-card,
.card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover,
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(20, 28, 45, 0.16);
}

.card-img-top,
.event-cover {
    object-fit: cover;
    height: 240px;
    width: 100%;
}

.event-card .card-body {
    padding: 1.4rem;
}

.event-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.event-card .card-text {
    color: var(--muted);
    margin-bottom: 1rem;
}

.event-meta {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.96rem;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 0.82rem 1.15rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #dc7a3b);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(196, 79, 42, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #b44121, #cb6828);
    border-color: transparent;
}

.btn-outline-light,
.btn-outline-secondary {
    border-width: 1px;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent), #14937e);
    border-color: transparent;
}

.form-control,
.form-select {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(24, 36, 58, 0.12);
    background: rgba(255, 255, 255, 0.82);
    padding-left: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(196, 79, 42, 0.15);
    border-color: rgba(196, 79, 42, 0.45);
}

.form-label {
    font-weight: 600;
    color: var(--ink);
}

.event-container {
    margin-top: 1.25rem;
    margin-bottom: 3rem;
}

.event-card-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.event-header {
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    color: #fff;
    padding: 2rem;
}

.event-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.event-body {
    padding: 2rem;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.event-info-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.event-info-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.register-form,
.login-panel,
.participant-shell,
.confirmation-shell {
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.login-panel {
    max-width: 460px;
    margin: 0 auto;
}

.participant-shell .ticket-card {
    padding: 1.25rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(196, 79, 42, 0.12));
    border: 1px solid rgba(24, 36, 58, 0.08);
}

.participant-shell .ticket-code {
    color: var(--muted);
    font-size: 0.95rem;
}

.page-login .container,
.page-self_service .container {
    max-width: 1140px;
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.6rem;
    border-radius: 24px;
    background: rgba(13, 18, 31, 0.9);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 35px rgba(6, 10, 20, 0.22);
}

.footer-title {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.68);
}

.footer-admin-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.alert {
    border-radius: 16px;
    border: none;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 92px;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 18px;
        background: rgba(7, 11, 22, 0.92);
    }

    .nav-logout-btn {
        width: 100%;
        margin-top: 0.4rem;
    }

    .brand-logo-secondary {
        display: none;
    }

    .footer-shell,
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 68vh;
    }

    .hero-content,
    .section-shell,
    .register-form,
    .login-panel,
    .participant-shell,
    .confirmation-shell,
    .event-body,
    .event-header {
        padding: 1.4rem;
    }

    .card-img-top,
    .event-cover {
        height: 210px;
    }

    .footer-shell {
        text-align: center;
    }
}
