/* Traxsyd Blog Styles - Integrated with Common Design System */

/* ===== BLOG HERO SECTIONS ===== */
.blog-hero,
.blog-post-hero,
.blog-category-hero,
.blog-search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before,
.blog-post-hero::before,
.blog-category-hero::before,
.blog-search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero .hero-content,
.blog-post-hero .hero-content,
.blog-category-hero .hero-content,
.blog-search-hero .hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero .hero-title,
.blog-post-hero .hero-title,
.blog-category-hero .hero-title,
.blog-search-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero .hero-subtitle,
.blog-post-hero .hero-subtitle,
.blog-category-hero .hero-subtitle,
.blog-search-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== BLOG POST CARDS ===== */
.blog-post-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.post-category a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-category a:hover {
    color: #764ba2;
}

.post-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #6c757d;
}

.post-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.post-footer .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.post-footer .btn:hover::before {
    left: 100%;
}

/* ===== BLOG SIDEBAR ===== */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    font-weight: 600;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 12px;
}

.category-list a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.category-count {
    color: #adb5bd;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recent-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-list li:hover {
    transform: translateX(5px);
}

.recent-posts-list a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-posts-list a:hover {
    color: #667eea;
}

.recent-posts-list .post-date {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* ===== SEARCH FORM ===== */
.search-form .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form .input-group:focus-within {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.search-form .form-control {
    border: none;
    padding: 12px 15px;
    background: #f8f9fa;
}

.search-form .form-control:focus {
    background: white;
    box-shadow: none;
}

.search-form .btn {
    border: none;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===== BLOG POST CONTENT ===== */
.blog-post-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-body h1 { font-size: 2.2rem; }
.post-body h2 { font-size: 1.8rem; }
.post-body h3 { font-size: 1.5rem; }
.post-body h4 { font-size: 1.3rem; }

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

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.post-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.post-body code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.post-body pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: #2c3e50;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body th, .post-body td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-body th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.post-body tr:hover {
    background: #f8f9fa;
}

/* ===== POST TAGS ===== */
.post-tags {
    margin-bottom: 30px;
}

.post-tags h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-1px);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

/* ===== RELATED POSTS ===== */
.related-posts {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
}

.related-posts h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    gap: 20px;
}

.related-post-card {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.related-post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: white;
}

.related-post-card h4 {
    margin-bottom: 10px;
}

.related-post-card h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-card h4 a:hover {
    color: #667eea;
}

.related-post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.related-post-meta .post-category a {
    color: #667eea;
    text-decoration: none;
}

/* ===== AUTHOR INFO ===== */
.author-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.author-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.author-info p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* ===== NEWSLETTER FORM ===== */
.newsletter-form .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-form .input-group:focus-within {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 15px;
    background: #f8f9fa;
}

.newsletter-form .form-control:focus {
    background: white;
    box-shadow: none;
}

.newsletter-form .btn {
    border: none;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===== NO POSTS/RESULTS ===== */
.no-posts,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-posts h3,
.no-results h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.no-posts p,
.no-results p {
    margin-bottom: 20px;
}

.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.search-suggestions h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.search-suggestions li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.search-suggestions a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-suggestions a:hover {
    color: #764ba2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .blog-hero .hero-title,
    .blog-post-hero .hero-title,
    .blog-category-hero .hero-title,
    .blog-search-hero .hero-title {
        font-size: 2rem;
    }
    
    .blog-post-card {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-post-content {
        padding: 25px;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .search-suggestions {
        max-width: 100%;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .blog-hero,
    .blog-post-hero,
    .blog-category-hero,
    .blog-search-hero {
        padding: 60px 0;
    }
    
    .blog-post-card {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
} 