/* Smiley Website Styles */
/* Design system matching the Smiley iOS app */

/* CSS Variables - Brand Colors */
:root {
  --smiley-yellow: #FFD83D;
  --peach-coral: #FF8A65;
  --sky-blue: #4FC3F7;
  --off-white: #FFF9E6;
  --graphite: #2B2B2B;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--graphite);
  background-color: var(--off-white);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: -apple-system-rounded, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* Header/Navigation */
header {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-header img {
  width: 50px;
  height: 50px;
}

.logo-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--graphite);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--graphite);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: var(--off-white);
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  border: 1px solid transparent;
}

.header-links a:hover {
  background-color: var(--smiley-yellow);
  color: var(--graphite);
  opacity: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--smiley-yellow) 0%, var(--peach-coral) 100%);
  padding: 6rem 0;
  text-align: center;
  color: var(--graphite);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero .logo {
  width: 150px;
  height: 150px;
  margin-bottom: 2rem;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--white);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 1;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--graphite);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #1a1a1a;
}

.btn-secondary {
  background-color: var(--peach-coral);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
}

.btn-yellow {
  background-color: var(--smiley-yellow);
  color: var(--graphite);
  box-shadow: 0 4px 15px rgba(255, 216, 61, 0.3);
}

/* App Store Button */
.app-store-btn {
  display: inline-block;
  margin-top: 1rem;
}

.app-store-btn img {
  height: 60px;
  transition: transform 0.3s ease;
}

.app-store-btn:hover img {
  transform: scale(1.05);
}

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

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--graphite);
}

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

.feature-card {
  background-color: var(--off-white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--graphite);
}

.feature-card p {
  color: var(--graphite);
  opacity: 0.8;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

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

.content-section.off-white {
  background-color: var(--off-white);
}

/* Contact Page Styles */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

.contact-content h1 {
  margin-bottom: 2rem;
}

.contact-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.email-link {
  font-size: 1.25rem;
  color: var(--sky-blue);
  font-weight: 600;
  text-decoration: underline;
}

.email-link:hover {
  color: var(--peach-coral);
}

/* Footer */
footer {
  background-color: var(--graphite);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.footer-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Privacy Policy Specific Styles */
.privacy-policy {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(160deg, #fffdf5 0%, #ffe7c3 100%);
}

.privacy-policy h1 {
  color: var(--graphite);
  margin-bottom: 1rem;
}

.privacy-policy h2 {
  color: var(--graphite);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-policy h3 {
  color: var(--graphite);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-policy p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-policy ul, .privacy-policy ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}

.privacy-policy li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.back-home {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--sky-blue);
  font-weight: 600;
}

.back-home:hover {
  color: var(--peach-coral);
}

/* Terms of Service Styles */
.terms-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(160deg, #fffdf5 0%, #ffe7c3 100%);
}

.terms-content h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.legal-text {
  margin-top: 2rem;
  line-height: 1.8;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.25rem;
  }

  .hero .logo {
    width: 120px;
    height: 120px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .header-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .header-links a {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

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

  .hero {
    padding: 4rem 0;
  }

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