/*
Theme Name: HypeVibe
Theme URI: https://hypevibe.org
Author: HypeVibe
Author URI: https://hypevibe.org
Description: A bold, modern theme for streetwear culture & sneakerheads. Dark aesthetic with neon accents, built for speed.
Version: 1.0.0
License: GPL v2 or later
Text Domain: hypevibe
*/

/* ===== CSS Custom Properties ===== */
:root {
  --bg: #08080a;
  --bg-secondary: #111115;
  --bg-card: #16161c;
  --bg-card-hover: #1e1e26;
  --border: #222230;
  --text: #e8e8ed;
  --text-secondary: #8888a0;
  --text-muted: #545470;
  --accent: #00f066;
  --accent-glow: rgba(0, 240, 102, 0.15);
  --accent-dim: rgba(0, 240, 102, 0.06);
  --hot: #ff2d55;
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --blue: #3b82f6;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo .dot {
  -webkit-text-fill-color: var(--accent);
}

.main-nav { display: flex; gap: 4px; list-style: none; }

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--text);
  background: var(--bg-card);
}

.nav-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.85rem;
  width: 200px;
  transition: all 0.2s;
  outline: none;
}

.nav-search:focus { border-color: var(--accent); width: 240px; }
.nav-search::placeholder { color: var(--text-muted); }

.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero Section ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, var(--accent-dim) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, var(--purple-glow) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 240, 102, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: #33ff88;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(0, 240, 102, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: var(--bg-card);
  color: var(--text);
}

/* ===== Featured Posts Grid ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-top: 20px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title .accent-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
  margin-top: -2px;
}

.view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all:hover { color: var(--accent); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== Post Card ===== */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.post-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

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

.post-card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  font-size: 3rem;
  color: var(--text-muted);
}

.post-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.badge-drop { background: var(--accent); color: #000; }
.badge-review { background: var(--purple); color: #fff; }
.badge-news { background: var(--blue); color: #fff; }
.badge-hype { background: var(--hot); color: #fff; }

.post-card-body { padding: 20px 24px 24px; }

.post-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card-meta .read-time { display: flex; align-items: center; gap: 4px; }

/* ===== Featured Hero Post ===== */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 60px;
  align-items: center;
}

.featured-post-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.featured-post-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  font-size: 4rem;
  color: var(--text-muted);
}

.featured-post-body { padding: 40px 40px 40px 0; }

.featured-post-body .post-card-badge { position: static; display: inline-block; margin-bottom: 12px; }

.featured-post-body .post-card-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.featured-post-body .post-card-excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 3;
}

/* ===== Newsletter CTA ===== */
.newsletter-cta {
  background: linear-gradient(135deg, rgba(0,240,102,0.05), rgba(124,58,237,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 60px 0;
}

.newsletter-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  padding: 14px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-form button:hover { background: #33ff88; transform: translateY(-1px); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 8px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--accent-dim); color: var(--accent); }

/* ===== Single Post ===== */
.single-post-content {
  max-width: 780px;
  margin: 60px auto;
}

.single-post-content .post-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-post-content .post-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.single-post-content .post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.single-post-content .post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.single-post-content .post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.single-post-content .post-featured-image img { width: 100%; }
.single-post-content .post-featured-image .placeholder-img {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  font-size: 4rem;
  color: var(--text-muted);
}

.single-post-content .entry-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.single-post-content .entry-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.single-post-content .entry-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d0d0d8;
  margin-bottom: 20px;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: #d0d0d8;
}

.single-post-content .entry-content li { margin-bottom: 8px; line-height: 1.7; }

.single-post-content .entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.single-post-content .entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.single-post-content .entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Page ===== */
.page-content {
  max-width: 780px;
  margin: 60px auto;
}

.page-content .page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 40px;
  text-align: center;
}

/* ===== No Results / 404 ===== */
.not-found {
  text-align: center;
  padding: 80px 24px;
}

.not-found h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.not-found p { color: var(--text-secondary); margin-bottom: 24px; }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.pagination .page-numbers:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-body { padding: 24px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-search { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .hero { padding: 60px 0 48px; }
  .hero-title { font-size: 2rem; }
  .post-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .single-post-content { margin: 40px auto; padding: 0 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.2rem; }
}
