/* Founder's Notes Blog Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--yellow-warm) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Blog Container Layout */
.blog-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 2rem;
    position: relative;
}

/* Timeline Navigation (Left Side) */
.timeline-nav {
    width: 250px;
    position: sticky;
    top: 150px;
    height: fit-content;
    flex-shrink: 0;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--orange-primary), var(--yellow-warm));
    border-radius: 2px;
}

.timeline-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-filters h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--white);
    border: 2px solid #e0e0e0;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.filter-btn:hover {
    border-color: var(--orange-primary);
    background: #fff5f0;
    transform: translateX(5px);
}

.filter-btn.active {
    background: var(--orange-primary);
    color: var(--white);
    border-color: var(--orange-primary);
}

.timeline-dates {
    position: relative;
    padding-left: 40px;
    margin-top: 2rem;
}

.timeline-date {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.timeline-date:hover {
    transform: translateX(5px);
}

.timeline-marker {
    position: absolute;
    left: 7px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--orange-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-date:hover .timeline-marker {
    background: var(--orange-primary);
    transform: scale(1.2);
}

.timeline-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
}

/* Blog Posts Area */
.blog-posts-area {
    flex: 1;
    min-width: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 95%;
}

/* Blog Post Card */
.blog-post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.blog-post-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--dark-gray);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-category {
    background: var(--orange-primary);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--orange-primary);
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.read-more {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }
    
    .timeline-nav {
        width: 100%;
        position: relative;
        top: 0;
        order: -1;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-dates {
        display: none;
    }
    
    .timeline-filters {
        margin-bottom: 2rem;
    }
    
    .category-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        min-width: fit-content;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .blog-post-card {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Individual Blog Post Page */
.blog-post-full {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-full-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-featured-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.post-featured-image:hover .image-expand-hint {
    background: rgba(255, 107, 0, 0.9) !important;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--orange-primary);
}

.post-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-gray);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-body iframe {
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.post-body ul, .post-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--orange-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

/* Related Products Section */
.related-products {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-products h3 {
    color: var(--orange-primary);
    margin-bottom: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.product-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-card .price {
    color: var(--orange-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

nav a.active {
    color: var(--orange-primary);
}

nav a.active::after {
    width: 100%;
}
