/*
Theme Name: EXPOSUREEE NextGen
Theme URI: https://exposureee.in/
Author: EXPOSUREEE
Description: A premium, dark-mode Bento Box UI theme built for tech creators and developers.
Version: 1.2
Text Domain: exposureee
*/

/* ==========================================================================
   1. CSS Variables & Theme Configuration
   ========================================================================== */
:root {
  /* Dark Mode Palette */
  --bg-main: #0c0707;
  --bg-card: #180e0e;
  --text-main: #f8fafc;
  --text-muted: #bfa8a8;
  
  /* Brand Accents */
  --accent-primary: #f43f5e; /* Neon Red */
  --accent-secondary: #f97316; /* Neon Orange */
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  /* Layout Specs */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ==========================================================================
   2. Base Reset & Typography
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   3. Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-main);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(255,255,255,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.badge {
  display: inline-block;
  background-color: rgba(244, 63, 94, 0.15);
  color: var(--accent-primary);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Hamburger Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.menu-toggle:focus {
  outline: none;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Transform bars to an X on active */
.menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Drawer Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 7, 7, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

.mobile-nav.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-nav a:hover {
  color: var(--accent-primary);
}

.mobile-nav .mobile-cta {
  margin-top: 1rem;
  width: 100%;
  max-width: 280px;
  font-size: 1.1rem;
  text-align: center;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   4. Site Header (Navigation)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(12, 7, 7, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.desktop-nav a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   6. The Bento Box Grid System (Creator Tools)
   ========================================================================== */
.bento-section {
  padding: 4rem 2rem;
}

.bento-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bento-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.bento-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 24px;
}

/* Bento Card Base */
.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border-radius: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Gradient Overlay for text legibility on images */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 14, 14, 0) 0%, rgba(24, 14, 14, 0.95) 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.bento-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
}

/* Bento Sizing Classes */
.bento-large {
  grid-column: span 2;
  background-color: var(--bg-card);
}

.bento-tall {
  background-color: var(--bg-card);
}

.bento-card.bento-card-cta::before {
  display: none;
}

.bento-card.bento-card-cta {
  justify-content: center;
  align-items: center;
}

/* Bento Card with explicit image aspect ratio */
.bento-card.bento-card-with-image {
  justify-content: space-between;
  padding: 1.5rem;
}

.bento-card.bento-card-with-image::before {
  display: none;
}

.bento-card-with-image .bento-image-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.bento-card-with-image .bento-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.bento-card-with-image:hover .bento-image-wrapper img {
  transform: scale(1.05);
}

/* Card Hover Effects */
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   7. Standard Post / Article Layouts
   ========================================================================== */
.post-article {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-title a:hover {
  color: var(--accent-primary);
}

.post-meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.post-content {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2, .post-content h3 {
  color: var(--text-main);
  margin: 2rem 0 1rem;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   9. Responsive Media Queries
   ========================================================================== */
@media (max-width: 900px) {
  /* Tablet Adjustments */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* Mobile Adjustments */
  .menu-toggle {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .nav-actions {
    display: none;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-large, .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}