/* Blog-specific styles for ABC Homes FL */

/* Reading progress bar styling */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    z-index: 9999;
    transform-origin: left;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Blog card hover effects */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Featured post styling */
.featured-post {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
}

.featured-post:hover {
    border-color: #2563eb;
}

/* Category card styling */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Blog post content styling */
.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 6rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

/* Breadcrumb styling */
.breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

/* Social sharing buttons */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Newsletter signup styling */
.newsletter-form {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.newsletter-form input[type="email"] {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Tag styling */
.blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: #c7d2fe;
    color: #312e81;
}

/* Coming soon badge */
.coming-soon-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Featured badge */
.featured-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Image zoom effect */
.blog-image {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.blog-image:hover img {
    transform: scale(1.05);
}

/* Back to blog link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
}

.back-to-blog:hover {
    color: #1d4ed8;
    transform: translateX(-2px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .social-share-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .newsletter-form {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .social-share-btn,
    .newsletter-form,
    .back-to-blog {
        display: none;
    }
    
    .blog-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .blog-content h2 {
        font-size: 16pt;
        margin-top: 1rem;
    }
    
    .blog-content h3 {
        font-size: 14pt;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Table of contents (if needed) */
.table-of-contents {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1e40af;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: #2563eb;
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .blog-tag {
        background: #312e81;
        color: #c7d2fe;
    }
    
    .blog-tag:hover {
        background: #3730a3;
        color: #e0e7ff;
    }
    
    .table-of-contents {
        background: #1f2937;
        border-color: #374151;
    }
    
    .table-of-contents h3 {
        color: #60a5fa;
    }
    
    .table-of-contents a {
        color: #d1d5db;
    }
    
    .table-of-contents a:hover {
        color: #60a5fa;
    }
} 