/* STL Singing Telegrams - Main styles */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@500;600;700&display=swap');

:root {
    --color-primary: #c41e3a;
    --color-primary-dark: #9a1830;
    --color-gold: #c9a227;
    --color-gold-light: #e5c547;
    --color-bg: #f5f0e6;
    --color-text: #2c2c2c;
    --color-muted: #666;
    --color-rock-dark: #1a1a1a;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --font-rock: 'Bebas Neue', 'Oswald', Impact, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* Header - cream to match logo background */
.site-header {
    background: var(--color-bg);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--color-rock-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.site-header .container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 5px;
    padding-right: 1rem;
}
.logo {
    display: block;
    line-height: 0;
    text-decoration: none;
    margin: 0;
    margin-right: auto;
}
.logo img {
    display: block;
    height: 190px;
    width: auto;
    max-width: min(880px, 90vw);
    object-fit: contain;
    object-position: left center;
}
.site-nav { display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
    font-family: var(--font-rock);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-rock-dark);
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s, background 0.2s, text-shadow 0.2s;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.site-nav a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    text-shadow: 0 0 12px rgba(196, 30, 58, 0.3);
}
.site-nav a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Main */
.main-content { min-height: 60vh; padding: 2rem 0; }

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.site-footer p { margin: 0; font-size: 0.9rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-secondary { background: #e0e0e0; color: var(--color-text); }
.btn-secondary:hover { background: #d0d0d0; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--color-text);
}
.form-group label .optional { font-weight: 400; color: var(--color-muted); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}
textarea { min-height: 100px; resize: vertical; }
select[multiple] { min-height: 120px; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { margin-top: 0; color: var(--color-primary); }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Home hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, rgba(196,30,58,0.08) 0%, transparent 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.hero h1 { font-family: var(--font-display); font-size: 2.25rem; margin: 0 0 0.5rem; color: var(--color-primary); }
.hero p { font-size: 1.15rem; color: var(--color-muted); max-width: 540px; margin: 0 auto 1.5rem; }
.hero .btn { font-size: 1.1rem; padding: 0.75rem 1.5rem; }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-item summary {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: " +"; color: var(--color-primary); }
.faq-item[open] summary::after { content: " −"; }
.faq-item .answer { padding: 0 0 1rem; color: var(--color-muted); }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #2c2c2c;
    color: #eee;
    padding: 1rem 0;
}
.admin-sidebar a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #ccc;
    text-decoration: none;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #444; color: #fff; }
.admin-main { flex: 1; padding: 1.5rem 2rem; background: #f5f5f5; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-header h1 { margin: 0; font-size: 1.5rem; }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
table.data-table th, table.data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
table.data-table th { background: #f8f8f8; font-weight: 600; }
table.data-table tr:hover { background: #fafafa; }
.actions { white-space: nowrap; }
.actions a, .actions button { margin-right: 0.5rem; font-size: 0.9rem; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.badge-new { background: #d1ecf1; color: #0c5460; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-completed { background: #cce5ff; color: #004085; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* Booking page: song list and selected songs */
.booking-song-hint { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.booking-song-item {
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    margin: 0.1rem 0;
}
.booking-song-item:hover { background: #eee; }
.booking-selected-item {
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    margin: 0.2rem 0;
}
.booking-selected-item:hover { background: #e8e8e8; }
.booking-selected-item:empty { display: none; }

/* Home page photo strip (below menu) */
.home-photo-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1a1a1a;
    padding: 0.5rem 0;
    position: relative;
}
.home-photo-strip-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}
.home-photo-strip-inner {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-photo-strip-inner::-webkit-scrollbar { display: none; }
.home-photo-strip-item {
    flex: 0 0 auto;
}
.home-photo-strip-item img {
    display: block;
    height: 180px;
    width: auto;
    max-width: 280px;
    object-fit: cover;
    border-radius: 4px;
}
.home-photo-strip-btn {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 0.25rem;
}
.home-photo-strip-btn:hover {
    background: rgba(255,255,255,0.35);
}
.home-photo-strip-btn:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}
