/* Winter Recipe Randomizer — Promo Website Styles */
/* Theme extracted from app: dark navy + ice blue + cyan accent */

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

:root {
  --color-bg: #0A1628;
  --color-bg-deep: #060F1D;
  --color-bg-grad-end: #0D203C;
  --color-surface: #1A315C;
  --color-surface-hover: #1E3A6E;
  --color-surface-border: rgba(255, 255, 255, 0.08);
  --color-primary: #0099FF;
  --color-primary-dark: #0077CC;
  --color-secondary: #1A3A5C;
  --color-accent: #00E5FF;
  --color-highlight: #49BFFF;
  --color-text: #FFFFFF;
  --color-text-sec: #80CFFF;
  --color-text-muted: #4A7A9F;
  --color-success: #00E676;
  --color-error: #FF5252;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --font-family: 'Roboto', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--color-highlight);
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-surface-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  white-space: nowrap;
}

.navbar-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  color: var(--color-text-sec);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .hamburger {
    display: block;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.97);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-surface-border);
  }

  .navbar-links.open {
    display: flex;
  }
}

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

.page-top {
  padding-top: 96px;
}

/* ===== HERO ===== */
.hero {
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, #0A1628 0%, #0D203C 50%, #0A1628 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-sec);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-device {
  flex-shrink: 0;
  width: 260px;
}

.device-frame {
  position: relative;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 153, 255, 0.1);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 24px 60px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-device {
    width: 200px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 153, 255, 0.45);
  color: #fff;
}

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

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--color-accent);
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group {
    justify-content: center;
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--color-bg-deep);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-sec);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-sec);
  font-size: 0.95rem;
  text-align: left;
}

/* ===== SCREENSHOT CAROUSEL ===== */
.screenshots-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.carousel-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  transition: transform 0.4s ease;
}

.carousel-slide .device-frame {
  max-width: 240px;
  max-height: 350px;
}

.carousel-slide .device-frame img {
  object-fit: cover;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--color-surface-border);
  color: var(--color-text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}

.carousel-arrow:hover {
  background: var(--color-surface);
}

.carousel-arrow.prev {
  left: -16px;
}

.carousel-arrow.next {
  right: -16px;
}

@media (max-width: 640px) {
  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }

  .carousel-slide .device-frame {
    max-width: 180px;
    max-height: 300px;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--color-bg) 0%, #0D203C 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--color-text-sec);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--color-surface-border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-sec);
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== CONTENT PAGES (Privacy, Terms, Contact) ===== */
.content-page {
  padding-top: 96px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.content-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
}

.content-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-card .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.content-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.content-card p {
  color: var(--color-text-sec);
  margin-bottom: 12px;
  text-align: left;
  line-height: 1.7;
}

.content-card ul, .content-card ol {
  color: var(--color-text-sec);
  margin-bottom: 12px;
  padding-left: 24px;
  text-align: left;
}

.content-card li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.content-card a {
  color: var(--color-primary);
}

.content-card a:hover {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .content-card {
    padding: 24px 18px;
    border-radius: var(--border-radius);
  }

  .content-card h1 {
    font-size: 1.5rem;
  }
}

/* ===== CONTACT FORM ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-sec);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: var(--color-secondary);
  border: 1px solid var(--color-surface-border);
  color: var(--color-text-sec);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 10px;
}

.form-success {
  display: none;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  color: var(--color-success);
  font-weight: 500;
  margin-bottom: 20px;
}

/* ===== PRIVACY ACCEPT BUTTON ===== */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 24px 24px;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  display: flex;
  justify-content: center;
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 153, 255, 0.45);
}

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

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

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--border-radius);
  box-shadow: 0 0 60px rgba(0, 153, 255, 0.2);
}
