/*
* redditaiporn.site - Main Stylesheet
* Unique Reddit-inspired design with orange/white theme
*/

/* Base Styles & Variables */
:root {
  --primary: #FF4500;
  --secondary: #FF8717;
  --text: #1A1A1B;
  --text-light: #7C7C7C;
  --bg: #FFFFFF;
  --bg-alt: #F6F7F8;
  --border: #EDEFF1;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --radius: 4px;
  --max-width: 1200px;
}

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

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg-alt);
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

ul {
  list-style: none;
}

section {
  padding: 4rem 0;
}

h1, h2, h3 {
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

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

.btn-secondary:hover {
  background: rgba(255, 69, 0, 0.05);
}

.upvote-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Header Styles */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
}

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

.nav-menu li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-menu li a:hover {
  color: var(--primary);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: 0.3s;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.cta-button {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

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

#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 5px 0;
  transition: 0.4s;
}

/* Hero Section */
.hero {
  background: white;
  padding: 5rem 0;
  text-align: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Trending Section */
.trending {
  background: white;
}

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

.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.vote-bar {
  background: var(--bg-alt);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.vote-bar span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.post-content {
  flex: 1;
  padding: 1rem;
}

.post-content h3 {
  margin-bottom: 0.5rem;
}

.post-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Categories Section */
.categories {
  background: var(--bg-alt);
}

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

.category {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

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

.category h3 {
  font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
  background: white;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

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

.cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* Testimonials */
.testimonials {
  background: var(--bg-alt);
}

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

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.testimonial-header span {
  font-weight: 600;
}

.testimonial p {
  color: var(--text-light);
  font-style: italic;
}

/* Final CTA */
.final-cta {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.final-cta h2 {
  color: white;
}

.final-cta h2:after {
  background: white;
}

.final-cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.final-cta .btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
}

/* Footer */
footer {
  background: #1A1A1B;
  color: #D7DADC;
  padding: 4rem 0 1rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-info .footer-site-name {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-info .footer-tagline {
  color: #999;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #D7DADC;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .steps {
    flex-wrap: wrap;
  }
  
  .step {
    flex: 0 0 calc(50% - 0.75rem);
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    z-index: 101;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  #nav-toggle:checked ~ .nav-menu {
    right: 0;
  }
  
  #nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  #nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  
  #nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .post-grid, .category-grid, .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex: 0 0 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
}
