﻿/* ============================================================
   DISCOVER LOCKHART – THEME UPDATE (Nov 2025)
   ------------------------------------------------------------
   Palette:
   - Primary Navy: #1F3D58
   - Accent Red:   #C14D3D
   - Gold Highlight: #E5B700
   - Cream BG:     #F9F7F3
   - Text Dark:    #0F2640
   - Muted Text:   #5A5A5A
   ============================================================ */

/* ===== Base ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: #F9F7F3;
    color: #0F2640;
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #1F3D58;
    transition: color .2s ease;
}

    a:hover {
        text-decoration: underline;
        color: #C14D3D;
    }

.layout-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Navbar ===== */
.dlx-navbar {
    background: #1F3D58;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #fff;
}

.brand-top {
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .6px;
}

.brand-bottom {
    font-weight: 700;
    font-size: .82rem;
    opacity: .85;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    opacity: .9;
    font-weight: 600;
    transition: opacity .2s ease;
}

    .nav-link:hover {
        opacity: 1;
        color: #E5B700;
    }

.nav-btn {
    border-radius: 8px;
    padding: .45rem .9rem;
    font-weight: 600;
    transition: all .2s ease;
}

    .nav-btn.primary {
        background: #E5B700;
        color: #1F3D58;
    }

        .nav-btn.primary:hover {
            transform: scale(1.05);
        }

    .nav-btn.outline {
        border: 1.5px solid #fff;
        color: #fff;
    }

        .nav-btn.outline:hover {
            background: rgba(255, 255, 255, .1);
        }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(rgba(31,61,88,0.7), rgba(31,61,88,0.7)), url('/images/lockharttx.jpeg') center 35% / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 250px 0 100px;
    overflow: hidden;
}

    .hero.slim {
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 3.25rem;
        font-weight: 800;
        margin-bottom: 12px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .hero p.sub {
        font-size: 1.25rem;
        opacity: .95;
        margin: 0 0 20px;
        text-shadow: 0 2px 6px rgba(0,0,0,0.3);
        color: #fff !important;
    }

.hero-inner p {
    color: #fff;
}
/* Animation */
.fade-in {
    animation: fadein .8s ease forwards;
}

.fade-in-delay {
    animation: fadein 1s .2s ease forwards;
}

.fade-in-delay2 {
    animation: fadein 1s .4s ease forwards;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Search ===== */
.search-wrap {
    position: relative;
    display: inline-block;
    width: min(560px, 90%);
    margin-top: 8px;
}

.search-input {
    width: 100%;
    height: 52px;
    border-radius: 999px;
    border: none;
    padding: 0 52px 0 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    outline: none;
    font-size: 1rem;
    transition: box-shadow .2s ease;
}

    .search-input:focus {
        box-shadow: 0 0 0 3px rgba(193,77,61,0.35);
    }

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #C14D3D;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* ===== Sections ===== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1F3D58;
}

.mt-lg {
    margin-top: 40px;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.event-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    transition: all .25s ease;
    position: relative;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    }

.event-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

    .event-img.placeholder {
        background: linear-gradient(135deg,#C14D3D,#E5B700);
        color: rgba(255,255,255,.9);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        letter-spacing: .5px;
    }

.card-body {
    padding: 16px;
}

    .card-body .title {
        font-weight: 800;
        color: #0F2640;
        margin-bottom: 6px;
        font-size: 1rem;
    }

    .card-body .meta {
        font-size: .92rem;
        color: #5A5A5A;
    }

.date-pill {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #C14D3D;
    color: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .3px;
    box-shadow: 0 6px 14px rgba(193,77,61,.35);
}

/* ===== Buttons ===== */
.btn-outline {
    border: 2px solid #1F3D58;
    color: #1F3D58;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    background: #fff;
    transition: all .15s ease;
}

    .btn-outline:hover {
        background: #1F3D58;
        color: #fff;
    }

.e-btn.e-primary, .e-css.e-btn.e-primary {
    background: #E5B700 !important;
    color: #1F3D58 !important;
    border: none !important;
}

.btn-primary {
    background: #E5B700;
    color: #1F3D58;
    border: none;
    padding: .65rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .15s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        background: #d4a500;
    }

.btn-secondary {
    background: #C14D3D;
    color: #fff;
    border: none;
    padding: .65rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
}

/* ===== Empty ===== */
.empty {
    color: #94A3B8;
    text-align: center;
    padding: 40px 0;
}

/* ===== Footer ===== */
.dlx-footer {
    background: #1F3D58;
    color: #fff;
    text-align: center;
    padding: 28px 0;
    font-size: .95rem;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: center;
}

.dlx-footer a {
    color: #E5B700;
    font-weight: 600;
    transition: color .2s ease;
}

    .dlx-footer a:hover {
        color: #fff;
    }
/* ============================================================
   EVENT DETAILS PAGE – Discover Lockhart Theme (Responsive)
   ============================================================ */

/* ===== Container & Layout ===== */
.section.details {
    background: #F9F7F3;
    padding: 80px 0;
}

.details-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 10px;
    flex-wrap: wrap; /* ensures mobile stacking */
}

.badge-date {
    flex-shrink: 0;
    background: linear-gradient(135deg, #C14D3D, #E5B700);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 6px 10px;
    width: 58px;
    box-shadow: 0 4px 10px rgba(193,77,61,0.25);
}

    .badge-date .m {
        display: block;
        font-size: .8rem;
        font-weight: 800;
        letter-spacing: .4px;
    }

    .badge-date .d {
        display: block;
        font-size: 1.2rem;
        font-weight: 900;
        line-height: 1;
        margin-top: -2px;
    }

.details-title {
    flex: 1;
}

    .details-title h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 800;
        color: #1F3D58;
        line-height: 1.25;
    }

    .details-title .sub {
        font-size: 1rem;
        color: #5A5A5A;
        margin-top: 2px;
    }

/* ===== Body Layout ===== */
.details-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.left {
    display: flex;
    flex-direction: column;
}

.right {
    display: flex;
    flex-direction: column;
}

.contact-section {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* ===== Image Section ===== */
.details-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

    .details-img.placeholder {
        background: linear-gradient(135deg,#C14D3D,#E5B700);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        color: rgba(255,255,255,0.9);
        height: 380px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-align: center;
}

    .placeholder-inner i {
        font-size: 42px;
        opacity: .9;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .placeholder-inner span {
        font-size: 1rem;
        letter-spacing: .8px;
    }

/* ===== About Section ===== */
h3.mt {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1F3D58;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}

p {
    color: #0F2640;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== Info Card (Right Panel) ===== */
.info-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

    .info-card div {
        margin-bottom: 6px;
        color: #0F2640;
        font-size: .97rem;
    }

    .info-card strong {
        color: #1F3D58;
        font-weight: 700;
    }

    .info-card .btn-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 14px;
    }

.btn-row a {
    text-decoration: none;
}

/* ===== Buttons ===== */
.btn-primary {
    background: #E5B700;
    color: #1F3D58;
    border: none;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .15s ease, background .15s ease;
    text-align: center;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        background: #d4a500;
    }

.btn-secondary {
    background: #C14D3D;
    color: #fff;
    border: none;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .15s ease, background .15s ease;
    text-align: center;
}

    .btn-secondary:hover {
        transform: translateY(-2px);
        background: #a53d31;
    }

/* ===== Delete Button ===== */
.btn-outline.danger {
    border: 2px solid #C14D3D;
    color: #C14D3D;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    background: #fff;
    transition: all .2s ease;
    width: fit-content;
}

    .btn-outline.danger:hover {
        background: #C14D3D;
        color: #fff;
    }

/* ===== Empty State ===== */
.empty {
    color: #94A3B8;
    text-align: center;
    padding: 60px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== Dialog Overlay Alignment ===== */
.e-dialog .confirm-delete {
    text-align: center;
    padding: 1.5rem 1rem;
}

    .e-dialog .confirm-delete p {
        color: #C14D3D;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .e-dialog .confirm-delete .btn-row {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

/* ===== Animation ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .details-body {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .info-card {
        position: static;
        order: 3;
        margin-top: 20px;
    }

    .details-title h1 {
        font-size: 1.75rem;
    }

    .details-img,
    .details-img.placeholder {
        height: 320px;
    }
}

/* ============================================================
   MOBILE LAYOUT REFINEMENT (≤768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Section */
    .section.details {
        background: #F9F7F3;
        padding: 60px 0;
    }

    /* Header */
    .details-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 0 12px;
    }

    .badge-date {
        width: 54px;
        padding: 5px 8px;
    }

    .details-title h1 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .details-title .sub {
        font-size: .9rem;
    }

    /* Image */
    .details-img,
    .details-img.placeholder {
        height: 240px;
        border-radius: 12px;
        border: 1px solid #E5E7EB;
        box-shadow: 0 4px 14px rgba(0,0,0,0.05);
        margin-bottom: 8px;
    }

    .placeholder-inner {
        gap: 5px;
        font-size: .9rem;
    }

    /* Remove Event Button */
    .delete-wrap {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-outline.danger {
        width: 92%;
        border: 2px solid #C14D3D;
        color: #C14D3D;
        border-radius: 999px;
        padding: .75rem 1rem;
        font-weight: 700;
        text-align: center;
        background: #fff;
        transition: all .25s ease;
    }

        .btn-outline.danger:hover {
            background: #C14D3D;
            color: #fff;
        }

    /* Info Card */
    .info-card {
        background: #fff;
        border: 1px solid #E5E7EB;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
        padding: 22px;
        margin-top: 12px;
    }

        .info-card div {
            font-size: .96rem;
            color: #0F2640;
            margin-bottom: 8px;
        }

        .info-card strong {
            color: #1F3D58;
            font-weight: 700;
        }

        .info-card .btn-row {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }

    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        border-radius: 999px;
        padding: .8rem 1rem;
        font-weight: 700;
        text-align: center;
        transition: all .2s ease;
    }

    .btn-primary {
        background: #E5B700;
        color: #1F3D58;
    }

        .btn-primary:hover {
            background: #d4a500;
        }

    .btn-secondary {
        background: #C14D3D;
        color: #fff;
    }

        .btn-secondary:hover {
            background: #a53d31;
        }

    /* About Section */
    h3.mt {
        font-size: 1.1rem;
        font-weight: 800;
        color: #1F3D58;
        margin-top: 1.5rem;
        margin-bottom: .6rem;
    }

    p {
        font-size: .95rem;
        color: #0F2640;
        line-height: 1.65;
        margin-bottom: 1rem;
    }

    /* Empty state */
    .empty {
        color: #94A3B8;
        text-align: center;
        padding: 2rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .dlx-footer {
        font-size: .9rem;
        padding: 24px 0;
    }

    .footer-inner {
        text-align: center;
        gap: .3rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .details-title h1 {
        font-size: 1.2rem;
    }

    .badge-date {
        width: 52px;
        padding: 5px 8px;
    }

    .details-img,
    .details-img.placeholder {
        height: 200px;
    }

    .info-card {
        padding: 18px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: .9rem;
    }
}

#blazor-error-ui {
    display: none !important;
}
#blazor-error-ui {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
