/* Blog-specific styles for Dozily */

/* Blog hero section */
.blog-hero {
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    text-align: center;
}

.blog-hero-content h1 {
    color: var(--primary-navy);
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
}

.blog-hero-content p {
    font-size: var(--text-xl);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

/* Blog stats */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-navy);
    font-family: var(--font-display);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: calc(80px + var(--space-sm)) 0 var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    font-size: var(--text-sm);
    color: var(--text-light);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '→';
    margin-left: var(--space-xs);
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--secondary-purple);
}

/* Navigation active state for blog */
.nav-link.active {
    color: var(--primary-navy);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

/* Category Filter */
.category-filter {
    padding: var(--space-lg) 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.filter-btn {
    background: white;
    color: var(--primary-navy);
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    background: var(--soft-lavender);
    border-color: var(--secondary-purple);
}

.filter-btn.active {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-md);
}


/* Featured article section */
.featured-article {
    padding: var(--space-2xl) 0;
    background: white;
}

.featured-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: var(--text-lg);
}

.badge-icon {
    font-size: var(--text-xl);
}

/* Article card */
.article-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    max-width: 900px;
    margin: 0 auto;
}

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

.article-card.featured {
    border: 3px solid var(--accent-gold);
}

.article-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-image img,
.article-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image-placeholder {
    background: linear-gradient(135deg, var(--soft-lavender), var(--warm-white));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-light);
}

.article-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--primary-navy);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
}

.article-content {
    padding: var(--space-2xl);
}

.article-content h2 {
    margin-bottom: var(--space-md);
    font-size: var(--text-3xl);
    line-height: 1.2;
}

.article-content h2 a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: var(--transition-fast);
}

.article-content h2 a:hover {
    color: var(--secondary-purple);
}

.article-excerpt {
    font-size: var(--text-lg);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* Article meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-purple), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: white;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: var(--text-base);
}

.publish-date {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.article-stats {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Article tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.tag {
    background: var(--soft-lavender);
    color: var(--secondary-purple);
    padding: 0.375rem var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--secondary-purple);
    color: white;
    cursor: pointer;
}

/* Read more button */
.read-more-btn {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-purple));
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition-normal);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-navy));
}

.read-more-btn::after {
    content: '→';
    transition: var(--transition-fast);
}

.read-more-btn:hover::after {
    transform: translateX(4px);
}

/* Coming soon section */
.coming-soon {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.coming-soon-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    border: 2px solid var(--border-light);
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    display: block;
}

.coming-soon-card h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.coming-soon-card p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.coming-tag {
    background: var(--accent-gold);
    color: white;
    padding: 0.375rem var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    display: inline-block;
}

/* Newsletter signup */
.newsletter-signup {
    padding: var(--space-2xl) 0;
    background: white;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-purple));
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: var(--text-3xl);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.newsletter-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.form-group input {
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: white;
    color: var(--text-dark);
}

.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.form-group label {
    vertical-align: middle;
}

.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.form-group label {
    vertical-align: middle;
}

.form-group input:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.subscribe-btn {
    background: var(--accent-gold);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #b7791f;
    transform: translateY(-2px);
}

.form-note {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-icon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog CTA section */
.blog-cta {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
    text-align: center;
}

.blog-cta .cta-content h2 {
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    font-size: var(--text-4xl);
}

.blog-cta .cta-content p {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Article page specific styles */
.article-header {
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-title {
    font-size: var(--text-5xl);
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    font-family: var(--font-display);
}

.article-subtitle {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.article-header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.article-main {
    padding: var(--space-2xl) 0;
    background: white;
}

.article-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.8;
}

.article-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-2xl);
}

.article-content-wrapper h2 {
    color: var(--primary-navy);
    margin: var(--space-2xl) 0 var(--space-lg);
    font-size: var(--text-3xl);
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: var(--space-sm);
}

.article-content-wrapper h3 {
    color: var(--primary-navy);
    margin: var(--space-xl) 0 var(--space-md);
    font-size: var(--text-2xl);
}

.article-content-wrapper p {
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
}

.article-content-wrapper ul, 
.article-content-wrapper ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.article-content-wrapper li {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.article-content-wrapper blockquote {
    background: var(--soft-lavender);
    border-left: 4px solid var(--secondary-purple);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--text-dark);
}

.article-content-wrapper .highlight {
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.2), rgba(118, 75, 162, 0.2));
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Table styles */
.table-container {
    margin: var(--space-xl) 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-light);
}

tr {
    border-bottom: 1px solid var(--border-light);
}

td, th {
    text-align: left;
    padding: var(--space-md);
}

.article-content-wrapper thead {
    background: var(--secondary-purple);
    color: white;
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: var(--warm-white);
}

/* Research citations */
.citations {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.citations h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-lg);
    font-size: var(--text-xl);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: var(--space-sm);
}

.citations ol {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
}

.citations li {
    margin-bottom: var(--space-sm);
}

.citations a {
    color: var(--secondary-purple);
    text-decoration: none;
    word-break: break-all;
}

.citations a:hover {
    text-decoration: underline;
}

/* Social sharing */
.social-sharing {
    background: var(--warm-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
    text-align: center;
}

.social-sharing h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-lg);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.email { background: var(--primary-navy); }

/* Related articles */
.related-articles {
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
    padding: var(--space-2xl) 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.related-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

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

.related-card-content {
    padding: var(--space-lg);
}

.related-card h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}

.related-card p {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.related-card .read-more {
    color: var(--secondary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
}

.related-card .read-more:hover {
    text-decoration: underline;
}

/* Responsive design for blog */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: var(--text-4xl);
    }
    
    .blog-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-content {
        padding: var(--space-lg);
    }
    
    .article-content h2 {
        font-size: var(--text-2xl);
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .article-title {
        font-size: var(--text-4xl);
    }
    
    .article-header-meta {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: var(--text-3xl);
    }
    
    .article-content h2 {
        font-size: var(--text-xl);
    }
    
    .article-title {
        font-size: var(--text-3xl);
    }
    
    .newsletter-card {
        padding: var(--space-lg);
    }
    
    .newsletter-content h2 {
        font-size: var(--text-2xl);
    }
    
    .visual-icon {
        font-size: 4rem;
    }
    
    .article-content-wrapper {
        font-size: var(--text-base);
    }
}

/* Custom lists */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.75em;
    list-style-type: none;
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background-color: var(--secondary-purple);
}

/* Numbered lists */
.list-numbers {
    list-style: none;
    padding-left: 0;
    counter-reset: list-counter;
}

.list-numbers li {
    counter-increment: list-counter;
    padding-left: 2.5em;
    position: relative;
    margin-bottom: 1em;
    list-style: none;
}

.list-numbers li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--soft-lavender);
    color: var(--primary-navy);
    text-align: center;
    line-height: 1.5em;
    font-weight: 600;
}

/* Highlight box */
.highlight-box {
    background: var(--soft-lavender);
    border-left: 4px solid var(--secondary-purple);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.highlight-box p {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--primary-navy);
}

.highlight-box strong {
    font-family: var(--font-display);
    font-size: var(--text-xl);
}

/* Two columns */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* Testimonial */
.testimonial {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
    position: relative;
}

.testimonial p {
    font-style: italic;
    color: var(--text-dark);
    margin: 0;
}

.testimonial footer {
    margin-top: var(--space-md);
    font-weight: 600;
    color: var(--primary-navy);
    text-align: right;
}

/* CTA Block */
.cta-block {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-purple));
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    text-align: center;
}

.cta-block-secondary {
    background: var(--soft-lavender);
    border: 2px dashed var(--secondary-purple);
    color: var(--primary-navy);
}

.cta-block-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
}

.cta-block-text {
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-block-buttons .cta-btn {
    background: var(--accent-gold);
    color: white;
    text-decoration: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition-normal);
}

.cta-block-buttons .cta-btn:hover {
    background: #b7791f;
    transform: translateY(-2px);
}

.cta-block-secondary .cta-btn {
    background: var(--secondary-purple);
}

.cta-block-secondary .cta-btn:hover {
    background: var(--primary-navy);
}