/*
Theme Name: Bright Blog Theme
Description: A bright, clean, and reading-focused blog theme with warm colors and excellent typography
Version: 2.0
Author: Your Name
Text Domain: brightblog
*/

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

body {
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background-color: #fefefe;
  font-size: 18px;
  font-weight: 400;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a202c;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin: 40px 0;
}

/* Header Styles */
.site-header {
  background: black;
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 20px rgba(255, 107, 107, 0.15);
}

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

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title:hover {
  color: #fff3e0;
}

.site-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
  font-weight: 300;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-navigation a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.main-navigation a:hover {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

a {
  color: #0968ff;
}

/* Hero Section */
.hero-section {
  background: #33332f;
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 50px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Cards */
.article-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f7fafc;
}

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

.article-thumbnail {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumbnail img {
  transform: scale(1.05);
}

.article-content {
  /*padding: 35px;*/
}

.article-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #ff6b6b;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #718096;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  font-size: 1rem;
}

.article-excerpt {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
}

/* Featured Post */
.featured-post {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  border-radius: 25px;
  padding: 50px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.featured-post::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

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

.featured-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
}

.featured-post .article-title {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.featured-post .article-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.featured-post .read-more {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.featured-post .read-more:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Single Post Styles */
.single-article {
  background: #fff;
  padding: 50px;
  border-radius: 25px;
  margin: auto;
  margin-bottom: 40px;
  border: 1px solid #f7fafc;
  max-width: 740px;
}

.single-article h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #1a202c;
}

ul {
  margin-bottom: 25px;
  padding-left: 25px;
}

hr {
  margin: 50px 0;
}

.single-article h2 {
  color: #2d3748;
  margin: 35px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #fed7d7;
}

.single-article h3 {
  color: #ff6b6b;
  margin: 30px 0 15px;
}

.single-article p {
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #4a5568;
}

.single-article img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 30px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
  background: #fff;
  border-radius: 20px;
  padding: 35px;
  height: fit-content;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #f7fafc;
  position: sticky;
  top: 100px;
}

.widget {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #1a202c;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 12px 0;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.widget li:hover {
  background: #f7fafc;
  padding-left: 15px;
}

.widget a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.widget a:hover {
  color: #ff6b6b;
}

/* Search Form */
.search-form {
  display: flex;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-size: 1rem;
  background: #f7fafc;
}

.search-form input[type="search"]:focus {
  outline: none;
  background: #fff;
}

.search-form button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
  color: #fff;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-form button:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
}

/* Footer */
.site-footer {
  background: #2d3748;
  color: #e2e8f0;
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.footer-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #4a5568;
  color: #a0aec0;
}

/* Newsletter Signup */
.newsletter-signup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 50px;
  border-radius: 25px;
  text-align: center;
  margin: 50px 0;
}

.newsletter-signup h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.newsletter-signup p {
  margin-bottom: 30px;
  opacity: 0.9;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
}

.newsletter-form button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter-form button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Breadcrumbs */
.breadcrumbs {
  background: #f7fafc;
  padding: 20px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs a {
  color: #ff6b6b;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Social Share */
.social-share {
  background: #f7fafc;
  padding: 30px;
  border-radius: 15px;
  margin: 40px 0;
  text-align: center;
}

.social-share h4 {
  margin-bottom: 20px;
  color: #1a202c;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links .facebook {
  background: #3b5998;
}
.social-links .twitter {
  background: #1da1f2;
}
.social-links .linkedin {
  background: #0077b5;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 25px;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  padding: 35px;
  border-radius: 20px;
  margin: 40px 0;
  border: 1px solid #feb2b2;
}

.author-avatar img {
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff6b6b;
  margin-bottom: 8px;
}

.author-info h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #1a202c;
}

.author-link {
  display: inline-block;
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-link:hover {
  text-decoration: underline;
}

/* Related Posts */
.related-posts {
  margin: 50px 0;
}

.related-posts h3 {
  margin-bottom: 30px;
  font-size: 1.6rem;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-post {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f7fafc;
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .article-content,
  .single-article {
    /*padding: 25px;*/
  }

  .single-article h1 {
    font-size: 2.2rem;
  }

  .featured-post {
    padding: 30px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

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

  body {
    font-size: 16px;
  }

  .site-title {
    font-size: 1.8rem;
  }

  .article-title {
    font-size: 1.4rem;
  }
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .social-share,
  .newsletter-signup {
    display: none;
  }

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ffa726);
  z-index: 1000;
  transition: width 0.3s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
