/* ========================================
   Silver Bells Arts & Craft Show
   ======================================== */

:root {
    --daffodil-gold: #D4A843;
    --daffodil-green: #5A8F3C;
    --daffodil-light: #FFF8E7;
    --silver-bells-silver: #8C8C8C;
    --silver-bells-red: #A83232;
    --silver-bells-light: #F5F5F5;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --bg-cream: #FFFDF5;
}

/* --- Typography --- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* --- Navbar --- */
.navbar-craft {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 1rem;
}

.navbar-craft .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-craft .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-craft .nav-link:hover {
    color: var(--daffodil-gold);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--daffodil-light) 0%, var(--white) 50%, var(--silver-bells-light) 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section:not(.hero-video-section) {
    background: var(--white);
    padding: 5.5rem 0 2rem;
}

.hero-frame {
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 2 / 1;
    background: url('../images/silver-bells-frame.webp') center / 100% 100% no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10% 14%;
}

.hero-frame .lead {
    margin-bottom: 1.5rem;
}

.hero-dates {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--silver-bells-red);
    margin-bottom: 0.75rem;
}

@media (max-width: 991px) {
    .hero-frame {
        aspect-ratio: auto;
        background: none;
        border: 56px solid transparent;
        border-image: url('../images/silver-bells-frame.webp') 190 round;
        padding: 1rem 0;
    }

    .hero-section .hero-frame h1 {
        font-size: 1.9rem;
    }

    .hero-frame .lead {
        font-size: 1.05rem;
    }

    .hero-dates {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .navbar-craft .navbar-brand {
        font-size: 1.05rem;
    }
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-icons {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hero-icons .fa-sun {
    color: var(--daffodil-gold);
    margin-right: 1rem;
}

.hero-icons .fa-bell {
    color: var(--silver-bells-silver);
}

/* --- Section Styles --- */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    margin: 0 auto 2rem;
    border: none;
}

/* --- About Section --- */
.about-section {
    background-color: var(--white);
}

.about-section .section-divider {
    background-color: var(--daffodil-gold);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--daffodil-gold);
}

/* --- Show Cards --- */
.show-section-daffodils {
    background-color: var(--daffodil-light);
}

.show-section-silver {
    background-color: var(--silver-bells-light);
}

.show-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 700px;
    margin: 0 auto;
}

.show-card .show-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-daffodils {
    background-color: var(--daffodil-gold);
    color: var(--white);
}

.badge-silver {
    background-color: var(--silver-bells-silver);
    color: var(--white);
}

.show-card h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.show-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.show-detail i {
    width: 24px;
    margin-right: 0.75rem;
    margin-top: 3px;
    text-align: center;
}

.show-detail-daffodils i {
    color: var(--daffodil-gold);
}

.show-detail-silver i {
    color: var(--silver-bells-red);
}

.show-description {
    margin-top: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- Show Days Grid --- */
.show-days-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
}

.show-day {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.show-day-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

/* --- Signup Section --- */
.signup-section {
    background: linear-gradient(135deg, var(--daffodil-light) 0%, var(--white) 100%);
}

.signup-section .section-divider {
    background-color: var(--daffodil-green);
}

.signup-form-wrapper {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 650px;
    margin: 0 auto;
}

.signup-form-wrapper .form-control {
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.signup-form-wrapper .form-control:focus {
    border-color: var(--daffodil-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 168, 67, 0.15);
}

.signup-form-wrapper label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.btn-signup {
    background-color: var(--daffodil-green);
    border: none;
    color: var(--white);
    padding: 0.75rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-signup:hover {
    background-color: #4A7A2F;
    color: var(--white);
    transform: translateY(-1px);
}

.btn-signup:active {
    transform: translateY(0);
}

.btn-signup:disabled {
    opacity: 0.65;
    transform: none;
}

/* --- Footer --- */
.footer-section {
    background-color: var(--text-dark);
    color: #cccccc;
    padding: 3rem 0 2rem;
}

.footer-section h5 {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--daffodil-gold);
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #E8C35A;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-bottom .powered-by {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.footer-bottom .powered-by a {
    color: var(--daffodil-gold);
    text-decoration: none;
}

.footer-bottom .powered-by a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* --- Toast Notifications --- */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.success {
    background-color: #28a745;
}

.toast-notification.danger {
    background-color: #dc3545;
}

.toast-notification.warning {
    background-color: #ffc107;
    color: var(--text-dark);
}

.toast-notification.info {
    background-color: #17a2b8;
}

/* --- Custom Radio Buttons --- */
.custom-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.custom-radio-group .custom-radio-btn {
    flex: 1;
    min-width: 120px;
}

.custom-radio-group .custom-radio-btn input[type="radio"] {
    display: none;
}

.custom-radio-group .custom-radio-btn label {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-radio-group .custom-radio-btn input[type="radio"]:checked + label {
    border-color: var(--daffodil-green);
    background-color: rgba(90, 143, 60, 0.08);
    color: var(--daffodil-green);
}

.custom-radio-group .custom-radio-btn label:hover {
    border-color: var(--daffodil-gold);
}

/* --- Hero Video Section --- */
.hero-video-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-bg-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 0 5rem;
}

.hero-video-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-video-content .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Hero admin preview */
.hero-preview-container {
    max-width: 600px;
}

.hero-preview-video {
    width: 100%;
    border-radius: 8px;
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--white);
}

.gallery-divider {
    background-color: var(--daffodil-gold);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s;
}

.gallery-filter-btn:hover {
    border-color: var(--daffodil-gold);
    color: var(--daffodil-gold);
}

.gallery-filter-btn.active {
    border-color: var(--daffodil-green);
    background-color: var(--daffodil-green);
    color: var(--white);
}

.gallery-item {
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}

.gallery-item-link:hover {
    text-decoration: none;
    color: var(--text-dark);
}

.gallery-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item-link:hover .gallery-thumb img {
    transform: scale(1.05);
}

.gallery-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    aspect-ratio: 4 / 3;
}

.gallery-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: background 0.2s;
}

.gallery-item-link:hover .gallery-play-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Gallery Admin Cards --- */
.gallery-admin-card {
    padding: 0;
    overflow: hidden;
    transition: opacity 0.2s;
}

.gallery-admin-card.gallery-inactive {
    opacity: 0.5;
}

.gallery-admin-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gallery-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.gallery-admin-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .show-card,
    .signup-form-wrapper {
        padding: 1.5rem;
    }

    .custom-radio-group {
        flex-direction: column;
    }

    .show-days-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-video-section {
        min-height: 60vh;
    }

    .hero-video-content {
        padding: 4rem 0 3rem;
    }

    .hero-video-content h1 {
        font-size: 2.2rem;
    }
}

/* ========================================
   Admin Panel Styles
   ======================================== */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.admin-login-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
}

.admin-login-card h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.admin-sidebar {
    min-height: 100vh;
    background-color: #2c3e50;
    padding: 1.5rem 0;
    color: var(--white);
}

.admin-sidebar .nav-link {
    color: #bdc3c7;
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--daffodil-gold);
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

.admin-content {
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.admin-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.admin-table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.admin-table td {
    vertical-align: middle;
}

.badge-interested {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-admin-primary {
    background-color: #2c3e50;
    border: none;
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-admin-primary:hover {
    background-color: #1a252f;
    color: var(--white);
}

.sidebar-brand {
    font-family: 'Playfair Display', serif;
}

.sidebar-user-info {
    border-top: 1px solid #3d566e;
}

/* --- Traffic Page --- */
.traffic-blocked-row {
    opacity: 0.5;
}

.traffic-blocked-row td {
    text-decoration: line-through;
}

.badge-blocked {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* --- Vendor Section (Public) --- */
.vendor-section {
    background-color: var(--bg-cream);
}

.vendor-section .section-divider {
    background-color: var(--daffodil-gold);
}

.vendor-show-heading {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.vendor-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.vendor-card:hover {
    text-decoration: none;
    color: var(--text-dark);
}

.vendor-card-linked:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.vendor-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.vendor-card-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--silver-bells-light);
    color: #ccc;
    font-size: 3rem;
}

.vendor-card-body {
    padding: 1rem;
}

.vendor-card-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.vendor-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Vendor Admin --- */
.vendor-admin-tabs .nav-link.active {
    border-color: var(--daffodil-gold);
    color: var(--daffodil-gold);
}

.vendor-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.vendor-thumb-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #ccc;
}

/* --- Vendor Responsive --- */
@media (max-width: 991px) {
    .vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .vendor-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Admin: Show Assignment dual list --- */
.assign-show-picker {
    max-width: 480px;
}

.dual-list {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.dual-list-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dual-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dual-list-search {
    margin-bottom: 0.5rem;
}

.dual-list-items {
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    height: 480px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: var(--white);
    user-select: none;
}

.dual-list-items.drag-over {
    border-color: var(--silver-bells-red);
    background: #fff5f5;
}

.dual-list-item {
    padding: 0.45rem 0.75rem;
    border-radius: 0.2rem;
    cursor: pointer;
}

.dual-list-item:hover {
    background: #f1f3f5;
}

.dual-list-item.selected {
    background: #2c3e50;
    color: var(--white);
}

.dual-list-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .dual-list {
        flex-direction: column;
    }

    .dual-list-actions {
        flex-direction: row;
        justify-content: center;
    }

    .dual-list-items {
        height: 280px;
    }
}

/* --- Admin: Traffic season row --- */
.traffic-row-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.traffic-season-card {
    border-top: 3px solid var(--silver-bells-red);
}
