/* Blog-specific styles extending the main design system */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #34C759, #06B6D4);
    width: 0%;
    transition: width 0.1s ease;
}

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 80px;
    position: relative;
    min-height: 60vh;
    background: #FAFAFA;
}

.blog-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.blog-category {
    background: linear-gradient(135deg, #34C759, #06B6D4);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.reading-time {
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1F2937;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6B7280;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter:hover {
    border-color: #1DA1F2;
    background: #F0F9FF;
}

.share-btn.linkedin:hover {
    border-color: #0077B5;
    background: #F0F8FF;
}

.share-btn.copy:hover {
    border-color: #34C759;
    background: #F0FDF4;
}

.share-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Blog Hero Image Section */
.blog-hero-image {
    background: white; /* Match blog-content background */
    padding: 40px 0 0 0; /* Top padding for separation from gray section */
    margin: 0; /* Remove any default margin */
}

.hero-image-container {
    max-width: 1200px; /* Wider than text content for impact */
    margin: 0 auto;
    padding: 0 20px; /* Small side padding on mobile */
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px; /* Subtle rounding for polish */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: block;
}

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background: white;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1F2937;
    letter-spacing: -0.01em;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1F2937;
}

.content-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

.content-section ul, .content-section ol {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Highlighted text */
.highlight {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(6, 182, 212, 0.1));
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #34C759;
    font-weight: 600;
    margin: 32px 0;
}

.quote {
    font-size: 1.375rem;
    font-style: italic;
    text-align: center;
    color: #1F2937;
    font-weight: 500;
    margin: 40px 0;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: #34C759;
    position: absolute;
    left: -40px;
    top: -20px;
    font-family: Georgia, serif;
}

/* Time Breakdown */
.time-breakdown {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.time-item {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #06B6D4;
}

.time-item h4 {
    color: #1F2937;
    margin-bottom: 8px;
    font-weight: 700;
}

.time-item p {
    margin-bottom: 0;
    color: #4B5563;
}

/* Habit Timeline */
.habit-timeline {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    border-color: #34C759;
    transform: translateX(4px);
}

.week {
    font-weight: 700;
    color: #34C759;
    min-width: 80px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.benefit-item {
    background: #F0FDF4;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #15803D;
    border-left: 3px solid #34C759;
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin: 64px 0;
    border: 1px solid #E5E7EB;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1F2937;
}

.cta-content p {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 32px;
}

/* References */
.references {
    background: #F9FAFB;
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid #6B7280;
}

.references h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #374151;
}

.references ol {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6B7280;
}

.references li {
    margin-bottom: 12px;
}

/* Blog Footer */
.blog-footer {
    background: #1F2937;
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-section a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #34C759;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.6;
}

/* Navigation Overrides for Blog */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.125rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .hero-image-container {
        padding: 0 16px;
    }
    
    .hero-image {
        border-radius: 12px;
    }
    
    .content-section p,
    .content-section ul,
    .content-section ol {
        font-size: 1rem;
    }
    
    .quote {
        font-size: 1.25rem;
        margin: 32px 0;
    }
    
    .quote::before {
        left: -20px;
        font-size: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cta {
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Copy Success Message */
.copy-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #34C759;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-success.show {
    opacity: 1;
    transform: translateY(0);
}