/* Techie Dani — Recommendations Blog Styles */
/* Shared design system from main site */

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

:root {
    --cream: #f5f0eb;
    --blush: #e8d5c4;
    --soft-blue: #c5d5e8;
    --dusty-rose: #d4a9a9;
    --warm-white: #faf7f4;
    --text-dark: #2c2c2c;
    --text-medium: #5a5a5a;
    --text-light: #8a8a8a;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-hover: rgba(255, 255, 255, 0.75);
    --accent: #d4a9a9;
    --accent-soft: rgba(212, 169, 169, 0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    background: var(--cream);
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 40%, rgba(197,213,232,0.15) 100%);
}

/* ─── Nav ─── */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-nav a {
    text-decoration: none;
    color: var(--text-dark);
}

.nav-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-dark); }

.nav-links a.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* ─── Layout ─── */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ─── Listing Page Hero ─── */
.listing-hero {
    text-align: center;
    margin-bottom: 40px;
}

.listing-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.listing-hero p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ─── Category Filters ─── */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--glass-hover);
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--text-dark);
    color: var(--warm-white);
    border-color: var(--text-dark);
}

/* ─── Recommendation Cards Grid ─── */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.rec-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: rgba(255,255,255,0.9);
}

.rec-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--blush), var(--soft-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.rec-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rec-card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dusty-rose);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}

.rec-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.rec-card-excerpt {
    font-size: 0.84rem;
    color: var(--text-medium);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 14px;
}

.rec-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rec-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rec-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.rec-card-author span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.rec-card-arrow {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.rec-card:hover .rec-card-arrow {
    transform: translateX(3px);
    color: var(--text-dark);
}

/* ─── Article Styles ─── */
.article-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--glass-border);
}

.article-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dusty-rose);
    background: var(--accent-soft);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.5;
    max-width: 540px;
    margin: 0 auto 20px;
}

/* Author byline */
.author-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-byline img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

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

.author-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Article body */
.article-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 36px 0 14px;
    color: var(--text-dark);
}

.article-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 10px;
}

.article-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin: 0 0 16px 20px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-medium);
}

.article-body li {
    margin-bottom: 6px;
}

/* Recommendation box */
.rec-verdict {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    margin: 32px 0;
    text-align: center;
}

.rec-verdict .rating {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.rec-verdict .verdict-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.rec-verdict .verdict-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.rec-verdict .verdict-summary {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.55;
    max-width: 480px;
    margin: 0 auto;
}

/* Pros/Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.pros, .cons {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
}

.pros h3, .cons h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0 0 12px;
}

.pros h3 { color: #6b9e6b; }
.cons h3 { color: var(--dusty-rose); }

.pros ul, .cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros li, .cons li {
    font-size: 0.85rem;
    color: var(--text-medium);
    padding: 4px 0;
    line-height: 1.5;
}

.pros li::before { content: "✓ "; color: #6b9e6b; font-weight: 600; }
.cons li::before { content: "✕ "; color: var(--dusty-rose); font-weight: 600; }

/* CTA Button */
.buy-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 36px 0;
}

.buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--text-dark);
    color: var(--warm-white);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44,44,44,0.2);
    background: #1a1a1a;
}

.buy-btn .btn-sub {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
}

.faq-section h2 {
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
}

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

.faq-q {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    cursor: default;
}

.faq-a {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.65;
}

/* Related Recommendations */
.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.related-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--text-dark); }

/* Footer */
.blog-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--glass-border);
    margin-top: 48px;
}

.blog-footer p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Cover Hero Image */
.cover-hero {
    margin: -8px 0 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.cover-hero img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim {
    animation: fadeUp 0.5s ease-out forwards;
    opacity: 0;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.1s; }
.d3 { animation-delay: 0.15s; }
.d4 { animation-delay: 0.2s; }
.d5 { animation-delay: 0.25s; }

/* Responsive */
@media (max-width: 600px) {
    .listing-hero h1 { font-size: 1.75rem; }
    .article-header h1 { font-size: 1.6rem; }
    .rec-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .blog-container, .article-container { padding: 24px 16px 60px; }
}

@media (max-width: 480px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.8rem; }
}

::-webkit-scrollbar { width: 0; }
