/**
 * Main stylesheet for Niche Blog Pro
 *
 * @package Niche_Blog_Pro
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Variables (set via Customizer)
   ========================================================================== */

:root {
  --color-primary: #007bff;
  --color-secondary: #6c757d;
  --color-accent: #28a745;
  --header-bg: #ffffff;
  --footer-bg: #1a1a1a;
  --font-primary: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Additional variables */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-black: #1a1a1a;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--header-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

.site-header.sticky-header {
  position: sticky;
  top: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 2rem;
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-title a {
  color: var(--color-black);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color-primary);
}

.site-description {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.custom-logo-link {
  display: block;
  line-height: 0;
}

.custom-logo {
  max-height: 60px;
  width: auto;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  padding: 0.5rem 0;
  display: block;
}

.primary-menu a:hover,
.primary-menu .current-menu-item>a {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: all var(--transition-base);
}

.menu-toggle-icon::before {
  top: -8px;
}

.menu-toggle-icon::after {
  bottom: -8px;
}

/* Search */
.header-search {
  position: relative;
}

.search-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.search-toggle:hover {
  color: var(--color-primary);
}

.search-form-wrapper {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 1000;
}

.search-toggle.active+.search-form-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

.search-field:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */

.blog-posts {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-posts.blog-layout-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-posts.blog-layout-grid.grid-columns-2 {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.blog-posts.blog-layout-grid.grid-columns-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-posts.blog-layout-grid.grid-columns-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

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

/* Box Style Cards */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card.blog-card-box {
  box-shadow: var(--shadow-sm);
}

.blog-card.blog-card-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Gradient Style Cards */
.blog-card.blog-card-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: var(--shadow-md);
}

.blog-card.blog-card-gradient:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px) scale(1.02);
}

.blog-card.blog-card-gradient .post-content-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.blog-card.blog-card-gradient .entry-title a,
.blog-card.blog-card-gradient .entry-meta,
.blog-card.blog-card-gradient .entry-summary {
  color: var(--color-text);
}

/* Gradient variations */
.blog-card.blog-card-gradient.gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card.blog-card-gradient.gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-card.blog-card-gradient.gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.blog-card.blog-card-gradient.gradient-4 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.blog-card.blog-card-gradient.gradient-5 {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Post Thumbnail */
.post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.post-thumbnail-placeholder {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Post Categories Badge */
.post-categories {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.post-category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
}

.post-category:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* Post Content */
.post-content-wrapper {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entry-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.entry-title a {
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--transition-base);
}

.entry-title a:hover {
  color: var(--color-primary);
}

/* Entry Meta */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.entry-meta>span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.entry-meta svg {
  flex-shrink: 0;
}

.entry-meta .author-avatar img {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.5rem;
}

.meta-item svg {
  color: var(--color-primary);
  opacity: 0.8;
}

/* Entry Summary */
.entry-summary {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.entry-summary p {
  margin: 0;
}

/* Entry Footer */
.entry-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.read-more-link:hover {
  color: var(--color-accent);
  gap: 0.75rem;
}

.read-more-link svg {
  transition: transform var(--transition-base);
}

.read-more-link:hover svg {
  transform: translateX(3px);
}

/* List Layout Specific Styles */
.blog-layout-list .blog-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.blog-layout-list .post-thumbnail {
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
}

.single-post .entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post .entry-title {
  font-size: 2.5rem;
  margin: 1rem 0;
  line-height: 1.2;
}

.single-post .entry-meta {
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.author-avatar {
  border-radius: 50%;
  overflow: hidden;
}

.meta-info {
  text-align: left;
}

.post-author a {
  color: var(--color-black);
  font-weight: 600;
  text-decoration: none;
}

.post-author a:hover {
  color: var(--color-primary);
}

.meta-details {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.meta-separator {
  opacity: 0.5;
}

.single-post .post-thumbnail {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Entry Content */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 2rem 0;
}

.entry-content>*+* {
  margin-top: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 2rem;
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--color-accent);
}

.entry-content ul,
.entry-content ol {
  padding-left: 2rem;
}

.entry-content li {
  margin: 0.5rem 0;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 2rem;
  margin: 2rem 0;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-style: italic;
}

.entry-content code {
  background: var(--color-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.entry-content pre {
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2rem 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Post Tags */
.post-tags {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.post-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.share-label {
  font-weight: 600;
  color: var(--color-text);
}

.share-buttons-list {
  display: flex;
  gap: 0.75rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  transition: all var(--transition-base);
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.share-button.share-facebook:hover {
  background: #1877f2;
  color: var(--color-white);
}

.share-button.share-twitter:hover {
  background: #1da1f2;
  color: var(--color-white);
}

.share-button.share-linkedin:hover {
  background: #0a66c2;
  color: var(--color-white);
}

.share-button.share-pinterest:hover {
  background: #e60023;
  color: var(--color-white);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  margin: 3rem 0;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.author-avatar-large {
  flex-shrink: 0;
}

.author-avatar-large img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.author-info {
  flex: 1;
}

.author-name {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.author-name a {
  color: var(--color-black);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--color-primary);
}

.author-bio {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Related Posts */
.related-posts {
  margin: 3rem 0;
}

.related-posts-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.related-post {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.related-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-post-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-post:hover .related-post-thumbnail img {
  transform: scale(1.1);
}

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

.related-post-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.related-post-title a {
  color: var(--color-black);
  text-decoration: none;
}

.related-post-title a:hover {
  color: var(--color-primary);
}

.related-post-content time {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

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

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.breadcrumb-separator {
  color: var(--color-text-light);
  opacity: 0.5;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar.sticky-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.widget {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* Sidebar Left Layout */
.has-sidebar.sidebar-left .content-area {
  flex-direction: row-reverse;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4rem;
}

.footer-widgets {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-inner {
  display: grid;
  gap: 2rem;
}

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

.footer-widgets-inner.footer-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.footer-widgets-inner.footer-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.footer-widgets-inner.footer-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.footer-widget h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li {
  margin: 0.5rem 0;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-widget a:hover {
  color: var(--color-white);
}

.site-info {
  padding: 2rem 0;
}

.site-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-navigation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   AdSense Containers
   ========================================================================== */

.ad-container {
  margin: 2rem 0;
  text-align: center;
  position: relative;
}

.ad-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.ad-container.ad-header,
.ad-container.ad-footer {
  margin: 1rem 0;
}

.ad-container.ad-in-feed {
  grid-column: 1 / -1;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ad-container.ad-sidebar-top,
.ad-container.ad-sidebar-bottom {
  margin: 0 0 2rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}

.comments-title {
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.comment-author img {
  border-radius: 50%;
  margin-right: 1rem;
}

.comment-form {
  margin-top: 3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: border-color var(--transition-base);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404 .page-title {
  font-size: 8rem;
  margin: 0;
  color: var(--color-primary);
  line-height: 1;
}

.error-subtitle {
  font-size: 2rem;
  margin: 1rem 0 2rem;
}

.helpful-links {
  margin-top: 3rem;
}

.helpful-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1199px) {
  .blog-posts.blog-layout-grid.grid-columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-widgets-inner.footer-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .header-inner {
    padding: 1rem 0;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    transition: left var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-navigation.active {
    left: 0;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0;
  }

  .primary-menu a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle {
    display: block;
  }

  .blog-posts.blog-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-layout-list .blog-card {
    grid-template-columns: 1fr;
  }

  .content-area {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar.sticky-sidebar {
    position: static;
  }

  .footer-widgets-inner.footer-columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .site-title {
    font-size: 1.25rem;
  }

  .custom-logo {
    max-height: 40px;
  }

  .header-search {
    order: -1;
  }

  .search-form-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-width: 0;
  }

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

  .single-post {
    padding: 2rem 1.5rem;
  }

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

  .entry-content {
    font-size: 1rem;
  }

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

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

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

  .site-info-inner {
    flex-direction: column;
    text-align: center;
  }

  .widget {
    padding: 1.5rem;
  }

  .comments-area {
    padding: 2rem 1.5rem;
  }

  .error-404 .page-title {
    font-size: 4rem;
  }

  .error-subtitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .entry-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .share-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination {
    gap: 0.25rem;
  }

  .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading Animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print Styles */
@media print {

  .site-header,
  .site-footer,
  .sidebar,
  .ad-container,
  .share-buttons,
  .comments-area {
    display: none;
  }

  .single-post {
    padding: 0;
    box-shadow: none;
  }
}

/* ==========================================================================
   Improved Widgets & Special Components
   ========================================================================== */

/* Recent Posts with Images Widget */
.recent-posts-widget-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recent-post-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.recent-post-item:hover .recent-post-thumb img {
  transform: scale(1.1);
}

.recent-post-details {
  flex: 1;
}

.recent-post-cat {
  margin-bottom: 0.25rem;
}

.recent-post-cat a {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

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

.recent-post-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Stylish Recent Comments Widget */
.recent-comments-widget-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-comment-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.comment-author-avatar img {
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-comment-item .comment-content {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.comment-author-name {
  font-weight: 700;
  color: var(--color-black);
}

.comment-post-link {
  font-weight: 500;
  color: var(--color-primary);
}

/* Category Explorer Widget */
.category-explorer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-explorer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.category-explorer-item:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.category-explorer-item .cat-name {
  font-weight: 500;
  color: var(--color-text);
}

.category-explorer-item .cat-count {
  font-size: 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

/* Single Page Improvements */
.single-post .entry-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.post-navigation {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.post-navigation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 767px) {
  .post-navigation-inner {
    grid-template-columns: 1fr;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.nav-link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  align-items: center;
}

.nav-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.nav-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--color-black);
  transition: color var(--transition-base);
}

.nav-link:hover .nav-title {
  color: var(--color-primary);
}

/* Ad Improvements */
.ad-container {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* Yorum Alanı (Comments Area) improvements */
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.submit {
  width: auto !important;
  cursor: pointer;
  font-weight: 600;
}

/* ==========================================================================
   Dark Mode Refinements
   ========================================================================== */
.dark-mode .blog-card,
.dark-mode .widget,
.dark-mode .single-post,
.dark-mode .comments-area {
  background-color: #242526;
  color: #e4e6eb;
}

.dark-mode .category-explorer-item {
  background-color: #2d2e2f;
}

.dark-mode .category-explorer-item:hover {
  background-color: #3a3b3c;
}

.dark-mode .ad-container {
  background-color: #1c1e1f;
  border-color: #3a3b3c;
}

.dark-mode .post-tag {
  background-color: #2d2e2f;
  border-color: #3a3b3c;
  color: #e4e6eb;
}

.dark-mode .post-tag:hover {
  background-color: var(--color-primary);
}

/* ==========================================================================
   Modern Single Post layout (Zenith 3.0)
   ========================================================================== */

.single-post-modern {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-sm);
}

.entry-header-modern {
  padding: 4rem 4rem 3rem;
  text-align: center;
  background: linear-gradient(to bottom, #fcfcfc, #ffffff);
}

.breadcrumbs-modern {
  margin-bottom: 2.5rem;
}

.breadcrumb-navigation {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

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

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

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

.breadcrumb-separator {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  opacity: 0.5;
}

.header-meta-top {
  margin-bottom: 1.5rem;
}

.post-category-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(34, 113, 177, 0.2);
}

.post-category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 113, 177, 0.3);
  background: var(--color-accent);
}

.entry-title-modern {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--color-black);
  letter-spacing: -1px;
}

.entry-meta-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.meta-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar-modern img {
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}

.author-details-modern {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-name-modern {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-black);
}

.meta-article-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-stats-modern {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.meta-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-thumbnail-modern {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 4rem;
}

.post-thumbnail-modern img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-thumbnail-modern:hover img {
  transform: scale(1.02);
}

.entry-content-modern {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 4rem 4rem;
}

.post-share-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 1.5rem 3rem;
  background: var(--card-bg, #ffffff);
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color, #e5e7eb);
}

.post-share-bottom .share-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-black);
}

.post-share-bottom .share-buttons-list {
  display: flex;
  gap: 1rem;
}

.share-vertical .share-button {
  width: 50px;
  height: 50px;
  margin: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.share-vertical .share-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.main-content-wrapper {
  flex: 1;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
}

.main-content-wrapper p:first-of-type::first-letter {
  float: left;
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  margin-right: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

.main-content-wrapper h2,
.main-content-wrapper h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: -0.5px;
}

.entry-footer-modern {
  background: #f8f9fa;
  padding: 4rem;
  border-top: 1px solid var(--color-border);
}

.footer-actions-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.like-section-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg, #ffffff);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color, #e5e7eb);
}

.action-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.post-tags-modern {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag-modern {
  padding: 0.5rem 1.25rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
}

.tag-modern:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(34, 113, 177, 0.2);
}

/* Related Posts Section */
.related-posts {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.related-posts-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.related-post {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.related-post-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.related-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-post:hover .related-post-thumbnail img {
  transform: scale(1.1);
}

.related-post-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.related-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: var(--color-primary);
}

.related-post time {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.author-box-modern {
  display: flex;
  gap: 3rem;
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.author-avatar-large img {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.author-box-modern:hover .author-avatar-large img {
  transform: rotate(-3deg) scale(1.05);
}

.author-info-modern .author-name {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.author-info-modern .author-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
  .entry-header-modern {
    padding: 3rem 2rem;
  }

  .entry-content-modern {
    padding: 0 1.5rem 3rem;
  }

  .post-share-bottom {
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  .author-box-modern {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .entry-title-modern {
    font-size: 2rem;
  }

  .entry-meta-modern {
    gap: 1.5rem;
    flex-direction: column;
  }
}

/* Dark Mode Refinements for Modern Layout */
.dark-mode .single-post-modern,
.dark-mode .entry-header-modern,
.dark-mode .author-box-modern,
.dark-mode .related-post-thumbnail {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.dark-mode .entry-footer-modern {
  background: var(--bg-primary);
}

.dark-mode .related-posts {
  border-top-color: var(--border-color);
}

.dark-mode .entry-title-modern,
.dark-mode .author-name-modern,
.dark-mode .author-info-modern .author-name,
.dark-mode .action-text,
.dark-mode .related-posts-title,
.dark-mode .related-post-title a,
.dark-mode .main-content-wrapper {
  color: var(--text-primary);
}

.dark-mode .share-vertical .share-button,
.dark-mode .like-section-modern,
.dark-mode .tag-modern {
  background: #242526;
  border-color: #3a3b3c;
  color: #e4e6eb;
}

/* ==========================================================================
   Modern Comments Area (Zenith 3.0)
   ========================================================================== */

.comments-area-modern {
  background: var(--color-white);
  padding: 4rem;
  border-radius: var(--radius-lg);
  margin-top: 4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
}

.comments-title-modern {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-black);
}

.comments-title-modern svg {
  color: var(--color-primary);
}

.comment-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list-modern .comment {
  margin-bottom: 3rem;
  background: transparent;
  padding: 0;
}

.comment-body {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.comment-author.vcard img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.comment-content {
  flex: 1;
}

.comment-meta {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author .fn {
  font-weight: 700;
  font-size: 1.1rem;
  font-style: normal;
}

.comment-metadata {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.comment-content p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: #444;
}

.reply a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  background: #f0f7ff;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.reply a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Comment Form Modern */
.comment-form-modern {
  margin-top: 5rem;
  background: #fcfcfc;
  padding: 3rem;
  border-radius: 20px;
  border: 1px dashed var(--color-border);
}

#reply-title {
  margin-bottom: 2rem;
}

.comment-form-modern input[type="text"],
.comment-form-modern input[type="email"],
.comment-form-modern textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form-modern input:focus,
.comment-form-modern textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.05);
}

.submit-modern {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.submit-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  background: var(--color-accent);
}

/* Minimal Tags for Single Post */
.post-tags-modern {
  display: flex !important;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.tag-modern {
  background: none !important;
  border: none !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 0 !important;
  padding: 0.25rem 0.5rem !important;
  color: var(--color-text-light) !important;
  font-size: 0.9rem !important;
  transition: color 0.3s ease !important;
  border-bottom: 1px solid transparent !important;
}

.tag-modern:hover {
  color: var(--color-primary) !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  border-bottom-color: var(--color-primary) !important;
}

.tag-modern::before {
  content: "#";
  opacity: 0.5;
  margin-right: 2px;
}


/* Dark Mode for Modern Comments */
.dark-mode .comments-area-modern {
  background: #18191a;
  border-color: #333;
}

.dark-mode .comment-form-modern {
  background: #242526;
  border-color: #333;
}

.dark-mode .comment-form-modern input,
.dark-mode .comment-form-modern textarea {
  background: #18191a;
  border-color: #333;
  color: #fff;
}

/* ==========================================================================
   Homepage Hero Section
   ========================================================================== */

.homepage-hero-modern {
  margin-bottom: 5rem;
  padding: 2rem 0;
}

.hero-header-modern {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.hero-section-desc {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.hero-posts-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hero-post-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.hero-post-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.hero-post-image {
  height: 100%;
  width: 100%;
}

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

.hero-post-card:hover .hero-post-image img {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.hero-post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  color: #fff;
}

.hero-category {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  transition: color 0.3s ease;
}

.hero-post-card:hover .hero-title {
  color: #fff;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .hero-posts-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-post-card:last-child {
    display: none;
  }
}

/* Vibrant About Me Widget */
.about-me-card-vibrant {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.about-me-card-vibrant:hover {
  transform: translateY(-5px);
}

.about-me-header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-primary-rgb), 0) 100%);
  position: relative;
}

.about-me-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
}

.about-me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.avatar-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px dashed var(--color-primary);
  opacity: 0.3;
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.about-me-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 0.25rem;
}

.about-me-job {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  display: block;
}

.about-me-body {
  padding: 0 1.5rem 2rem;
  text-align: center;
}

.about-me-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
}

/* Social Follow V2 Styles */
.social-follow-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modern Grid Style */
.social-follow-v2.style-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.style-modern .social-btn {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 12px;
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.style-modern .social-btn:hover {
  transform: scale(1.1);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

/* Vibrant List Style */
.social-follow-v2.style-vibrant {
  flex-direction: column;
}

.style-vibrant .social-btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: #f8f9fa;
  color: var(--color-text);
  gap: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
}

.style-vibrant .social-btn .btn-icon svg {
  width: 20px;
  height: 20px;
}

.style-vibrant .social-btn.facebook:hover {
  background: #1877F2;
  color: #fff;
}

.style-vibrant .social-btn.twitter:hover {
  background: #1DA1F2;
  color: #fff;
}

.style-vibrant .social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.style-vibrant .social-btn.youtube:hover {
  background: #FF0000;
  color: #fff;
}

.style-vibrant .social-btn.linkedin:hover {
  background: #0077B5;
  color: #fff;
}

/* Minimal Circle Style */
.social-follow-v2.style-minimal {
  justify-content: center;
}

.style-minimal .social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid #eee;
  color: var(--color-text-light);
  transition: all 0.3s ease;
}

.style-minimal .social-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* Dark Mode support */
.dark-mode .about-me-card-vibrant {
  background: #1a1a1b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .about-me-name {
  color: #fff;
}

.dark-mode .about-me-desc {
  color: #b0b3b8;
}

.dark-mode .style-modern .social-btn,
.dark-mode .style-vibrant .social-btn {
  background: #242526;
  color: #e4e6eb;
}

.dark-mode .style-minimal .social-btn {
  border-color: #333;
}