/* =====================================================
   Motivalo Idezetek - "Warm Sunrise" (Napfelkelte) Theme
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Nunito:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* CSS Variables */
:root {
    --primary: #D4726A;
    --primary-dark: #B85550;
    --primary-light: #E8918A;
    --secondary: #F5E6D3;
    --accent: #5B8C7A;
    --accent-dark: #4A7366;
    --accent-light: #6FA08D;
    --dark: #2C2428;
    --text: #3A3035;
    --text-light: #6B5F65;
    --bg: #FDF9F6;
    --bg-alt: #F7EDE5;
    --white: #FFFFFF;
    --border: #E8DDD5;
    --border-light: #F0E8E0;
    --shadow-sm: 0 1px 3px rgba(44, 36, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 36, 40, 0.10);
    --shadow-lg: 0 8px 30px rgba(44, 36, 40, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --max-width: 1200px;
    --content-width: 800px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-quote: 'Cormorant Garamond', Georgia, serif;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

a:hover {
    color: var(--accent-dark);
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.25rem;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.site-logo span {
    color: var(--primary);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    gap: 0.25rem;
}

.nav-desktop a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary);
    background: var(--bg-alt);
}

/* Mobile Menu Button */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.nav-mobile.is-open {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-mobile a {
    display: block;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--primary);
    background: var(--bg-alt);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
    .nav-mobile {
        display: none !important;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg) 50%, #F9E4DA 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-quote);
    font-size: 20rem;
    color: var(--primary);
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
}

.hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-quote {
    font-family: var(--font-quote);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.hero-author {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 2rem;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
    .hero-quote {
        font-size: 1.875rem;
    }
}

/* =====================================================
   ARTICLE HERO (inner pages)
   ===================================================== */
.article-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-alt) 100%);
    padding: 3rem 1.5rem 2rem;
}

.article-hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

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

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--border);
}

.article-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .article-hero {
        padding: 4rem 2rem 3rem;
    }
    .article-hero h1 {
        font-size: 2.5rem;
    }
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    flex: 1;
}

.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Article Content Prose */
.prose {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--accent-dark);
}

/* =====================================================
   QUOTE CARDS
   ===================================================== */
.quote-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow var(--transition);
}

.quote-card:hover {
    box-shadow: var(--shadow-md);
}

.quote-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-family: var(--font-quote);
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
}

.quote-text {
    font-family: var(--font-quote);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.quote-context {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Alternate quote style for variety */
.quote-card:nth-child(even) {
    border-left-color: var(--accent);
}

.quote-card:nth-child(even)::before {
    color: var(--accent);
}

.quote-card:nth-child(even) .quote-author {
    color: var(--accent-dark);
}

/* Featured Quote (hero-style) */
.quote-featured {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-alt) 100%);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    border-left: none;
    position: relative;
}

.quote-featured::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-quote);
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.08;
    line-height: 1;
}

.quote-featured .quote-text {
    font-size: 1.5rem;
}

/* =====================================================
   ARTICLE CARDS (for listings)
   ===================================================== */
.articles-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

.article-card-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-placeholder span {
    font-family: var(--font-quote);
    font-size: 4rem;
    color: var(--white);
    opacity: 0.3;
}

.article-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

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

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Section with alt background */
.section-alt {
    background: var(--bg-alt);
}

/* =====================================================
   CATEGORY BADGES
   ===================================================== */
.category-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.category-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.category-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

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

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.category-card .article-count {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   RELATED ARTICLES
   ===================================================== */
.related-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.related-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-links {
    display: grid;
    gap: 1rem;
}

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

.related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
}

.related-link:hover {
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.related-link::before {
    content: '\2192';
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

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

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

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   HERO IMAGE
   ===================================================== */
.article-hero-image {
    margin: 0 auto 2rem;
    max-width: var(--content-width);
    padding: 0 1.5rem;
}

.article-hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* =====================================================
   CATEGORY PAGE
   ===================================================== */
.category-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-alt) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
}

.category-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.category-hero p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.category-hero .accent-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .category-hero {
        padding: 4rem 2rem;
    }
    .category-hero h1 {
        font-size: 2.5rem;
    }
}

/* =====================================================
   FEATURED QUOTES (Homepage)
   ===================================================== */
.featured-quotes-grid {
    display: grid;
    gap: 1.5rem;
}

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

.featured-quote-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.featured-quote-card:hover {
    box-shadow: var(--shadow-md);
}

.featured-quote-card:nth-child(even) {
    border-left-color: var(--accent);
}

.featured-quote-card .quote-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.featured-quote-card .quote-source {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.featured-quote-card .quote-source a {
    color: var(--accent);
}

/* =====================================================
   SEO TEXT SECTION
   ===================================================== */
.seo-text {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.seo-text h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

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

.text-center { text-align: center; }
.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; }

/* =====================================================
   FAQ SCHEMA (structured data styling)
   ===================================================== */
.faq-schema-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
