/*
Theme Name: Rave Sector
Theme URI: https://ravesector.com
Description: Custom dark theme for Rave Sector — electronic music culture
Version: 1.0
Author: Rave Sector
Author URI: https://ravesector.com
Text Domain: ravesector
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

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

:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --muted: #777777;
  --border: #1e1e1e;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===================== HEADER ===================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: white;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 18px; }
  .hamburger { display: flex; }
}

/* ===================== MAIN ===================== */
#main-content { padding-top: 64px; }

/* ===================== HERO ===================== */
.hero {
  width: 100%;
  overflow: hidden;
  max-height: 88vh;
}

.hero img {
  width: 100%;
  height: 88vh;
  object-fit: cover;
  object-position: center;
}

/* ===================== SECTION HEADING ===================== */
.section-heading {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-transform: lowercase;
}

.section-heading a { color: var(--text); }

/* ===================== HOME NEWS GRID ===================== */
.news-section { padding: 80px 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card { display: flex; flex-direction: column; gap: 14px; }

.news-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.news-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.news-card-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.read-more {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.read-more:hover {
  color: var(--text);
  border-color: var(--text);
  opacity: 1;
}

/* ===================== ARCHIVE (NEWS PAGE) ===================== */
.archive-page { padding: 80px 0; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

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

.archive-card { display: flex; flex-direction: column; gap: 14px; }

.archive-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.archive-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-image img { transform: scale(1.05); }

.archive-card-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.archive-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.archive-card-title a { color: var(--text); }

/* ===================== SINGLE POST ===================== */
.single-post { padding: 80px 0; }

.single-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.post-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 36px;
}

.post-featured-image {
  width: 100%;
  overflow: hidden;
  margin-bottom: 48px;
}

.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #d8d8d8;
}

.post-content p { margin-bottom: 24px; }
.post-content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
.post-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.post-content img { width: 100%; margin: 28px 0; }
.post-content a { color: var(--text); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid #333;
  padding-left: 20px;
  margin: 32px 0;
  color: var(--muted);
  font-style: italic;
}

.back-link {
  display: inline-block;
  margin-top: 60px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
}

.back-link:hover { color: var(--text); border-color: var(--text); opacity: 1; }

/* ===================== STATIC PAGES ===================== */
.page-content { padding: 80px 0; }

.page-inner { max-width: 760px; margin: 0 auto; }

.page-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.page-body {
  font-size: 17px;
  line-height: 1.85;
  color: #d8d8d8;
}

.page-body p { margin-bottom: 20px; }
.page-body strong { color: var(--text); font-weight: 600; }
.page-body a { color: var(--text); text-decoration: underline; }

/* ===================== CONTACT PAGE ===================== */
.contact-list {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list li {
  font-size: 17px;
  color: #d8d8d8;
  padding-left: 20px;
  position: relative;
}

.contact-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.email-button {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  border: 1px solid var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.email-button:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

/* ===================== PLAYLISTS PAGE ===================== */
.playlists-page { padding: 80px 0; }

.playlists-inner { max-width: 900px; margin: 0 auto; }

.playlists-grid { display: grid; gap: 32px; }

.playlist-embed iframe {
  width: 100%;
  border-radius: 12px;
  border: none;
}

/* Gutenberg embed block inside playlists */
.playlists-page .wp-block-embed { margin-bottom: 32px; }
.playlists-page .wp-block-embed iframe { border-radius: 12px; }

/* ===================== PAGINATION ===================== */
.pagination {
  padding: 60px 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 8px 18px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
}

.pagination a:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
  border-color: var(--text);
}

.pagination .current {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===================== FOOTER ===================== */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-social { display: flex; gap: 28px; }

.footer-social a, .footer-email a, .footer-legal a {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-social a:hover, .footer-email a:hover, .footer-legal a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-legal { display: flex; gap: 24px; }

/* ===================== NO CONTENT ===================== */
.no-posts {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
