/* ================================================
   NICE-CHAT.SITE - Main Stylesheet
   Modern, clean dating/chat platform design
   ================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  --text-main: #1F2937;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-gray: #F3F4F6;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  transition: var(--transition);
}

.logo:hover {
  color: var(--primary-dark);
}

.logo svg {
  flex-shrink: 0;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* ---- Buttons ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cta-primary {
  background: var(--primary);
  color: white;
}

.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-secondary {
  background: var(--bg-gray);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  background: var(--border);
}

.cta-nav {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  background: var(--primary);
  color: white;
}

.cta-nav:hover {
  background: var(--primary-dark);
}

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
}

.cta-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ---- Mobile Menu Button ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* ---- Main Content ---- */
main {
  flex: 1;
}

.page-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Page Sections ---- */
.page-section {
  padding: 3rem 0;
}

.page-section.bg-light {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  padding: 4rem 2rem;
}

.page-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.page-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-main);
}

.page-section p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.75;
}

.page-section ul, .page-section ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.page-section li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* ---- Hero Section (Homepage) ---- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-image {
  position: relative;
  height: 300px;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: absolute;
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero-card.card-1 {
  top: 20%;
  left: 10%;
}

.hero-card.card-2 {
  bottom: 20%;
  right: 15%;
}

.hero-card svg {
  color: var(--secondary);
}

/* ---- Features Section ---- */
.features {
  padding: 5rem 0;
  background: var(--bg-white);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- How It Works ---- */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.step p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Testimonials ---- */
.testimonials {
  padding: 5rem 0;
  background: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-main);
}

.author-location {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-primary {
  background: white;
  color: var(--primary);
}

.cta-section .cta-primary:hover {
  background: var(--bg-light);
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  background: var(--bg-light);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-content h2 a {
  color: var(--text-main);
  transition: var(--transition);
}

.blog-content h2 a:hover {
  color: var(--primary);
}

.blog-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 0.5rem;
}

/* ---- Blog Article ---- */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-link:hover {
  gap: 0.5rem;
}

.article-meta {
  color: var(--text-lighter);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.article-intro {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.blog-article h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
}

.blog-article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-main);
}

.blog-article ul, .blog-article ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-article li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.blog-article strong {
  color: var(--text-main);
}

.article-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-method p {
  color: var(--text-light);
}

/* ---- Contact Form ---- */
.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* ---- Values Grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.value-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Steps Detailed ---- */
.steps-detailed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step-detailed {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-image {
  width: 120px;
  height: 120px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---- Features List ---- */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.feature-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.feature-item span {
  color: var(--text-main);
}

/* ---- Stories Grid ---- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-lg);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-avatar {
  width: 64px;
  height: 64px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.story-author-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.story-location {
  font-size: 0.9rem;
  color: var(--text-light);
}

.story-content {
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.faq-item .faq-answer {
  display: none;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ---- Footer ---- */
.footer {
  background: var(--text-main);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-brand p {
  color: var(--text-lighter);
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links a {
  display: block;
  color: var(--text-lighter);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step-detailed {
    flex-direction: column;
    text-align: center;
  }

  .step-image {
    margin: 0 auto;
  }

  .cta-floating {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .features-grid,
  .steps,
  .testimonials-grid,
  .blog-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .cta-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No horizontal overflow */
body {
  overflow-x: hidden;
}

/* Ensure images don't overflow */
img, video, svg {
  max-width: 100%;
  height: auto;
}
