/*
Theme Name: Digital Report
Theme URI: https://digitalreport.com.tr
Author: Linkmedya
Author URI: https://linkmedya.com
Description: Modern, SEO-optimized Turkish technology news theme. Features dark mode, lazy loading, JSON-LD schema, responsive images, and performance optimization. Built for digitalreport.com.tr.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor
Tags: news, magazine, blog, dark-mode, responsive-layout, custom-colors, custom-menu, featured-images, translation-ready, rtl-language-support

Digital Report Theme - Flavor
Copyright 2024-2026 Linkmedya
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Brand Colors */
  --flavor-primary: #7c3aed;
  --flavor-primary-light: #8b5cf6;
  --flavor-primary-dark: #6d28d9;

  /* Accent (CTA buttons, links) */
  --flavor-accent: #7c3aed;
  --flavor-accent-hover: #6d28d9;

  /* Grays */
  --flavor-gray-950: #0c0a09;
  --flavor-gray-900: #171717;
  --flavor-gray-800: #262626;
  --flavor-gray-700: #404040;
  --flavor-gray-600: #525252;
  --flavor-gray-500: #737373;
  --flavor-gray-400: #a3a3a3;
  --flavor-gray-300: #d4d4d4;
  --flavor-gray-200: #e5e5e5;
  --flavor-gray-100: #f5f5f5;
  --flavor-gray-50: #fafafa;

  /* Category Colors */
  --flavor-cat-teknoloji: #3b82f6;
  --flavor-cat-yapay-zeka: #8b5cf6;
  --flavor-cat-guvenlik: #ef4444;
  --flavor-cat-kripto: #eab308;
  --flavor-cat-oyun: #22c55e;
  --flavor-cat-rehber: #06b6d4;
  --flavor-cat-fintek: #ec4899;
  --flavor-cat-girisim: #f97316;
  --flavor-cat-bulten: #64748b;

  /* Layout */
  --flavor-container: 1200px;
  --flavor-sidebar: 340px;
  --flavor-header-height: 52px;
  --flavor-radius: 14px;
  --flavor-radius-sm: 8px;

  /* Typography */
  --flavor-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --flavor-line-height: 1.6;

  /* Transitions */
  --flavor-transition: 0.2s ease;
  --flavor-transition-slow: 0.3s ease;
}

/* Light Theme (default) */
[data-theme="light"] {
  --flavor-bg: var(--flavor-gray-50);
  --flavor-bg-card: #fff;
  --flavor-text: var(--flavor-gray-900);
  --flavor-text-secondary: var(--flavor-gray-600);
  --flavor-text-muted: var(--flavor-gray-500);
  --flavor-border: var(--flavor-gray-200);
  --flavor-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --flavor-shadow-hover: 0 12px 28px rgba(124,58,237,0.15), 0 4px 12px rgba(0,0,0,0.08);
}

/* Dark Theme */
[data-theme="dark"] {
  --flavor-bg: var(--flavor-gray-950);
  --flavor-bg-card: var(--flavor-gray-900);
  --flavor-text: var(--flavor-gray-100);
  --flavor-text-secondary: var(--flavor-gray-300);
  --flavor-text-muted: var(--flavor-gray-400);
  --flavor-border: var(--flavor-gray-800);
  --flavor-shadow: 0 1px 3px rgba(0,0,0,0.2);
  --flavor-shadow-hover: 0 16px 32px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--flavor-font);
  font-size: 1rem;
  line-height: var(--flavor-line-height);
  color: var(--flavor-text);
  background: var(--flavor-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--flavor-transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--flavor-text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.flavor-container {
  max-width: var(--flavor-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.flavor-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .flavor-grid--sidebar {
    grid-template-columns: 1fr var(--flavor-sidebar);
  }
}

.flavor-main {
  min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--flavor-gray-900);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  height: var(--flavor-header-height);
  max-width: 1440px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  height: 100%;
  flex-shrink: 0;
}

.logo-area a {
  display: flex;
  align-items: center;
}

.logo-area img {
  height: 32px;
  max-width: 200px;
  object-fit: contain;
}

/* Only invert fallback SVG logo, not custom logos */
.logo-area > a:not(.custom-logo-link) img {
  filter: brightness(0) invert(1);
}

/* Custom logo from customizer */
.logo-area .custom-logo-link {
  display: flex;
  align-items: center;
}

.logo-area .custom-logo {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 200px;
}

/* Desktop logo plate */
@media (min-width: 1280px) {
  .header-wrapper {
    padding-left: 240px;
    position: relative;
  }

  .logo-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 240px;
    height: calc(var(--flavor-header-height) + 44px);
    padding: 8px 1.5rem 0;
    background: var(--flavor-primary);
    border-radius: 0 0 16px 16px;
    z-index: 150;
    align-items: flex-start;
    justify-content: center;
  }

  .logo-area img {
    height: 70px;
  }

  .logo-area .custom-logo {
    max-height: 80px;
    height: auto;
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 100%;
  padding: 0 1.25rem;
  max-width: var(--flavor-container);
}

/* Main Navigation */
.main-nav {
  display: none;
  gap: 0.25rem;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--flavor-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all var(--flavor-transition);
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--flavor-primary);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown > .nav-link::after {
  content: '\25BE';
  margin-left: 3px;
  font-size: 0.55rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  padding: 0.5rem;
  background: var(--flavor-gray-800);
  border-radius: var(--flavor-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--flavor-transition);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--flavor-gray-300);
  border-radius: 4px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  background: var(--flavor-gray-700);
  color: #fff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--flavor-gray-400);
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.icon-btn:hover {
  background: var(--flavor-gray-800);
  color: #fff;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.btn-subscribe {
  display: none;
  padding: 0.5rem 1rem;
  background: var(--flavor-primary-light);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: background var(--flavor-transition);
}

.btn-subscribe:hover {
  background: var(--flavor-primary);
  color: #fff;
}

@media (min-width: 640px) {
  .btn-subscribe {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  color: #fff;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  background: var(--flavor-gray-800);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .flavor-container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--flavor-gray-300);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--flavor-gray-700);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: var(--flavor-bg);
  padding: 1.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 260px 180px;
  }
}

.hero-card {
  position: relative;
  border-radius: var(--flavor-radius);
  overflow: hidden;
  background: var(--flavor-gray-800);
}

.hero-card a.card-link {
  display: block;
  height: 100%;
}

.hero-card a.card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
}

.hero-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 1;
}

.hero-main {
  min-height: 300px;
}

@media (min-width: 768px) {
  .hero-main {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .hero-main {
    grid-column: 1;
    grid-row: span 2;
    min-height: auto;
  }

  .hero-main .content {
    padding: 1.75rem;
  }
}

.hero-card h2,
.hero-card h3 {
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-main h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-main h2 {
    font-size: 1.75rem;
  }
}

.hero-side h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-card .cat-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.hero-meta .author {
  font-weight: 600;
}

/* ==========================================================================
   Category Badge
   ========================================================================== */
.cat-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 0.625rem;
  color: #fff !important;
  white-space: nowrap;
  line-height: 1.4;
  min-width: max-content;
  text-decoration: none;
}

.cat-default { background: var(--flavor-primary); }
.cat-teknoloji { background: var(--flavor-cat-teknoloji); }
.cat-yapay-zeka { background: var(--flavor-cat-yapay-zeka); }
.cat-guvenlik { background: var(--flavor-cat-guvenlik); }
.cat-kripto { background: var(--flavor-cat-kripto); color: #000; }
.cat-oyun { background: var(--flavor-cat-oyun); }
.cat-rehber { background: var(--flavor-cat-rehber); }
.cat-fintek { background: var(--flavor-cat-fintek); }
.cat-girisim { background: var(--flavor-cat-girisim); }
.cat-bulten { background: var(--flavor-cat-bulten); }

/* ==========================================================================
   Article Cards
   ========================================================================== */
.article-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.article-card {
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  overflow: hidden;
  box-shadow: var(--flavor-shadow);
  transition: all var(--flavor-transition-slow);
}

.article-card:hover {
  box-shadow: var(--flavor-shadow-hover);
  transform: translateY(-4px);
}

.article-card .thumb {
  aspect-ratio: 7/5;
  overflow: hidden;
  position: relative;
}

.article-card .thumb > a {
  display: block;
  height: 100%;
}

.article-card .thumb .cat-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  margin: 0;
  pointer-events: auto;
  display: inline-block;
  height: auto;
}

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

.article-card:hover .thumb img {
  transform: scale(1.06);
}

.article-card .body {
  padding: 1.125rem;
}

.article-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.article-card h3 a:hover {
  color: var(--flavor-primary);
}

.article-card .excerpt {
  font-size: 0.8rem;
  color: var(--flavor-text-muted);
  line-height: 1.5;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--flavor-text-muted);
}

.article-meta .author {
  font-weight: 600;
  color: var(--flavor-text-secondary);
}

.article-meta .sep {
  opacity: 0.4;
}

/* List Layout */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card-list {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  box-shadow: var(--flavor-shadow);
  transition: all var(--flavor-transition-slow);
}

.article-card-list:hover {
  box-shadow: var(--flavor-shadow-hover);
}

.article-card-list .thumb {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 7/5;
  border-radius: var(--flavor-radius-sm);
  overflow: hidden;
}

.article-card-list .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.article-card-list .body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-list h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-card-list .excerpt {
  font-size: 0.9rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

@media (max-width: 640px) {
  .article-card-list {
    flex-direction: column;
  }

  .article-card-list .thumb {
    width: 100%;
  }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-primary);
}

.view-all {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--flavor-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.view-all:hover {
  color: var(--flavor-primary);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: calc(var(--flavor-header-height) + 1.5rem);
    align-self: start;
    max-height: calc(100vh - var(--flavor-header-height) - 3rem);
    overflow-y: auto;
  }
}

.widget {
  background: var(--flavor-bg-card);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--flavor-shadow);
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-primary);
  margin-bottom: 1rem;
}

/* Magazine Widget */
.magazine-widget {
  background: linear-gradient(135deg, var(--flavor-primary-light), #c026d3);
  color: #fff;
  text-align: center;
}

.magazine-widget .widget-title {
  color: rgba(255,255,255,0.8);
}

.magazine-covers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.magazine-cover {
  width: 70px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform var(--flavor-transition-slow);
}

.magazine-cover:nth-child(2) {
  width: 90px;
  transform: scale(1.1);
}

.magazine-cover:hover {
  transform: scale(1.05) rotate(-3deg);
}

.magazine-cover:nth-child(2):hover {
  transform: scale(1.15) rotate(3deg);
}

.magazine-info {
  font-size: 0.85rem;
  margin-bottom: 0.875rem;
  opacity: 0.9;
}

.magazine-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: #fff;
  color: var(--flavor-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: transform var(--flavor-transition);
}

.magazine-btn:hover {
  transform: scale(1.05);
  color: var(--flavor-primary);
}

/* Popular Widget */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

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

.popular-item .num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--flavor-gray-200);
  line-height: 1;
  width: 30px;
  flex-shrink: 0;
}

[data-theme="dark"] .popular-item .num {
  color: var(--flavor-gray-800);
}

.popular-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.popular-item h4 a:hover {
  color: var(--flavor-primary);
}

.popular-item .meta {
  font-size: 0.65rem;
  color: var(--flavor-text-muted);
  margin-top: 0.2rem;
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 0.85rem;
  color: var(--flavor-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.newsletter-form input {
  padding: 0.75rem 0.875rem;
  background: var(--flavor-bg);
  border: 2px solid var(--flavor-border);
  border-radius: 10px;
  color: var(--flavor-text);
  font-size: 0.85rem;
  transition: border-color var(--flavor-transition);
}

.newsletter-form input:focus {
  border-color: var(--flavor-primary);
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--flavor-text-muted);
}

.newsletter-form button {
  padding: 0.75rem;
  background: var(--flavor-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  transition: background var(--flavor-transition);
}

.newsletter-form button:hover {
  background: var(--flavor-primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--flavor-gray-900);
  color: var(--flavor-gray-400);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand .footer-logo {
  height: 28px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--flavor-gray-800);
  border-radius: 10px;
  color: var(--flavor-gray-400);
  transition: all var(--flavor-transition);
}

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

.social-links svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--flavor-gray-200);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--flavor-gray-800);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--flavor-primary-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.btn-primary {
  background: var(--flavor-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--flavor-accent-hover);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--flavor-border);
  color: var(--flavor-text);
}

.btn-outline:hover {
  border-color: var(--flavor-primary);
  color: var(--flavor-primary);
}

.load-more,
.view-all-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

.all-loaded {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: var(--flavor-text-muted);
  font-size: 0.875rem;
}

.load-more-btn {
  padding: 0.875rem 2rem;
  background: var(--flavor-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: all var(--flavor-transition-slow);
}

.load-more-btn:hover {
  background: var(--flavor-accent-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--flavor-bg-card);
  border: 1px solid var(--flavor-border);
  border-radius: var(--flavor-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--flavor-transition);
}

.pagination a:hover {
  border-color: var(--flavor-primary);
  color: var(--flavor-primary);
}

.pagination .current {
  background: var(--flavor-primary);
  border-color: var(--flavor-primary);
  color: #fff;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

/* ==========================================================================
   Lazy Load Placeholder
   ========================================================================== */
.lazyload,
.lazyloading {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazyloaded {
  opacity: 1;
}

img[data-src] {
  background: var(--flavor-gray-200);
}

[data-theme="dark"] img[data-src] {
  background: var(--flavor-gray-800);
}

/* Aspect ratio containers for CLS prevention */
.aspect-7-5 { aspect-ratio: 7/5; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-1-1 { aspect-ratio: 1/1; }

/* ==========================================================================
   Search Overlay
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.search-overlay.active {
  display: flex;
}

.search-overlay .search-inner {
  width: 100%;
  max-width: 600px;
}

.search-overlay .search-form {
  display: flex;
  background: var(--flavor-gray-800);
  border-radius: var(--flavor-radius);
  overflow: hidden;
}

.search-overlay .search-field {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.125rem;
}

.search-overlay .search-field::placeholder {
  color: var(--flavor-gray-500);
}

.search-overlay .search-field:focus {
  outline: none;
}

.search-overlay .search-submit {
  padding: 1.25rem 1.5rem;
  background: var(--flavor-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--flavor-transition);
}

.search-overlay .search-submit:hover {
  background: var(--flavor-primary-dark);
}

.search-overlay .search-submit svg {
  width: 24px;
  height: 24px;
}

.close-search {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--flavor-gray-400);
  background: var(--flavor-gray-800);
  border-radius: 50%;
  transition: all var(--flavor-transition);
}

.close-search:hover {
  background: var(--flavor-gray-700);
  color: #fff;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--flavor-text-muted);
}

/* Account for logo plate on desktop - all page types */
@media (min-width: 1280px) {
  .entry-header .breadcrumb,
  .page-header .breadcrumb,
  .archive-header .breadcrumb,
  .category-header .breadcrumb,
  .tag-header .breadcrumb,
  .author-header .breadcrumb,
  .search-header .breadcrumb {
    margin-left: 0;
  }
}

.breadcrumb a {
  color: var(--flavor-text-muted);
}

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

.breadcrumb .sep {
  color: var(--flavor-gray-400);
}

.breadcrumb .current {
  color: var(--flavor-text-secondary);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post .entry-header {
  padding: 2rem 0 1rem;
  margin-bottom: 0;
}

/* Account for logo plate overlap on desktop */
@media (min-width: 1280px) {
  .single-post .entry-header {
    padding-top: 3rem;
  }
  .single-post .entry-header > .flavor-container {
    padding-left: 220px;
  }
}

@media (min-width: 1440px) {
  .single-post .entry-header > .flavor-container {
    padding-left: 140px;
  }
}

@media (min-width: 1600px) {
  .single-post .entry-header > .flavor-container {
    padding-left: 60px;
  }
}

@media (min-width: 1680px) {
  .single-post .entry-header > .flavor-container {
    padding-left: 1.25rem;
  }
}

.single-post .entry-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .single-post .entry-title {
    font-size: 2.5rem;
  }
}

.single-post .entry-subtitle {
  font-size: 1.125rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.single-post .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Add separators between meta items */
.single-post .entry-meta .sep {
  color: var(--flavor-text-muted);
}

.single-post .article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Meta row with text controls on right */
.single-post .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.single-post .entry-thumbnail {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.single-post .entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--flavor-radius);
}

.single-post .entry-thumbnail figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--flavor-text-muted);
  text-align: center;
}

/* Full-width featured image */
.single-post .entry-thumbnail--full {
  margin: 0 0 2rem;
}

.single-post .entry-thumbnail--full img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 0;
}

.single-post .entry-thumbnail--full figcaption {
  padding: 0.75rem 0;
}

/* ==========================================================================
   Text Size Controls (Toolbar Style)
   ========================================================================== */
.text-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.text-controls .controls-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-right: 0.25rem;
}

.text-size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--flavor-gray-600);
  border: none;
  border-radius: var(--flavor-radius-sm);
  cursor: pointer;
  transition: all var(--flavor-transition);
}

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

.text-size-btn[data-action="decrease"] {
  font-size: 0.7rem;
}

.text-size-btn[data-action="increase"] {
  font-size: 1rem;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--flavor-border);
  border-bottom: 1px solid var(--flavor-border);
}

.share-buttons .share-label {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--flavor-radius-sm);
  color: #fff;
  transition: all var(--flavor-transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn.share-twitter { background: #1da1f2; }
.share-btn.share-facebook { background: #1877f2; }
.share-btn.share-linkedin { background: #0a66c2; }
.share-btn.share-whatsapp { background: #25d366; }
.share-btn.share-telegram { background: #0088cc; }
.share-btn.share-copy {
  background: var(--flavor-gray-600);
  border: none;
  cursor: pointer;
}

.share-btn.share-twitter:hover { background: #0d8ddb; }
.share-btn.share-facebook:hover { background: #0d65d9; }
.share-btn.share-linkedin:hover { background: #084d93; }
.share-btn.share-whatsapp:hover { background: #1fb855; }
.share-btn.share-telegram:hover { background: #0077b3; }
.share-btn.share-copy:hover { background: var(--flavor-gray-700); }

/* Share bar after image */
.share-bar-top {
  padding: 1rem 0;
}

.share-bar-top .share-buttons {
  margin: 0;
  padding: 0;
  border: none;
}

/* Sticky share sidebar */
.share-sticky {
  display: none;
  position: fixed;
  left: calc(50% - 650px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}

@media (min-width: 1440px) {
  .share-sticky {
    display: block;
  }
}

@media (min-width: 1600px) {
  .share-sticky {
    left: calc(50% - 700px);
  }
}

@media (min-width: 1800px) {
  .share-sticky {
    left: calc(50% - 750px);
  }
}

.share-sticky-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius);
  box-shadow: var(--flavor-shadow);
}

.share-sticky-inner .share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-bottom: 0.25rem;
}

.share-sticky .share-btn {
  width: 40px;
  height: 40px;
}

.share-sticky button.share-btn {
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Entry Tags
   ========================================================================== */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.entry-tags .tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--flavor-text-muted);
}

.entry-tags a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--flavor-text-secondary);
  background: var(--flavor-bg);
  border-radius: 50px;
  transition: all var(--flavor-transition);
}

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

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

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

.author-box .author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box .author-info {
  flex: 1;
}

.author-box .author-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-box .author-title {
  font-size: 0.8rem;
  color: var(--flavor-primary);
  margin-bottom: 0.75rem;
}

.author-box .author-bio {
  font-size: 0.9rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-box .author-social {
  display: flex;
  gap: 0.5rem;
}

.author-box .author-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--flavor-bg-card);
  border-radius: var(--flavor-radius-sm);
  color: var(--flavor-text-muted);
  transition: all var(--flavor-transition);
}

.author-box .author-social a:hover {
  background: var(--flavor-primary);
  color: #fff;
}

.author-box .author-social svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--flavor-border);
}

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

.post-navigation .nav-link {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius-sm);
  transition: all var(--flavor-transition);
}

.post-navigation .nav-link:hover {
  background: var(--flavor-primary);
  color: #fff;
}

.post-navigation .nav-link:hover .nav-label {
  color: rgba(255,255,255,0.7);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flavor-text-muted);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--flavor-border);
}

.related-posts .section-title {
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

  .related-grid.related-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid.related-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-grid.related-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-card {
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius-sm);
  overflow: hidden;
  transition: all var(--flavor-transition);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--flavor-shadow-hover);
}

.related-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.related-card:hover .thumb img {
  transform: scale(1.05);
}

.related-card .info {
  padding: 1rem;
}

.related-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-card .meta {
  font-size: 0.7rem;
  color: var(--flavor-text-muted);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--flavor-border);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--flavor-border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  gap: 1rem;
}

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

.comment-content {
  flex: 1;
}

.comment-author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.comment-author-name a {
  color: var(--flavor-text);
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--flavor-text-muted);
  margin-bottom: 0.75rem;
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.comment-text p {
  margin-bottom: 0.75rem;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--flavor-primary);
}

.comment .children {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--flavor-border);
}

/* Comment form */
.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--flavor-bg);
  border-radius: var(--flavor-radius);
}

.comment-reply-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--flavor-text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--flavor-bg-card);
  border: 2px solid var(--flavor-border);
  border-radius: var(--flavor-radius-sm);
  color: var(--flavor-text);
  font-size: 0.95rem;
  transition: border-color var(--flavor-transition);
}

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

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .form-submit {
  margin-top: 1rem;
}

.comment-form .submit {
  padding: 0.875rem 2rem;
  background: var(--flavor-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--flavor-radius-sm);
  cursor: pointer;
  transition: background var(--flavor-transition);
}

.comment-form .submit:hover {
  background: var(--flavor-primary-dark);
}

.comment-notes,
.logged-in-as {
  font-size: 0.8rem;
  color: var(--flavor-text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--flavor-border);
}

/* Account for logo plate overlap on desktop */
@media (min-width: 1280px) {
  .page-header,
  .archive-header,
  .category-header,
  .tag-header,
  .search-header {
    padding-top: 3rem;
  }

  /* Clear logo plate horizontally - plate is 240px wide */
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 220px; /* Push content past the 240px logo plate */
  }
}

/* At 1440px+, plate overlaps less */
@media (min-width: 1440px) {
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 140px;
  }
}

/* At 1600px+, minimal overlap */
@media (min-width: 1600px) {
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 60px;
  }
}

/* At 1680px+, logo plate doesn't overlap container */
@media (min-width: 1680px) {
  .category-header > .flavor-container,
  .tag-header > .flavor-container,
  .author-header > .flavor-container,
  .search-header > .flavor-container {
    padding-left: 1.25rem;
  }
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-description,
.archive-description {
  font-size: 1rem;
  color: var(--flavor-text-secondary);
  line-height: 1.6;
}

/* Category/Tag/Author pages */
.category-section,
.latest-posts {
  margin-bottom: 3rem;
}

/* Archive Headers */
.category-header,
.tag-header,
.author-header,
.search-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--flavor-border);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--flavor-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--flavor-text-secondary);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 101; /* Just above header (z-index: 100) */
  pointer-events: none;
}

.reading-progress-top {
  top: 0; /* At the very top of viewport */
}

.reading-progress-bottom {
  bottom: 0;
}

.reading-progress-bar {
  width: 0;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Cookie Notice
   ========================================================================== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--flavor-gray-900);
  color: #fff;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-notice-inner {
  max-width: var(--flavor-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-message {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-message a {
  color: var(--flavor-primary-light);
  text-decoration: underline;
}

.cookie-accept {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-notice-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-accept {
    width: 100%;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .share-buttons,
  .related-posts,
  .comments,
  .pagination,
  .mobile-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .entry-content {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
