/*
Theme Name: CutePress
Description: A minimal, content-focused WordPress theme with clean design and customizable options.
Version: 1.0.1
Author: Sadhan Pal
Author URI: https://profiles.wordpress.org/sadhanpal/
Theme URI: https://bloggingfoundation.com/cutepress/
Text Domain: cutepress
Domain Path: /languages
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready

CutePress is a beautiful, minimal WordPress theme perfect for bloggers and content creators with extensive customization options.
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* Header Styles */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff6b9d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo:hover {
  color: #e55a87;
}

/* Navigation Styles */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.main-navigation a:hover {
  color: #ff6b9d;
}

.main-navigation a:hover::after {
  transform: scaleX(1);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff6b9d;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

/* Main Content Area */
.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #ff6b9d;
}

.post-excerpt {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.post-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  background: #ff6b9d;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.read-more:hover {
  background: #e55a87;
  transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
}

.sidebar h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 0.5rem;
}

.sidebar ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #ff6b9d;
}

/* Single Post Styles */
.single-post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.single-post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.2;
}

.single-post-meta {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.single-post-meta span {
  margin: 0 0.5rem;
}

.single-post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.single-post-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.single-post-content h2 {
  margin: 2rem 0 1rem 0;
  color: #333;
}

.single-post-content h3 {
  margin: 1.5rem 0 1rem 0;
  color: #333;
}

.single-post-content p {
  margin-bottom: 1.5rem;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Recent Posts Section */
.recent-posts-section {
  margin: 3rem 0;
  padding: 3rem 0 2rem 0;
  border-top: 1px solid #eee;
}

.recent-posts-section h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.8rem;
  padding-top: 1rem;
}

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

.recent-post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recent-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: #ff6b9d;
}

.recent-post-image {
  overflow: hidden;
  position: relative;
  height: 180px;
}

.recent-post-image a {
  display: block;
  height: 100%;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recent-post-card:hover .recent-post-image img {
  transform: scale(1.08);
}

.recent-post-content {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
}

.recent-post-title {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
}

.recent-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.recent-post-card:hover .recent-post-title a {
  color: #ff6b9d;
}

/* Add a subtle gradient overlay on hover */
.recent-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(229, 90, 135, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 16px;
}

.recent-post-card:hover::before {
  opacity: 1;
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #ff6b9d;
}

.footer-section p,
.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  line-height: 1.6;
}

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

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

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

/* Copyright */
.site-copyright {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* WordPress Required CSS Classes */
.alignright {
  float: right;
  margin: 0 0 1rem 1rem;
}

.alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  padding: 0.5rem;
  font-style: italic;
}

.gallery-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  padding: 0.5rem;
  font-style: italic;
}

.sticky {
  position: relative;
}

.sticky::before {
  content: "📌";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  opacity: 0.7;
}

.bypostauthor {
  position: relative;
}

.bypostauthor .comment-author::after {
  content: "✓";
  background: #ff6b9d;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 0.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ff6b9d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
  background: #e55a87;
  transform: translateY(-2px);
}

/* Image loading states */
img.loading {
  opacity: 0.5;
  filter: blur(2px);
}

img.loaded {
  opacity: 1;
  filter: none;
  transition: all 0.3s ease;
}

/* Page links styling */
.page-links {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.page-links a {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  background: #ff6b9d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.page-links a:hover {
  background: #e55a87;
}

.page-links .current {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  border-radius: 4px;
}

/* Tags styling */
.post-tags {
  font-size: 0.85rem;
  color: #999;
}

.post-tags a {
  color: #ff6b9d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-tags a:hover {
  color: #e55a87;
}

/* Block styles */
.is-style-cutepress-fancy-quote {
  background: linear-gradient(135deg, #ff6b9d 0%, #e55a87 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  border: none;
}

.is-style-cutepress-outline-button .wp-block-button__link {
  background: transparent !important;
  color: #ff6b9d !important;
  border: 2px solid #ff6b9d !important;
}

.is-style-cutepress-outline-button .wp-block-button__link:hover {
  background: #ff6b9d !important;
  color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
  }

  .main-navigation.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

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

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

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

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

  .single-post-title {
    font-size: 2rem;
  }

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

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

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .posts-grid {
    gap: 1.5rem;
  }

  .post-content {
    padding: 1rem;
  }

  .sidebar {
    padding: 1.5rem;
  }

  .single-post-image {
    height: 250px;
  }

  .recent-post-image img {
    height: 150px;
  }

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

  /* Improved mobile typography */
  h1, .single-post-title {
    font-size: 1.8rem !important;
  }

  h2, .post-title {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  .single-post-content {
    font-size: 1rem;
  }

  /* Better mobile spacing */
  .single-post-header {
    margin-bottom: 1.5rem;
  }

  .single-post-meta {
    margin-bottom: 1.5rem;
  }

  .recent-posts-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
  }

  .recent-posts-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
  }

  .recent-post-image {
    height: 160px;
  }

  .recent-post-content {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
  }

  .recent-post-title {
    font-size: 1.05rem;
  }
}