/*
Theme Name: HayderVoice 2.0
Description: Dynamic philosophical WordPress theme with enhanced typography and full-screen utilization
Version: 2.0
Author: HayderVoice
Text Domain: haydervoice
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
    --primary-dark: #1a1a1a;
    --primary-light: #f8f7f5;
    --accent-gold: #d4af37;
    --accent-warm: #b8941f;
    --accent-deep: #2d3748;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --surface-white: #ffffff;
    --surface-cream: #fefcf8;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
    --gradient-hero: linear-gradient(135deg, #fefcf8 0%, #f8f7f5 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Source Serif 4', serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--surface-cream);
    font-size: clamp(18px, 2.5vw, 22px);
    overflow-x: hidden;
}

/* WordPress Core Classes */
.alignleft { float: left; margin: 0 2rem 1.5rem 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 1.5rem 2rem; max-width: 50%; }
.aligncenter { display: block; margin: 0 auto 2rem; }
.alignwide, .alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); }
.sticky { background: var(--surface-white); padding: 2rem; border-radius: 12px; border-left: 4px solid var(--accent-gold); }

/* Typography */
h1,h2,h3,h4,h5,h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.3rem, 3.5vw, 1.5rem); }
h5 { font-size: clamp(1.2rem, 3vw, 1.3rem); }
h6 { font-size: clamp(1.1rem, 2.8vw, 1.2rem); }

p { margin-bottom: clamp(1.5rem, 4vw, 2rem); line-height: 1.8; font-size: clamp(18px, 2.5vw, 22px); }

a {
    color: var(--accent-gold);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all .3s ease;
}
a:hover { color: var(--accent-warm); text-decoration-thickness: 2px; }

/* Containers */
.container { width: 100%; max-width: 100%; padding: 0 clamp(1rem, 4vw, 2rem); margin: 0 auto; }
.content-container { width: 100%; max-width: 1600px; padding: 0 clamp(1rem, 3vw, 2rem); margin: 0 auto; }
.reading-container { width: 100%; max-width: 900px; padding: 0 clamp(1.5rem, 4vw, 2rem); margin: 0 auto; }

/* Header (minimal) */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(254, 252, 248, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: clamp(0.8rem, 2vw, 1.2rem) 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.site-header.scrolled { background: rgba(254, 252, 248, 0.95); box-shadow: var(--shadow-soft); }
.header-container { display: flex; justify-content: center; align-items: center; }
.site-title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700;
    color: var(--primary-dark); text-decoration: none; letter-spacing: -0.02em; transition: all .3s ease;
}
.site-title:hover { color: var(--accent-gold); transform: scale(1.02); }

/* Hero */
.hero-section {
    min-height: 100vh; background: var(--gradient-hero);
    display: flex; align-items: center;
    padding: clamp(6rem, 15vw, 8rem) 0 clamp(2rem, 8vw, 4rem);
    margin-top: clamp(70px, 12vw, 90px); position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212,175,55,.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212,175,55,.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { text-align: center; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
    padding: clamp(.6rem,2vw,.8rem) clamp(1.2rem,3vw,1.8rem);
    border-radius: 50px; font-family: 'Inter', sans-serif; font-size: clamp(14px,2vw,16px);
    font-weight: 600; color: var(--accent-gold); margin-bottom: clamp(2rem,5vw,3rem);
    box-shadow: var(--shadow-soft); border: 1px solid rgba(212,175,55,.2);
}
.hero-badge::before { content: '✦'; color: var(--accent-gold); font-size: 1.1em; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; line-height: 1.05; color: var(--primary-dark); margin-bottom: clamp(1.5rem,4vw,2rem); letter-spacing: -0.03em; }

/* Quote Card (Chirkut) */
.quote-container { position: relative; margin: clamp(1.5rem,4vw,2rem) auto clamp(2rem,5vw,2.5rem); max-width: clamp(350px,70vw,600px); }
.quote-card {
    background: linear-gradient(145deg,#ffffff 0%,#fefcf8 100%); border-radius: clamp(12px,3vw,18px);
    padding: clamp(1.8rem,5vw,2.5rem); box-shadow: 0 8px 32px rgba(212,175,55,.15), 0 2px 8px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
    border: 1px solid rgba(212,175,55,.2); transform: rotate(-1.5deg); transition: all .4s cubic-bezier(.4,0,.2,1); position: relative;
}
.quote-card::before { content:''; position:absolute; top:-2px; right: clamp(1rem,4vw,1.5rem); width:16px; height:16px; background:var(--accent-gold); border-radius:50%; box-shadow: 0 0 0 3px rgba(212,175,55,.3), 0 2px 6px rgba(212,175,55,.4); }
.quote-card::after { content:''; position:absolute; top:8px; right: clamp(1.3rem,4.3vw,1.8rem); width:2px; height:12px; background: linear-gradient(to bottom,#888,#ccc); border-radius:1px; transform: rotate(15deg); }
.quote-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 12px 40px rgba(212,175,55,.2), 0 4px 12px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.8); }
.quote-mark { position:absolute; top: clamp(.5rem,2vw,.8rem); left: clamp(1rem,3vw,1.3rem); font-size: clamp(2.5rem,5vw,3rem); color: rgba(212,175,55,.3); font-family: 'Playfair Display', serif; line-height:1; font-weight: 400; }
.hero-quote { font-family: 'Playfair Display', serif; font-size: clamp(18px,3.5vw,24px); color: var(--text-primary); font-style: italic; line-height: 1.5; margin-bottom: clamp(1rem,3vw,1.3rem); text-align: left; padding-left: clamp(1rem,3vw,1.5rem); }
.hero-author { font-family: 'Inter', sans-serif; font-size: clamp(16px,2.5vw,18px); color: var(--accent-gold); text-align: right; font-weight: 600; position: relative; }
.hero-author::before { content:''; position:absolute; left:0; top:50%; width: clamp(30px,6vw,45px); height:1px; background: linear-gradient(to right,transparent,var(--accent-gold)); opacity:.7; }

.hero-subtitle { font-size: clamp(18px,3vw,22px); color: var(--text-secondary); line-height: 1.7; margin-bottom: clamp(3rem,6vw,4rem); max-width: clamp(320px,85vw,700px); margin-left:auto; margin-right:auto; }

.hero-actions { display:flex; gap: clamp(1rem,3vw,1.5rem); justify-content:center; flex-wrap: wrap; }
.btn { display:inline-flex; align-items:center; gap:.6rem; padding: clamp(1rem,3vw,1.3rem) clamp(2rem,5vw,3rem); text-decoration:none; border-radius:50px; font-family:'Inter',sans-serif; font-weight:600; font-size: clamp(16px,2.5vw,18px); transition: all .4s cubic-bezier(.4,0,.2,1); position: relative; overflow:hidden; min-width: clamp(160px,35vw,200px); justify-content:center; }
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(212,175,55,.4); text-decoration:none; color:#fff; }
.btn-secondary { background: rgba(255,255,255,.9); color: var(--text-primary); border:2px solid rgba(212,175,55,.3); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: var(--accent-gold); color:#fff; border-color: var(--accent-gold); transform: translateY(-3px); text-decoration:none; }

/* Layout */
.site-content { display:grid; grid-template-columns: 1fr 320px; gap: clamp(3rem,6vw,4rem); padding: clamp(4rem,8vw,6rem) 0; position: relative; z-index: 2; }
.main-content { width:100%; min-width:0; }

.section-header { text-align:center; margin-bottom: clamp(4rem,8vw,6rem); }
.section-badge { font-family:'Inter',sans-serif; font-size: clamp(14px,2vw,16px); font-weight:600; color: var(--accent-gold); text-transform: uppercase; letter-spacing:.15em; margin-bottom: clamp(1rem,3vw,1.5rem); }
.section-title { font-family:'Playfair Display',serif; font-size: clamp(2.2rem,6vw,3.5rem); font-weight:700; color: var(--primary-dark); margin-bottom: clamp(1.5rem,4vw,2rem); letter-spacing: -0.02em; }
.section-description { font-size: clamp(18px,3vw,22px); color: var(--text-secondary); line-height:1.7; max-width: clamp(320px,85vw,700px); margin:0 auto; }

.posts-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(clamp(320px,45vw,400px), 1fr)); gap: clamp(2rem,5vw,3rem); margin-bottom: clamp(4rem,8vw,6rem); }
.post-card { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-radius: clamp(16px,4vw,20px); overflow:hidden; box-shadow: var(--shadow-soft); transition: all .4s cubic-bezier(.4,0,.2,1); border:1px solid rgba(212,175,55,.1); }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.post-thumbnail { width:100%; height: clamp(200px,30vw,240px); background: var(--gradient-accent); display:flex; align-items:center; justify-content:center; color:#fff; font-family:'Playfair Display',serif; font-size: clamp(16px,2.5vw,18px); font-weight:600; position:relative; overflow:hidden; }
.post-thumbnail img { width:100%; height:100%; object-fit: cover; }
.post-content { padding: clamp(1.8rem,5vw,2.5rem); }
.post-meta { font-family:'Inter',sans-serif; font-size: clamp(14px,2vw,16px); color: var(--text-muted); margin-bottom: clamp(1rem,3vw,1.2rem); display:flex; gap: clamp(.8rem,2vw,1rem); flex-wrap: wrap; }
.post-title { font-family:'Playfair Display',serif; font-size: clamp(20px,4vw,26px); font-weight:600; color: var(--primary-dark); margin-bottom: clamp(1rem,3vw,1.2rem); line-height:1.3; letter-spacing:-0.01em; }
.post-title a { text-decoration:none; color:inherit; transition: color .3s ease; }
.post-title a:hover { color: var(--accent-gold); }
.post-excerpt { color: var(--text-secondary); line-height:1.7; font-size: clamp(16px,2.5vw,18px); margin-bottom: clamp(1.5rem,4vw,2rem); }
.read-more { display:inline-flex; align-items:center; gap:.5rem; color: var(--accent-gold); text-decoration:none; font-family:'Inter',sans-serif; font-weight:600; font-size: clamp(14px,2vw,16px); transition: all .3s ease; }
.read-more:hover { color: var(--accent-warm); gap:.8rem; }
.read-more::after { content:'→'; transition: transform .3s ease; }
.read-more:hover::after { transform: translateX(3px); }

/* Sidebar */
.sidebar { display:flex; flex-direction:column; gap: clamp(2rem,5vw,3rem); }
.widget { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-radius: clamp(12px,3vw,16px); padding: clamp(1.5rem,4vw,2rem); box-shadow: var(--shadow-soft); border:1px solid rgba(212,175,55,.1); }
.widget-title { font-family:'Playfair Display',serif; font-size: clamp(18px,3vw,22px); font-weight:600; color: var(--primary-dark); margin-bottom: clamp(1rem,3vw,1.5rem); letter-spacing:-0.01em; }
.daily-quote { background: rgba(212,175,55,.1); padding:1.5rem; border-radius:8px; border-left: 4px solid var(--accent-gold); text-align:center; }
.quote-text { font-family:'Playfair Display',serif; font-size: clamp(1rem,2.5vw,1.1rem); font-style: italic; color: var(--text-primary); margin-bottom: 1rem; line-height: 1.5; }
.quote-author { font-family:'Inter',sans-serif; font-size:.9rem; color: var(--accent-gold); font-weight:500; }

/* Single */
.single-post { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-radius: clamp(16px,4vw,20px); padding: clamp(2rem,6vw,4rem); box-shadow: var(--shadow-soft); border:1px solid rgba(212,175,55,.1); margin-bottom: clamp(3rem,6vw,4rem); }

/* Footer */
.site-footer { background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 100%); color: #e2e2e2; padding: clamp(4rem,8vw,6rem) 0 clamp(2rem,4vw,3rem); margin-top: clamp(4rem,8vw,6rem); }
.footer-container { display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand .tagline { font-style: italic; color:#c9c9c9; }
.footer-links ul { list-style:none; padding:0; }
.footer-links li { margin-bottom:.5rem; }
.footer-links a { color:#e2e2e2; text-decoration:none; }
.footer-links a:hover { color:#fff; text-decoration:underline; }
.footer-bottom { margin-top:2rem; text-align:center; color:#c9c9c9; }

/* Pagination */
.pagination, .nav-links { display:flex; gap: .5rem; justify-content:center; }
.pagination .page-numbers, .nav-links a { padding:.6rem .9rem; border:1px solid rgba(212,175,55,.25); border-radius:8px; text-decoration:none; }
.pagination .current { background: var(--accent-gold); color:#fff; border-color: var(--accent-gold); }

/* Responsive */
@media (max-width: 1024px){
    .site-content{ grid-template-columns: 1fr; gap: clamp(2rem,5vw,3rem); }
    .sidebar{ order: -1; }
    .footer-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px){
    body{ font-size:18px; }
    .hero-title { white-space: normal; text-align:center; }
    .hero-actions { flex-direction:column; align-items:center; }
    .btn { width:100%; max-width:300px; }
    .quote-card { transform:none; padding: clamp(1.5rem,5vw,2rem); }
    .quote-card:hover { transform: translateY(-3px); }
    .posts-grid { grid-template-columns: 1fr; }
}
