/* ============================================
   Event Calendar — Main Stylesheet (Dark Mode)
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #d1d5db;
    background: #111827;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- Site Banner (unified — replaces old header + mobile banner) ---- */
.site-banner {
    background: #0f172a;
    text-align: center;
    padding: 20px 16px 16px;
    border-bottom: 1px solid #1e293b;
}
.site-banner-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 2px;
}
.site-banner-title:hover { text-decoration: none; color: #ffffff; }
.site-banner-subtitle {
    font-size: 0.8rem;
    color: #8899aa;
}

/* ---- Submit page: gate copy ---- */
.gate-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7eb8e0;
    text-align: center;
    margin-bottom: 4px;
}
.gate-subtitle {
    text-align: center;
    margin-bottom: 8px;
}
.gate-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-top: 28px;
    margin-bottom: 4px;
}
.gate-objectives {
    color: #7eb8e0 !important;
    line-height: 1.8;
    margin-bottom: 24px;
    padding-left: 8px;
}
.gate-objectives p {
    margin-bottom: 6px;
}

/* ---- Slideshow Banner ---- */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #0f172a;
}
.slideshow-wrapper .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    object-fit: cover;
}
.slideshow-wrapper .slide.active {
    opacity: 1;
}

/* ---- Calendar Hero Slideshow ---- */
.hero-header {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}
.hero-header .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    object-fit: cover;
}
.hero-header .slide.active {
    opacity: 1;
}
.hero-overlays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-title-bar {
    padding: 16px 20px 28px;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0));
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.hero-title-bar .title-main {
    display: block;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
}
.hero-title-bar .title-sub {
    display: block;
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2px;
}
.hero-title-bar .title-daily-count {
    display: block;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
    margin-top: 6px;
}
.hero-caption-bar {
    min-height: 34px;
    padding: 7px 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 600;
}
.hero-caption-bar .caption-credit {
    color: #cbd5e1;
    font-weight: 500;
    margin-left: 8px;
}

/* Caption overlay — sits at bottom of slideshow */
.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.50);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    z-index: 2;
}

/* No-slides fallback branding */
.branding-banner {
    background: #0f172a;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f4f6;
    text-align: center;
}
.branding-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.branding-banner p {
    font-size: 1rem;
    opacity: 0.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #3b82f6; color: white; }
.btn-primary:hover { background: #2563eb; }
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.48;
    cursor: not-allowed;
}
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: #4b5563; color: #d1d5db; }
.btn-secondary:hover { background: #374151; }
.btn-outline { background: transparent; border: 1px solid #374151; color: #d1d5db; }
.btn-outline:hover { background: #1f2937; }
.btn-large { padding: 12px 24px; font-size: 1rem; }
.btn-small { padding: 4px 10px; font-size: 0.8rem; }

/* ---- Alerts ---- */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #064e3b; color: #6ee7b7; border: 1px solid #065f46; }
.alert-error { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.alert-info { background: #1e3a5f; color: #93c5fd; border: 1px solid #1e40af; }

/* ---- AA Bolt Button (Awesome Ask) ---- */
.aa-bolt {
    width: 42px;
    height: 42px;
    background: #2d1b69;
    border: 1px solid #7c3aed;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.aa-bolt:hover {
    border-color: #FACC15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}

/* ---- Toolbar Row (List/Grid + Add) ---- */
.toolbar-row {
    display: flex;
    align-items: center;
    margin: 12px 0;
    gap: 10px;
}
.toolbar-row .view-toggle {
    flex: 75;
}
.toolbar-add {
    flex: 20;
    text-align: center;
    white-space: nowrap;
}

/* ---- Footer Links ---- */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 0.85rem;
    color: #6b7280;
}
.footer-links a:hover { color: #9ca3af; }

/* ---- Calendar Page ---- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.calendar-header h2 { font-size: 1.5rem; color: #f3f4f6; }

.view-toggle {
    display: flex;
    gap: 10px;
}
.view-toggle button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    background: #4b5563;
    color: #d1d5db;
}
.view-toggle button.active {
    background: #34d399;
    color: #111827;
}
.view-toggle button:hover:not(.active) { background: #6b7280; }

/* ---- Filters ---- */
.filters-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-row .search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #1f2937;
    color: #d1d5db;
}
.search-row .search-input::placeholder { color: #6b7280; }

/* ---- Category Multi-Select ---- */
.multiselect-wrapper {
    position: relative;
    width: 100%;
}
.multiselect-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #1f2937;
    color: #d1d5db;
    cursor: pointer;
    font-family: inherit;
}
.multiselect-toggle:hover { border-color: #4b5563; }
.multiselect-wrapper.open .multiselect-toggle { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.multiselect-arrow {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.15s;
}
.multiselect-wrapper.open .multiselect-arrow { transform: rotate(180deg); }
.multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.multiselect-wrapper.open .multiselect-dropdown { display: block; }
.multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #d1d5db;
    transition: background 0.1s;
}
.multiselect-option:hover { background: #374151; }
.multiselect-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.multiselect-option.disabled:hover { background: transparent; }
.multiselect-option input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.multiselect-limit-msg {
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #f87171;
    text-align: center;
}

/* ---- Awesome Ask Chat Panel ---- */
#aa-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 420px;
    background: #0f172a;
    border-bottom: 2px solid #1e293b;
    border-radius: 0 0 10px 10px;
    z-index: 900;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
#aa-panel.open { display: flex; }

.aa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}
.aa-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FACC15;
}
.aa-header-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.aa-header-close:hover { color: #d1d5db; }

.aa-log {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    min-height: 200px;
    max-height: 340px;
}

.aa-line {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}
.aa-line a {
    color: #60a5fa;
    text-decoration: underline;
}
.aa-user {
    color: #93c5fd;
}
.aa-user::before {
    content: '→ ';
    color: #6b7280;
}
.aa-aa {
    color: #d1d5db;
}
.aa-aa strong {
    color: #f3f4f6;
    font-weight: 600;
}
.aa-thinking {
    color: #6b7280;
    animation: aa-pulse 1s infinite;
}
@keyframes aa-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.aa-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #1e293b;
    flex-shrink: 0;
}
.aa-input-row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #1f2937;
    color: #d1d5db;
    font-family: inherit;
}
.aa-input-row input::placeholder { color: #6b7280; }
.aa-input-row input:focus {
    outline: none;
    border-color: #7c3aed;
}
.aa-send-btn {
    width: 36px;
    height: 36px;
    background: #2d1b69;
    border: 1px solid #7c3aed;
    border-radius: 6px;
    color: #FACC15;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aa-send-btn:hover {
    background: #3b2580;
}
.aa-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.aa-mic-btn {
    width: 36px;
    height: 36px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.aa-mic-btn:hover {
    background: #374151;
    color: #d1d5db;
}
.aa-mic-btn.listening {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #FACC15;
    animation: aa-pulse 1s infinite;
}

/* Mobile: full-width top panel */
@media (max-width: 768px) {
    #aa-panel {
        max-height: 70vh;
    }
}

/* ---- Category Badges ---- */
.category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Compact List View ---- */
.compact-list {
    display: flex;
    flex-direction: column;
}
.compact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid #1e293b;
    text-decoration: none;
    color: #d1d5db;
    transition: background 0.1s;
    flex-wrap: nowrap;
}
.compact-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.compact-row:hover {
    background: #1f2937;
    text-decoration: none;
}
.compact-row-main:hover {
    text-decoration: none;
}
.compact-date {
    flex-shrink: 0;
    width: 100px;
    font-size: 0.8rem;
    color: #9ca3af;
}
.compact-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compact-cats {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.category-badge-sm {
    font-size: 0.65rem;
    padding: 1px 7px;
}
.compact-views {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #9ca3af;
    min-width: 76px;
    text-align: right;
    white-space: nowrap;
}
.compact-cats-more {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
}

/* ---- Event List View (Flyer cards) ---- */
.event-list { list-style: none; }
.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.event-card-link:hover { text-decoration: none; }
.event-card-image-link,
.event-card-content-link {
    color: inherit;
    text-decoration: none;
}
.event-card-image-link:hover,
.event-card-content-link:hover {
    text-decoration: none;
}

.event-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    transition: box-shadow 0.15s;
}
.event-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }

.event-card-image {
    width: 150px;
    min-width: 150px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    background: #374151;
}

.event-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-date {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 4px;
}
.event-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f3f4f6;
}
.event-card-location {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 8px;
}
.event-card-description {
    font-size: 0.9rem;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}
.event-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.event-card-views {
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-end;
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}
.save-event-btn {
    flex-shrink: 0;
    min-width: 58px;
    text-align: center;
    background: #374151;
    color: #d1d5db;
}
.save-event-btn:hover {
    background: #4b5563;
}
.save-event-btn.is-saved {
    background: #065f46;
    color: #a7f3d0;
}
.save-event-btn.is-saved:hover {
    background: #047857;
}
.compact-save-btn {
    padding-left: 8px;
    padding-right: 8px;
}

.event-card-owner-actions {
    margin: -12px 0 18px;
    padding: 0 16px;
    text-align: right;
}

.account-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 16px;
    margin: 12px 0 18px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
}

.criteria-panel {
    margin: 20px 0;
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.criteria-panel h2,
.slideshow-page h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.criteria-panel p {
    margin: 0;
    line-height: 1.55;
}

.upload-drop {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 150px;
    margin: 18px 0;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.upload-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-drop label {
    color: #334155;
    font-weight: 600;
    pointer-events: none;
}

.char-meter {
    align-self: end;
    padding-bottom: 12px;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0;
    line-height: 1.4;
}

.checkbox-row input {
    margin-top: 3px;
}

.slide-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.slide-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.slide-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.slide-card-body {
    padding: 14px;
}

.slide-card-body h3 {
    margin: 10px 0 4px;
    font-size: 1rem;
}

.slide-card-body p {
    margin: 0 0 12px;
    color: #64748b;
}

.compact-slide-form {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.compact-slide-fields {
    display: grid;
    grid-template-columns: minmax(160px, 1fr);
    gap: 8px;
}

.compact-slide-form input,
.compact-slide-form select {
    width: 100%;
}

.rights-confirm-row {
    align-items: flex-start;
    max-width: 100%;
}

.rights-confirm-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #3b82f6;
}

.rights-confirm-row span {
    min-width: 0;
}

.slide-card details {
    margin: 10px 0;
}

.slide-card summary {
    cursor: pointer;
    font-weight: 600;
}

.my-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-event-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
}

.my-event-main {
    min-width: 0;
}

.my-event-main h3 {
    margin: 4px 0;
    color: #f3f4f6;
    font-size: 1.05rem;
}

.my-event-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.my-event-buttons {
    display: flex;
    gap: 8px;
}

.my-event-views {
    line-height: 1.2;
}

.status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #374151;
    color: #d1d5db;
    font-size: 0.78rem;
}

.saved-events-section {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #374151;
}
.saved-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.saved-events-header h2 {
    margin: 0 0 4px;
    color: #f3f4f6;
    font-size: 1.15rem;
}
.saved-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.saved-event-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
}
.saved-event-thumb-link {
    flex-shrink: 0;
}
.saved-event-thumb {
    display: block;
    width: 96px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: #374151;
}
.saved-event-thumb-placeholder {
    background: linear-gradient(135deg, #1f2937, #374151);
}
.saved-event-main {
    min-width: 0;
    flex: 1;
}
.saved-event-main h3 {
    margin: 4px 0;
    color: #f3f4f6;
    font-size: 1.02rem;
}
.saved-event-main h3 a {
    color: inherit;
    text-decoration: none;
}
.saved-event-main h3 a:hover {
    text-decoration: underline;
}
.saved-event-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    align-self: stretch;
}
.saved-event-views {
    line-height: 1.2;
}
.saved-events-empty {
    margin-bottom: 0;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
    list-style: none;
    max-width: 100%;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1;
    white-space: nowrap;
}
.pagination .pagination-step { font-size: 1.15rem; font-weight: 700; }
.pagination a:hover { background: #1f2937; text-decoration: none; }
.pagination .active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* ---- No Events ---- */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.no-events p { font-size: 1.1rem; margin-bottom: 15px; }

/* ---- Submission Form ---- */
.form-page { max-width: 700px; margin: 30px auto; }
.form-page h2 { margin-bottom: 8px; color: #f3f4f6; }
.form-intro { color: #9ca3af; margin-bottom: 25px; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #d1d5db;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #1f2937;
    color: #d1d5db;
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6b7280; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.form-fieldset {
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}
.form-fieldset legend {
    font-weight: 600;
    padding: 0 8px;
    font-size: 0.95rem;
    color: #d1d5db;
}

.form-actions { margin-top: 25px; }

.required { color: #f87171; }
.hint { font-weight: 400; color: #6b7280; font-size: 0.85rem; }
.current-image { font-size: 0.85rem; color: #9ca3af; margin-bottom: 8px; }

/* ---- Footer ---- */
.site-footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

/* ---- Event Detail Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    color: #d1d5db;
}
.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
}

/* ---- FullCalendar Dark Overrides ---- */
.fc {
    --fc-border-color: #374151;
    --fc-button-bg-color: #374151;
    --fc-button-border-color: #4b5563;
    --fc-button-hover-bg-color: #4b5563;
    --fc-button-hover-border-color: #6b7280;
    --fc-button-active-bg-color: #3b82f6;
    --fc-button-active-border-color: #3b82f6;
    --fc-button-text-color: #d1d5db;
    --fc-today-bg-color: rgba(59,130,246,0.1);
    --fc-neutral-bg-color: #1f2937;
    --fc-page-bg-color: #111827;
    --fc-event-bg-color: #3b82f6;
    --fc-event-border-color: #2563eb;
    --fc-event-text-color: white;
}
.fc .fc-col-header-cell { background: #1f2937; }
.fc .fc-col-header-cell-cushion { color: #9ca3af; }
.fc .fc-daygrid-day-number { color: #d1d5db; }
.fc .fc-toolbar-title { color: #f3f4f6; }

/* ============================================
   EVENT DETAIL PAGE
   ============================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 20px 0 16px;
}
.back-link:hover { color: #f3f4f6; text-decoration: none; }

.event-hero {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 24px;
    background: #1f2937;
}

.event-detail {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}

.event-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Date/time block */
.event-when-block {
    display: flex;
    margin-bottom: 16px;
}
.event-when-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.event-when-icon {
    color: #60a5fa;
    font-size: 1.1rem;
    width: 1.2em;
    margin-top: 1px;
    flex-shrink: 0;
    line-height: 1;
}
.event-when-primary {
    font-size: 1rem;
    color: #d1d5db;
    font-weight: 500;
}
.event-when-secondary {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* Location block */
.event-location-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #374151;
}
.event-location-icon {
    color: #60a5fa;
    font-size: 1.1rem;
    width: 1.2em;
    margin-top: 1px;
    flex-shrink: 0;
    line-height: 1;
}
.event-location-name {
    font-size: 1.05rem;
    color: #f3f4f6;
    font-weight: 500;
}
.event-location-address {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 1px;
}

/* Description */
.event-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 24px;
}
.event-description p { margin-bottom: 12px; }

/* Details section */
.event-details-section {
    background: #172033;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}
.event-details-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
}
.event-details-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 12px 32px;
    justify-content: start;
}
.detail-item-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2px;
}
.detail-item-value {
    font-size: 0.95rem;
    color: #d1d5db;
}

/* Phone reveal button */
.btn-reveal-phone {
    background: #374151;
    color: #d1d5db;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-reveal-phone:hover { background: #4b5563; }

/* Action bar */
.event-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #374151;
    margin-top: 8px;
}
.event-actions-left {
    display: flex;
    gap: 10px;
    align-items: center;
}
.event-actions-right {
    font-size: 0.85rem;
    color: #6b7280;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #374151;
    color: #d1d5db;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-share:hover { background: #4b5563; }

.report-link {
    font-size: 0.85rem;
    color: #6b7280;
}
.report-link:hover { color: #9ca3af; }

.view-count {
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}
.event-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.save-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 14px;
    border-radius: 6px;
    background: #111827;
    border: 1px solid #374151;
    color: #f3f4f6;
    box-shadow: 0 12px 28px rgba(0,0,0,0.34);
    transition: opacity 0.16s, transform 0.16s;
}
.save-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {

    /* Slideshow: smaller on mobile */
    .slideshow-wrapper { height: 160px; }
    .hero-header { aspect-ratio: 16 / 9; }
    .hero-title-bar { padding: 10px 12px 22px; }
    .hero-title-bar .title-main { font-size: 1rem; }
    .hero-title-bar .title-sub { font-size: 0.72rem; }
    .hero-title-bar .title-daily-count { font-size: 1rem; }
    .hero-caption-bar { min-height: 28px; padding: 5px 10px; font-size: 0.72rem; }
    .caption-overlay { font-size: 0.8rem; padding: 6px 0; }
    .branding-banner { height: 80px; }
    .branding-banner h2 { font-size: 1.2rem; }

    /* Banner: smaller text */
    .site-banner { padding: 14px 12px 12px; }
    .site-banner-title { font-size: 1.1rem; }
    .site-banner-subtitle { font-size: 0.7rem; }

    /* Search/filters full width */
    .search-row {
        flex-wrap: wrap;
    }
    .search-row .search-input {
        flex: 1;
        min-width: 0;
    }
    .search-row .btn {
        flex: 0 0 auto;
    }
    .search-row .aa-bolt {
        flex-shrink: 0;
    }

    /* Compact list — stay single line, tighten gaps */
    .compact-row { gap: 8px; }
    .compact-row-main { gap: 8px; }
    .compact-date { width: 75px; font-size: 0.7rem; }
    .compact-title { font-size: 0.85rem; }
    .category-badge-sm { font-size: 0.6rem; padding: 1px 5px; }
    .compact-views { min-width: 66px; font-size: 0.7rem; }
    .compact-save-btn { min-width: 50px; font-size: 0.7rem; }

    /* Event cards */
    .event-card { flex-direction: column; }
    .event-card-image { width: 100%; height: 180px; }
    .event-card-title { font-size: 1rem; }
    .event-card-meta { align-items: flex-start; flex-wrap: wrap; }
    .event-card-views { font-size: 0.75rem; }
    .event-card-owner-actions { margin-top: -6px; padding: 0; text-align: left; }

    /* Pagination */
    .pagination {
        gap: 4px;
        margin: 22px 0;
        padding: 0 6px;
    }
    .pagination a,
    .pagination span {
        min-width: 34px;
        min-height: 34px;
        padding: 6px 9px;
        font-size: 0.84rem;
    }
    .pagination .pagination-step { font-size: 1rem; }

    /* My Events */
    .account-summary { grid-template-columns: 1fr; }
    .my-event-row { flex-direction: column; align-items: flex-start; }
    .my-event-actions { width: 100%; align-items: flex-start; }
    .my-event-buttons { flex-wrap: wrap; }
    .saved-events-header { align-items: flex-start; flex-direction: column; }
    .saved-event-row { align-items: flex-start; }
    .saved-event-thumb { width: 82px; height: 46px; }
    .saved-event-actions { margin-left: auto; align-self: stretch; }

    /* Form */
    .form-row { flex-direction: column; gap: 0; }

    /* Event detail responsive */
    .event-detail { padding: 16px; }
    .event-detail-title { font-size: 1.3rem; }
    .event-hero { border-radius: 6px; }
    .event-details-grid { grid-template-columns: 1fr; }
    .event-actions { flex-direction: column; gap: 12px; align-items: flex-start; }

    /* Touch targets: minimum 48px height for tappable elements */
    .btn, .btn-share, .btn-reveal-phone {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .back-link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }
}

/* ---- Week navigation (2026-08-03: replaces the List/Flyer/Grid toggle) ---- */
.week-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 75;
}
.week-nav button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    background: #4b5563;
    color: #d1d5db;
}
.week-nav button:hover:not(:disabled) { background: #6b7280; }
.week-nav button:disabled { opacity: 0.5; cursor: default; }
.week-label {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 128px;
    text-align: center;
    white-space: nowrap;
}

/* ---- Ongoing divider (multi-day events carried into the week) ---- */
.ongoing-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 12px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ongoing-divider::before,
.ongoing-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #374151;
}
.no-events-inline {
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 10px 0;
}

/* ---- Week hop loading cue (uncached jumps only) ---- */
#view-flyer.week-loading {
    opacity: 0.55;
    transition: opacity 0.15s;
}

/* ---- Week button mousedown flash ---- */
@keyframes week-btn-flash {
    0%   { background: #34d399; color: #111827; }
    100% { background: #4b5563; color: #d1d5db; }
}
.week-nav button.week-flash {
    animation: week-btn-flash 0.35s ease-out;
}

/* ---- Tip Jar toolbar link (2026-08-07, ships with the pricing package) ---- */
.toolbar-tip {
    white-space: nowrap;
}
