/*
   bestaipornwebsitereddit.love - Main Styles
   Purple and orange/yellow theme with social media style layout
*/

:root {
  /* Color Palette - Purple and Orange Theme */
  --primary: #673AB7;       /* Deep Purple */
  --primary-light: #9575CD; /* Light Purple */
  --primary-dark: #4527A0;  /* Dark Purple */
  --accent: #FF9800;        /* Orange */
  --accent-light: #FFB74D;  /* Light Orange */
  --accent-dark: #F57C00;   /* Dark Orange */
  --text-light: #FFFFFF;    /* White */
  --text-dark: #212121;     /* Almost Black */
  --bg-light: #F5F5F5;      /* Off-White */
  --bg-dark: #303030;       /* Dark Gray */
  --gray: #9E9E9E;          /* Medium Gray */
  --upvote: #FF4500;        /* Reddit-like Upvote */
  --border: rgba(158, 158, 158, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  color: var(--text-light);
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

h3 {
  color: var(--primary-dark);
}

/* Utility Classes */
.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; }

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

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

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

.logo svg {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.2rem;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

nav ul {
  display: none;
  list-style: none;
}

nav ul.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--primary);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  padding: 1rem 0;
}

nav ul li {
  margin: 0.5rem 1rem;
}

nav ul a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
}

nav ul a:hover {
  color: var(--accent-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0.5rem;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4);
  color: var(--text-light);
}

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

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--text-dark);
}

/* Reddit-style Posts Section */
.posts {
  padding: 4rem 0;
}

.posts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.post {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

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

.post-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.post-subreddit {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.post-author {
  font-size: 0.8rem;
  color: var(--gray);
  margin-left: 0.5rem;
}

.post-content {
  padding: 1rem;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-text {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.post-media {
  height: 200px;
  background: linear-gradient(45deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-footer {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.post-votes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vote-icon {
  color: var(--upvote);
  font-weight: bold;
}

.vote-count {
  font-weight: 700;
  color: var(--text-dark);
}

.post-comments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.post-actions a {
  padding: 0.5rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--primary-light);
  color: var(--text-light);
}

.post-actions a:hover {
  background: var(--primary);
}

/* Categories Section */
.categories {
  padding: 4rem 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.categories h2 {
  color: var(--text-light);
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.category:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.category h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.category p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.category-stats {
  display: flex;
  justify-content: space-around;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z'%3E%3C/path%3E%3C/svg%3E");
  opacity: 0.05;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

.cta h2 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 50px;
  height: 50px;
}

.footer-tagline {
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: all 0.3s ease;
}

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

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Media Queries */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .menu-toggle {
    display: none;
  }
  
  nav ul {
    display: flex;
    flex-direction: row;
  }
  
  nav ul li {
    margin: 0 0 0 1.5rem;
  }
  
  .posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .posts-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
