/*
Theme Name: Watercolor Music
Theme URI: https://watercolormusic.com
Description: Dark neon theme for the Watercolor Music community. Band directory + Google Calendar events.
Version: 1.0.0
Author: MatzekMedia
Text Domain: watercolor-music
*/

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

:root {
  --bg: #303030;
  --surface: #3a3a3a;
  --border: #4a4a4a;
  --accent: #ff00ff;
  --accent-hover: #ff44ff;
  --cyan: #00ffff;
  --text: #ffff00;
  --text-muted: #dddd33;
  --link: #ff00ff;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

/* === Layout === */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* === Header === */
.site-header { padding: 24px 0; text-align: center; }
.site-title { font-size: 48px; font-weight: bold; letter-spacing: 2px; }
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--accent); }
.site-nav { display: flex; justify-content: center; gap: 32px; margin-top: 12px; }
.site-nav a { color: var(--text-muted); font-size: 20px; }
.site-nav a:hover, .site-nav a.current { color: var(--cyan); }

/* === Footer === */
.site-footer { margin-top: 80px; padding: 24px 0; text-align: center; color: var(--text-muted); font-size: 12px; }

/* === Home: Band List === */
.band-row { padding: 24px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
@media (min-width: 768px) {
  .band-row { flex-direction: row; gap: 32px; }
}
.band-info { text-align: center; flex-shrink: 0; }
@media (min-width: 768px) {
  .band-info { width: 50%; padding-right: 8px; }
}
.band-name { font-size: 32px; color: var(--cyan); font-weight: bold; letter-spacing: 2px; }
.band-name a { color: var(--cyan); }
.band-name a:hover { color: var(--accent-hover); }
.band-links { font-size: 22px; margin-top: 8px; }
.band-links a { color: var(--link); }
.band-links .sep { color: var(--text-muted); margin: 0 8px; }
.band-next-show { font-size: 22px; margin-top: 4px; }
.band-next-show .venue { color: var(--text-muted); }
.band-banner { display: none; }
@media (min-width: 768px) {
  .band-banner { display: block; width: 50%; }
  .band-banner img { width: 100%; height: auto; object-fit: cover; }
  .band-banner img:hover { opacity: 0.9; }
}

/* === Band Detail === */
.band-detail { display: flex; flex-direction: column; gap: 32px; padding: 32px 0; }
@media (min-width: 768px) {
  .band-detail { flex-direction: row; }
  .band-left, .band-right { width: 50%; }
}
.band-left { display: flex; flex-direction: column; gap: 16px; }
.band-photo { border: 1px solid var(--border); overflow: hidden; }
.band-photo img { width: 100%; height: auto; display: block; }
.band-photo-placeholder { border: 1px solid var(--border); height: 256px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }
.embed-wrap { border: 1px solid var(--border); overflow: hidden; }
.embed-wrap iframe { display: block; width: 100%; border: 0; background: var(--surface); }
.band-title { font-size: 30px; font-weight: bold; color: var(--cyan); letter-spacing: 2px; margin-bottom: 8px; }
.band-description { color: var(--text-muted); font-size: 22px; line-height: 1.6; margin-bottom: 24px; }

/* === Section Headers === */
.section-header { font-size: 22px; text-transform: uppercase; letter-spacing: 4px; color: var(--text-muted); margin-bottom: 12px; }

/* === Event List === */
.event-item { border: 1px solid var(--border); padding: 12px 16px; cursor: pointer; transition: border-color 0.2s; }
.event-item:hover { border-color: rgba(255,0,255,0.4); }
.event-item .event-date { color: var(--cyan); font-weight: 500; font-size: 22px; }
.event-item .event-city { color: var(--text-muted); font-size: 18px; }
.event-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

/* === Link List === */
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-item { border: 1px solid var(--border); padding: 12px 16px; font-size: 22px; display: flex; justify-content: space-between; align-items: center; color: var(--text); transition: border-color 0.2s, color 0.2s; }
.link-item:hover { border-color: rgba(255,0,255,0.4); color: var(--accent); }
.link-item .arrow { color: var(--cyan); font-weight: bold; transition: color 0.2s; }
.link-item:hover .arrow { color: var(--accent); }

/* === Band Nav Ring === */
.band-nav { border-bottom: none; }
.band-nav-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.band-nav-scroll { position: relative; overflow: hidden; flex: 1; min-width: 0; }
.band-nav-inner { display: flex; gap: 4px; padding: 12px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.band-nav-inner::-webkit-scrollbar { display: none; }
.band-nav-inner { scrollbar-width: none; }
.band-nav a { padding: 6px 12px; font-size: 22px; white-space: nowrap; color: var(--text-muted); flex-shrink: 0; transition: color 0.2s; }
.band-nav a:hover { color: var(--cyan); }
.band-nav a.active { background: rgba(255,0,255,0.1); color: var(--cyan); border: 1px solid rgba(255,0,255,0.3); }
a.band-nav-arrow { color: var(--cyan); font-size: 22px; font-family: inherit; font-weight: bold; background: none; border: none; padding: 12px 16px; flex-shrink: 0; white-space: nowrap; display: none; text-decoration: none; }
.band-nav-arrow:hover { color: var(--accent-hover); }
@media (min-width: 768px) {
  a.band-nav-arrow { display: block; }
  .band-nav-inner { overflow-x: hidden; }
}
.band-nav .fade-left,
.band-nav .fade-right { position: absolute; top: 0; bottom: 0; width: 80px; z-index: 10; pointer-events: none; }
.band-nav .fade-left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.band-nav .fade-right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

/* === Calendar === */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.calendar-header h1 { font-size: 24px; color: var(--cyan); font-weight: 500; letter-spacing: 2px; }
.calendar-header a { color: var(--text-muted); }
.calendar-header a:hover { color: var(--cyan); }
.calendar-grid { border: 1px solid var(--border); }
.calendar-daynames { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border); }
.calendar-daynames div { padding: 8px 12px; font-size: 14px; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 2px; }
.calendar-weeks { }
.calendar-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-cell { min-height: 96px; padding: 8px 12px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.empty { background: var(--bg); }
.calendar-cell.today { background: rgba(255,0,255,0.05); }
.calendar-day { font-size: 16px; color: var(--text-muted); margin-bottom: 4px; }
.calendar-cell.today .calendar-day { color: var(--cyan); font-weight: bold; }
.calendar-event { text-align: left; width: 100%; font-size: 14px; margin-bottom: 6px; padding: 2px 4px; cursor: pointer; border: 0; background: none; transition: background 0.2s; font-family: inherit; }
.calendar-event:hover { background: rgba(255,0,255,0.1); }
.calendar-event .ev-name { color: var(--cyan); font-weight: 500; }
.calendar-event .ev-loc { color: var(--link); }
.calendar-event .ev-time { color: var(--text-muted); }

/* === Modal === */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.modal-content { position: relative; background: var(--bg); border: 1px solid var(--border); max-width: 896px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 768px) { .modal-content { flex-direction: row; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 10; color: var(--text-muted); font-size: 24px; background: none; border: none; cursor: pointer; font-family: inherit; }
.modal-close:hover { color: var(--cyan); }
.modal-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .modal-info { width: 50%; } }
.modal-info h2 { font-size: 28px; color: var(--cyan); font-weight: bold; letter-spacing: 2px; margin-bottom: 16px; }
.modal-info .detail { font-size: 22px; margin-bottom: 12px; }
.modal-info .detail .label { color: var(--text-muted); }
.modal-info .detail .value { color: var(--text); }
.modal-info .description { color: var(--text-muted); font-size: 18px; line-height: 1.6; margin-top: 8px; }
.modal-flyer { display: flex; align-items: center; justify-content: center; background: var(--surface); padding: 16px; }
@media (min-width: 768px) { .modal-flyer { width: 50%; } }
.modal-flyer img { max-height: 80vh; width: auto; object-fit: contain; }
.modal-flyer .no-flyer { color: var(--text-muted); font-size: 22px; text-align: center; padding: 80px 0; }

/* === Blog === */
.post-card { border: 1px solid var(--border); overflow: hidden; transition: border-color 0.2s; }
.post-card:hover { border-color: rgba(255,0,255,0.4); }
.post-card-image { height: 192px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: 20px; }
.post-meta { color: var(--text-muted); font-size: 22px; margin-bottom: 8px; }
.post-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 4px; color: var(--accent); border: 1px solid rgba(255,0,255,0.3); padding: 2px 8px; display: inline-block; margin-left: 12px; }
.post-card h2 { font-size: 22px; color: var(--cyan); font-weight: bold; letter-spacing: 2px; }
.post-card:hover h2 { color: var(--accent-hover); }
.post-card p { color: var(--text-muted); margin-top: 8px; font-size: 22px; }
.posts-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }

/* Single post */
.single-post-content { max-width: 768px; margin: 0 auto; padding: 48px 24px; }
.single-post-content .back-link { color: var(--text-muted); font-size: 22px; display: inline-block; margin-bottom: 32px; }
.single-post-content .back-link:hover { color: var(--cyan); }
.single-post-content h1 { font-size: 30px; color: var(--cyan); font-weight: bold; letter-spacing: 2px; margin-bottom: 24px; }
.single-post-content .featured-image { height: 288px; overflow: hidden; margin-bottom: 32px; }
.single-post-content .featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* WordPress content */
.wp-content p { margin-bottom: 1em; }
.wp-content a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.wp-content a:hover { color: var(--accent-hover); }
.wp-content img { max-width: 100%; height: auto; margin: 1.5em 0; }
.wp-content h2, .wp-content h3 { color: var(--cyan); margin-top: 1.5em; margin-bottom: 0.5em; }
.wp-content blockquote { border-left: 3px solid var(--accent); padding-left: 1em; margin: 1.5em 0; color: var(--text-muted); }
.wp-content ul, .wp-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.wp-content li { margin-bottom: 0.25em; }
.wp-content iframe { max-width: 100%; }

/* Band page blog section */
.band-updates { margin-top: 64px; border-top: 1px solid var(--border); padding-top: 32px; }
.band-post { border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.band-post .post-date { color: var(--text-muted); font-size: 22px; margin-bottom: 12px; }
.band-post h3 { color: var(--cyan); font-weight: 500; font-size: 22px; margin-bottom: 16px; }
.band-post .wp-content { font-size: 22px; line-height: 1.6; }

/* === Mailing List === */
.mailing-list { padding: 48px 0; }
.mailing-list p { font-size: 20px; color: var(--text-muted); margin-bottom: 16px; }
.mailing-list form { display: flex; gap: 8px; max-width: 384px; }
.mailing-list input[type="email"] { flex: 1; background: var(--surface); border: 1px solid var(--border); padding: 8px 12px; font-size: 20px; color: var(--text); font-family: inherit; }
.mailing-list input[type="email"]::placeholder { color: rgba(221,221,51,0.5); }
.mailing-list input[type="email"]:focus { outline: none; border-color: rgba(255,0,255,0.5); }
.mailing-list button { background: rgba(255,0,255,0.1); border: 1px solid rgba(255,0,255,0.3); color: var(--accent); padding: 8px 16px; font-size: 20px; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.mailing-list button:hover { background: rgba(255,0,255,0.2); }

/* === Utilities === */
.hidden { display: none !important; }
