/* CONTENT FOR: DollsDollhouse/css/blog.css */

:root {
    --primary-pink: #ff69b4;
    --dark-pink: #db2777;
    --light-pink: #fdf2f8;
    --accent-gold: #fbbf24;
    --text-dark: #b60f74;
    --text-light: #6d3345;
    --gradient-primary: linear-gradient(135deg, #ff69b4, #db2777);
    --gradient-secondary: linear-gradient(135deg, #fdf2f8, #fbcfe8);
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Lovelace', serif;
    --font-script: 'Pinyon Script', cursive;
    --shadow-light: 0 10px 20px rgba(136, 19, 64, 0.1);
    --shadow-dark: 0 20px 40px rgba(136, 19, 64, 0.2);
    --shadow-soft: 0 20px 40px rgba(219, 39, 119, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
}

body {
    font-family: var(--font-display), serif;
    background: var(--light-pink);
    color: var(--text-dark);
    width: 100%;
    max-width: 100%; 
    overflow-x: hidden; 
    min-height: 100vh;
    position: relative;
    margin: 0;
}

/* --- HERO SECTION --- */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-primary);;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-content { max-width: 800px; animation: fadeInUp 0.8s ease-out; }

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 10rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1;
}

.hero-content p {
    font-family: 'Lovelace', serif;
    font-size: 1.25rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- GRID LAYOUT --- */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    box-sizing: border-box;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

/* --- BLOG CARD --- */
.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.02);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrap {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image-wrap img { transform: scale(1.08); }

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Lovelace', serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    transition: color 0.3s;
}

.blog-card:hover .card-title { color: var(--primary); }

.card-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-btn {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s, color 0.3s;
}

.blog-card:hover .read-btn { gap: 12px; color: var(--primary); }

/* --- ARTICLE DETAIL VIEW --- */
#blog-detail-view {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.article-nav { margin-bottom: 2rem; }

.back-link {
    background: none; border: none;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-light); font-weight: 600;
    cursor: pointer; font-size: 1rem;
    transition: color 0.3s;
}
.back-link:hover { color: var(--primary); }

.article-header { text-align: center; margin-bottom: 3rem; }

.article-meta {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-family: 'Lovelace', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--text-dark);
}

.article-media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-card);
}

.article-media img { width: 100%; display: block; }

/* Typography for Article Content */
.typography {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap; /* This preserves line breaks and spacing */
}

.typography p { margin-bottom: 2rem; }

.typography h2 {
    font-family: 'Lovelace', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin: 3rem 0 1.5rem 0;
}

/* Drop Cap */
.typography p:first-of-type::first-letter {
    float: left;
    font-family: 'Lovelace', serif;
    font-size: 4rem;
    line-height: 0.8;
    color: var(--primary);
    padding-right: 12px;
    margin-top: 6px;
}

.typography blockquote {
    position: relative;
    padding: 2rem 3rem;
    margin: 3rem 0;
    font-family: 'Lovelace', serif;
    font-size: 1.5rem;
    color: var(--primary);
    text-align: center;
    line-height: 1.5;
}
.typography blockquote::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -20px; left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .card-image-wrap { height: 250px; }
    .hero-content h1 { font-size: 3rem; }
    .typography { font-size: 1.05rem; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* --- FOOTER --- */
footer { background: var(--text-dark); color: var(--light-pink); padding: 3rem 2rem; text-align: center; font-family: var(--font-sans); }
.install-button {
    display: none; background: var(--primary-pink); color: white; border: none;
    padding: 0.75rem 1.5rem; border-radius: 25px; font-size: 1rem; font-weight: 500;
    cursor: pointer; margin-bottom: 2rem; transition: all 0.3s ease;
}
.install-button:hover { background: #fff; color: var(--dark-pink); }
.install-button.show { display: inline-block; }
.footer-links { margin-bottom: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: white; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-pink); }
.copyright { font-size: 0.9rem; color: #fbcfe8; line-height: 1.6; }
.copyright a { color: white; text-decoration: none; }
.copyright a:hover { text-decoration: underline; }