/* Modern admin theme */
:root {
  --primary: #111827; /* slate-900 */
  --primary-600: #1f2937; /* slate-800 */
  --accent: #3b82f6; /* blue-500 */
  --accent-600: #2563eb; /* blue-600 */
  --danger: #ef4444; /* red-500 */
  --success: #10b981; /* emerald-500 */
  --warning: #f59e0b; /* amber-500 */
  --bg: #f3f4f6; /* gray-100 */
  --panel: #ffffff;
  --muted: #6b7280; /* gray-500 */
  --border: #e5e7eb; /* gray-200 */
  --text: #111827; /* gray-900 */
}

/* Slider (homepage albums) */
.slider { position: relative; padding: 8px 0 12px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-radius: 12px; }
.slides { display:flex; gap:12px; overflow-x:auto; scroll-snap-type: x mandatory; padding: 8px 2px 10px; -ms-overflow-style: none; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; height: 0; }
.slide-card { flex:0 0 100%; min-width: 100%; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow: 0 4px 8px rgba(0,0,0,.06); padding:16px; display:flex; align-items:flex-start; gap:16px; scroll-snap-align:start; }
.slide-card.dark { background:#111827; border-color:#1f2937; color:#e5e7eb; }
.slide-card.dark .title { color:#fff; }
.slide-card.dark a { color:#e5e7eb; }
.slide-card.dark .btn { background:#fff; color:#111827 !important; border-color:#e5e7eb; }
.slide-card.dark .btn:hover { background:#f3f4f6; }
.slide-thumb { width:220px; height:220px; border-radius:12px; object-fit:contain; background:#e5e7eb; }
.slide-meta .title { font-size:16px; margin:0 0 4px; }
.slide-meta .small { font-size:12px; color: var(--muted); }
.section { padding: 8px 0 16px; }
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.section-header h2 { margin:0; font-size:20px; }
.section-header a { padding:6px 10px; border:1px solid var(--border); border-radius:8px; color:var(--text); text-decoration:none; }
.dots { display:flex; justify-content:center; gap:6px; margin-top:8px; }
.dot { width:8px; height:8px; border-radius:999px; background:#e5e7eb; transition:background .2s ease, transform .2s ease; }
.dot.active { background: var(--accent); transform:scale(1.15); }

/* Artist detail grid */
.detail-grid { display:grid; grid-template-columns: 300px 1fr; gap:16px; align-items:start; }
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .slide-thumb { width:160px; height:160px; }
}
.slider-nav { position:absolute; top:50%; transform:translateY(-50%); display:flex; gap:8px; width:100%; justify-content:space-between; pointer-events:none; }
.slider-nav button { pointer-events:auto; border:none; border-radius:999px; width:36px; height:36px; background:rgba(17,24,39,.8); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.slider-nav button:hover { background:rgba(17,24,39,.95); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }

/* Responsive helpers */
@media (max-width: 1024px) {
  .container { padding: 12px; }
  .grid { gap: 16px; }
  .slide-thumb { width:200px; height:200px; }
}
@media (max-width: 768px) {
  .container { padding: 10px; }
  .grid { gap: 14px; }
  .card { padding: 14px; }
  .title { font-size: 17px; }
  .slide-thumb { width:170px; height:170px; }
}
@media (max-width: 640px) {
  .container { padding: 8px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 12px; }
  .title { font-size: 16px; }
  .slide-card { padding: 12px; gap:12px; }
  .slide-thumb { width:140px; height:140px; }
  .media-card .thumb { width:80px; height:56px; }
  .section-header { flex-direction: row; gap:8px; }
}

/* Tables: make horizontally scrollable on small screens */
@media (max-width: 768px) {
  table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
  thead, tbody, th, td, tr { display: revert; }
}

/* Header / Navbar - Styles moved to header.php inline styles */

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.container.narrow { max-width: 900px; }
.hero { padding: 24px 0; }
.footer { text-align: center; padding: 24px; color: var(--muted); }

/* Grid and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.grid.tight { gap: 12px; }
.card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  padding: 16px;
  border: 1px solid var(--border);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: #d1d5db;
}
.card a.title, .card a { color: var(--text); }

.title { margin: 0 0 8px; font-weight: 700; font-size: 18px; }
.small { color: var(--muted); font-size: 12px; }
.img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; background: #e5e7eb; }
/* Detail pages may need natural height */
.img-auto {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px; /* cap height on detail screens */
  object-fit: contain;
  background: transparent;
  display: block;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .img-auto { max-height: 280px; }
}

/* Card grids that must show the whole image without cropping */
.img-contain { width:100%; height:180px; object-fit: contain; border-radius:8px; background:#e5e7eb; }

/* Buttons */
.btn { display:inline-block; padding:10px 14px; border-radius:10px; border:1px solid var(--border); background:#fff; color:var(--text); cursor:pointer; transition: all .15s ease; text-decoration:none; font-weight:600; }
.btn:hover { background:#f9fafb; }
.btn-sm { padding:6px 10px; border-radius:8px; font-size:12px; }
.btn-primary { background: var(--accent); color:#fff; border-color: transparent; }
.btn-primary:hover { background: var(--accent-600); }
.btn-danger { background: var(--danger); color:#fff; border-color: transparent; }
.btn-success { background: var(--success); color:#fff; border-color: transparent; }

/* Branded buttons */
.btn-youtube { background:#ff0000; color:#fff; border-color: transparent; }
.btn-youtube:hover { background:#cc0000; }
.btn-spotify { background:#1DB954; color:#fff; border-color: transparent; }
.btn-spotify:hover { background:#18a84b; }
.btn-apple { background:#fc3c44; color:#fff; border-color: transparent; }
.btn-apple:hover { background:#e2353c; }

/* Compact media card for platform buttons */
.media-card { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.media-card .thumb { width:96px; height:64px; border-radius:8px; object-fit:cover; background:#e5e7eb; }
.media-card .actions { display:flex; flex-wrap:wrap; gap:8px; }

/* Track list mini cards inside slider/right panes */
.slide-meta .title { font-weight:700; }
.slide-meta .track-item { padding:8px 0; border-bottom:1px dashed var(--border); }
.slide-meta .track-item:last-child { border-bottom:none; }
.pill { display:inline-block; padding:4px 8px; border-radius:999px; background:#f3f4f6; color:#374151; font-size:12px; }

/* Forms */
label { color: var(--muted); font-size: 13px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
thead th { background: #f9fafb; color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr:hover { background: #fafafa; }

/* Utilities */
.flex { display:flex; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.gap-8 { gap: 8px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; background:#eef2ff; color:#3730a3; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 8px; border:1px solid var(--border); }
.alert-success { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.alert-danger { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
.alert-warning { background:#fffbeb; color:#92400e; border-color:#fde68a; }

/* Desktop nav tighter spacing */
@media (min-width: 769px) {
  .header .main-nav { gap: 0 !important; }
  .header .main-nav a { padding: 2px 4px !important; }
  .header .nav a { margin-right: 4px !important; }
}

/* Corporate Footer */
.site-footer { background: #0f172a; color: #e5e7eb; margin-top: 24px; }
.site-footer a { color:#e5e7eb; text-decoration:none; }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 20px; padding: 28px 16px; }
.footer-col { font-size: 14px; }
.footer-brand { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.footer-brand img { width:40px; height:40px; object-fit:contain; filter:brightness(0) invert(1); }
.footer-title { font-weight:700; margin-bottom:8px; color:#fff; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.footer-links a { color:#cbd5e1; }
.footer-links a:hover { color:#fff; }
.footer-line { display:flex; align-items:center; gap:8px; margin:6px 0; color:#cbd5e1; }
.footer-line svg { opacity:.9; }
.footer-social { display:flex; gap:8px; margin-bottom:8px; }
.footer-social a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid rgba(255,255,255,.25); border-radius:8px; color:#e5e7eb; background: rgba(255,255,255,.04); transition:all .15s ease; }
.footer-social a svg { width:22px; height:22px; }
.footer-social a:hover { background:rgba(255,255,255,.08); }
/* Platform hover colors */
.footer-social a.fb:hover { color:#1877F2; border-color: rgba(24,119,242,.6); }
.footer-social a.ig:hover { color:#E1306C; border-color: rgba(225,48,108,.6); }
.footer-social a.x:hover  { color:#1DA1F2; border-color: rgba(29,161,242,.6); }
.footer-social a.yt:hover { color:#FF0000; border-color: rgba(255,0,0,.6); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); }
.footer-bottom-bar { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; color:#94a3b8; }
.map-embed iframe { border:0; }

/* Footer WhatsApp button high contrast */
.site-footer .btn { background:#25D366; color:#fff; border-color: transparent; }
.site-footer .btn:hover { background:#1ebe57; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; gap: 6px; text-align:center; }
}
