/* 
 * Memes Generator - Main Stylesheet
 * Theme: Bold & Playful Minimalism
 */

:root {
  --primary: #7E3FF2;
  --secondary: #5D1EB5;
  --accent: #FFB800;
  --background: #F9F9FB;
  --card-background: #FFFFFF;
  --text-primary: #1C1C1E;
  --text-secondary: #4A4A4A;
  --error: #F44336;
  --divider: #E0E0E0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography */
h1 {
  font-weight: bold;
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-weight: bold;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h3 {
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.small-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

a:hover {
  text-decoration: underline;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

section {
  padding: 5rem 0;
}

/* Navigation */
nav {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background-color: var(--card-background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-links a.highlight {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: var(--primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #E6A700;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Cards */
.card {
  background-color: var(--card-background);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-content {
  padding: 1.5rem;
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features {
  padding: 5rem 0;
}

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

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

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

.meme-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

/* How It Works Section */
.steps {
  counter-reset: step-counter;
  margin-top: 3rem;
}

.step {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex: 0 0 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 50%;
  margin-right: 2rem;
}

.step-content {
  flex: 1;
}

/* CTA Section */
.cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 5rem 0;
  border-radius: 16px;
  margin: 4rem 0;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background-color: var(--card-background);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--divider);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* App Store Badges */
.store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-5px);
}

.app-badge-container {
  margin-top: 1.5rem;
  text-align: left;
}

/* Badge wrapper for vertical alignment */
.badge-wrapper {
  display: inline-block;
  vertical-align: middle;
  margin: 10px 20px 10px 0;
}

/* Hero section container */
.hero-badge-container {
  margin-top: 3rem;
  text-align: center;
}

/* Device section container */
.device-badge-container {
  text-align: left;
}

.app-store-badge {
  height: 140px;
  width: 340px;
  object-fit: contain;
  border-radius: 8px;
  vertical-align: middle;
}

.play-store-badge {
  height: 100px;
  width: 300px;
  object-fit: contain;
  border-radius: 8px;
  vertical-align: middle;
}

/* Media Queries */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .app-store-badge {
    height: 120px;
    width: 290px;
  }
  
  .play-store-badge {
    height: 90px;
    width: 260px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    margin-top: 1rem;
  }
  
  .nav-links li {
    margin: 0 0.8rem;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-column {
    margin-bottom: 2rem;
  }
  
  .app-store-badge {
    height: 110px;
    width: 260px;
  }
  
  .play-store-badge {
    height: 80px;
    width: 210px;
  }
  
  /* Mobile badge alignment */
  .app-badge-container {
    text-align: center;
  }
  
  .badge-wrapper {
    display: block;
    margin: 15px auto;
    text-align: center;
  }
  
  .device-badge-container {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .meme-grid {
    grid-template-columns: 1fr;
  }
  
  .app-store-badge {
    height: 100px;
    width: 240px;
  }
  
  .play-store-badge {
    height: 70px;
    width: 180px;
  }
  
  /* Ensure badges display properly on small screens */
  .badge-wrapper {
    margin: 10px auto;
  }
} 