/**
 * CookieBlog Main Styles
 * 
 * Peamised stiilid CookieBlog teema jaoks.
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Inspired by OneDollar design */
    --primary-color: #000000;
    --secondary-color: #00d4aa;
    --accent-color: #007bff;
    
    /* Category Colors */
    --category-cookie-basics: #3c5dc6;
    --category-getting-started: #da67b4;
    --category-choose-cookie-consent-tool: #ffaa02;
    --category-cookie-setup: #06ae8a;
    --text-color: #1a1a1a;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Typography - Modern fonts like OneDollar */
    --font-primary: 'Inter', 'system-ui', -apple-system, sans-serif;
    --font-secondary: 'Inter', 'system-ui', -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4.5rem;
    
    /* Border radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

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

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--primary-color);
}

h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.875rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
h6 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; }

p {
    margin: 0 0 var(--spacing-md) 0;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


.main-content {
    min-height: 60vh;
    padding-bottom: var(--spacing-xl);
}

.single-post .main-content {
    padding-top: 0 !important;
}

/* ===== Header Styles ===== */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

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

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

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

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

/* ===== Navigation ===== */
.main-navigation .primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
}

.main-navigation .primary-menu li a {
    color: var(--text-color);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
}

.main-navigation .primary-menu li a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ===== Posts Grid - Moved to archive.css ===== */

/* ===== Single Post ===== */
.single-post {
    margin: 0 auto;
}

/* ===== Buttons ===== */
/* Button styles moved to components/btn.css */

/* ===== Responsive - Mobile First ===== */

/* Base styles - Mobile (320px+) */
.container {
    padding: 0 var(--spacing-sm);
}

.header-content {
    flex-direction: column;
    text-align: center;
}

.main-navigation .primary-menu {
    gap: var(--spacing-md);
}

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

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

.posts-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.post-card.featured {
    grid-column: span 1;
    flex-direction: column;
}

.post-card.featured .post-thumbnail {
    min-height: 200px;
}

.post-card.featured .post-content {
    padding: var(--spacing-md);
}

.post-card.featured .post-title {
    font-size: 1.5rem;
}

.post-card {
    border-radius: 12px;
}

.post-card.featured::before {
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    font-size: 0.7rem;
    padding: 4px 8px;
}


/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .header-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .post-card.featured {
        grid-column: span 2;
        flex-direction: row;
    }
    
    .post-card.featured .post-thumbnail {
        min-height: 300px;
    }
    
    .post-card.featured .post-content {
        padding: var(--spacing-xl);
    }
    
    .post-card.featured .post-title {
        font-size: 1.8rem;
    }
    
    .post-card {
        border-radius: 16px;
    }
    
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
 }

/* Desktop (992px+) */
@media (min-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .post-card.featured {
        grid-column: span 2;
    }
}

/* ===== JavaScript Component Styles ===== */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.1);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary-color);
}

/* Search form enhancements */
.search-form.focused {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: var(--spacing-sm);
}

.search-clear:hover {
    color: var(--text-color);
}




.platform-picker {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0;
}

.platform-picker__title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.platform-picker__intro {
  margin: 0 0 16px;
  font-size: 1rem;
  opacity: 0.85;
}

.platform-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .platform-picker__grid {
    grid-template-columns: 1fr;
  }
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.platform-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
}

.platform-card:focus {
  outline: none;
}

.platform-card:focus-visible {
  outline: 3px solid rgba(0, 120, 255, 0.25);
  outline-offset: 2px;
}

.platform-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.03);
}

.platform-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.platform-card__title {
  font-weight: 700;
  font-size: 1.02rem;
}

.platform-card__desc {
  font-size: 0.95rem;
  opacity: 0.78;
}

.platform-card__chev {
  margin-left: auto;
  opacity: 0.55;
  font-size: 1.4rem;
  line-height: 1;
}

/* Active state (apply via JS by adding .is-active) */
.platform-card.is-active {
  border-color: rgba(0, 120, 255, 0.45);
  box-shadow: 0 10px 26px rgba(0, 120, 255, 0.10);
}

.platform-card.is-active .platform-card__icon {
  border-color: rgba(0, 120, 255, 0.35);
}



/* Panels wrapper */
.platform-panels {
  margin-top: 50px;
}

/* Panel block */
.platform-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
}

.platform-panel__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.platform-panel__desc {
  margin: 0 0 14px;
  opacity: 0.85;
}

/* Provider cards */
.provider-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .provider-cards {
    grid-template-columns: 1fr;
  }
}

.provider-card {
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.provider-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
}

.provider-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.provider-card__meta {
  margin: 0;
  opacity: 0.78;
}

/* Badge */
.provider-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Recommended styling */
.provider-card--recommended {
  border-color: rgba(0, 120, 255, 0.35);
  box-shadow: 0 10px 26px rgba(0, 120, 255, 0.08);
}

.platform-picker__help {
  margin-top: 16px;
  opacity: 0.85;
}

/* Active state for platform buttons (works with your earlier CSS) */
.platform-card.is-active {
  border-color: rgba(0, 120, 255, 0.45);
  box-shadow: 0 10px 26px rgba(0, 120, 255, 0.10);
}



/* CookieBannerGuide – Author / E-E-A-T block */
.cbg-author-box {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}

.cbg-author-box__title {
  margin: 0 0 0.35rem 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.cbg-author-box__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
}

.cbg-author-box__meta {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  opacity: 0.82;
}

.cbg-author-box__meta a {
  text-decoration: underline;
}




/* Inline guide box */

.cbg-inline-guide {
    margin: 28px 0;
    padding: 18px 20px;
    background: #f8fafc;
    border-left: 4px solid #ed2828;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cbg-inline-guide--blue {
    border-color: #2563eb;
    background: #eff6ff;
}

.cbg-inline-guide--blue .cbg-guide-label {
    color: #1d4ed8;
}

.cbg-inline-guide--orange {
    border-color: #E8A24A;
    background: #F6F4EE;
}

.cbg-inline-guide--orange .cbg-guide-label {
    color: #be7100;
}

/* Green variation */

.cbg-inline-guide--green {
    border-color: #06ae8a;
    background: #f0fdf9;
}

/* Paragraph spacing */

.cbg-inline-guide p {
    margin: 0 0 8px 0;
}

/* Last paragraph spacing */

.cbg-inline-guide p:last-child {
    margin-bottom: 0;
}

/* Label above text */

.cbg-guide-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

/* Green label */

.cbg-inline-guide--green .cbg-guide-label {
    color: #059669;
}

/* Link styling */

.cbg-inline-guide a {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}


/* Desktop */

@media (min-width: 768px) {

    .cbg-inline-guide {
        padding: 22px 26px;
        font-size: 1rem;
    }

}




.single-content .wp-caption {
	margin: 0;
    width: 100%!important;
}

.single-content .wp-caption img {
	border-radius: 12px;
   border: 1px solid var(--border-light);
}

.single-content .wp-caption .wp-caption-text {
	font-size: 0.8rem;
}


.cf7-consent-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cf7-consent-line .wpcf7-form-control-wrap {
    display: inline;
}

.cf7-consent-line .wpcf7-list-item {
    margin: 0;
}

.cf7-consent-line .wpcf7-list-item-label {
    display: inline;
}

.cf7-consent-line a {
    text-decoration: underline;
}





