/* ============================================
   TATABUYBUY.COM - MAIN STYLESHEET
   Indian Meme Platform | Feel-Good Content
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: #ff6b35;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff4500;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-emoji {
  font-size: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  transition: opacity 0.3s ease;
  position: relative;
}

nav a:hover {
  opacity: 0.8;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   4. HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: slideInDown 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero-tagline {
  font-size: 1.1rem;
  margin-top: 1rem;
  opacity: 0.9;
  font-style: italic;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease 0.4s backwards;
}

.btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: #ff6b35;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: #ff4500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   5. TRENDING SECTION
   ============================================ */

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #ffd700);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.meme-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.meme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.meme-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  overflow: hidden;
  position: relative;
}

.meme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meme-content {
  padding: 1.5rem;
}

.meme-category {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.meme-caption {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.meme-stats {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.relatable-score {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.fire-icon {
  color: #ff6b35;
  font-size: 0.9rem;
}

/* ============================================
   6. CATEGORY SECTIONS
   ============================================ */

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

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #667eea;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-top-color: #ff6b35;
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  margin-bottom: 0.8rem;
  color: #1a1a1a;
}

.category-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.category-link {
  display: inline-block;
  color: #667eea;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-link:hover {
  color: #ff6b35;
  transform: translateX(5px);
}

/* ============================================
   7. SPECIAL SECTIONS
   ============================================ */

.featured-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
}

.featured-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.featured-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
}

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

.meter-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.meter-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.meter-label {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.meter-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: #667eea;
}

/* ============================================
   8. FOOTER
   ============================================ */

footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ff6b35;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  color: #ff6b35;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ff6b35;
  color: white;
  transform: translateY(-3px);
}

/* ============================================
   9. ANIMATIONS
   ============================================ */

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================
   10. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
  }

  nav.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #667eea;
    padding: 1rem;
  }

  nav.active ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .meme-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 2rem 1rem;
  }

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

  .trending-meter {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

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

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

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .meme-image {
    height: 200px;
    font-size: 2rem;
  }

  .trending-meter {
    grid-template-columns: 1fr;
  }

  .section-title h2::after {
    width: 60px;
  }
}

/* ============================================
   11. UTILITY CLASSES
   ============================================ */

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
