
/* ============================================
   PAHADIKALA BLOG - COMPLETE CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
    --primary: #b22222;
    --primary-dark: #8b1a1a;
    --primary-light: #e85d5d;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #6b6b6b;
    --border: #e5e5e5;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background: var(--bg-white);
}

/* ========== CONTAINER & LAYOUT ========== */
.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    padding: 60px 0 80px;
}

.blog-main {
    min-width: 0;
}

/* ========== HERO SECTION (Listing Page) ========== */
.blog-hero {
    background: linear-gradient(135deg, #faf6f0 0%, #fef9f5 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search {
    max-width: 480px;
    margin: 40px auto 0;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    transition: all 0.2s;
}

.hero-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(178,34,34,0.1);
}

.hero-search button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
}

/* ========== FEATURED CARDS (Listing Page) ========== */
.featured-section {
    margin-bottom: 80px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.featured-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.featured-card-link {
    text-decoration: none;
    display: block;
}

.featured-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.03);
}

.featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 30px;
}

.featured-card-content {
    padding: 24px;
}

.featured-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.featured-meta i {
    margin-right: 4px;
}

.featured-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.featured-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.featured-footer .author {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    cursor: pointer;
}

.featured-card:hover .read-more {
    gap: 10px;
}

/* ========== ARTICLE CARDS (Listing Page) ========== */
.articles-section {
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.article-card-link {
    text-decoration: none;
    display: block;
}

.article-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.03);
}

.article-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
}

.article-card-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.article-meta i {
    margin-right: 4px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.read-more-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    cursor: pointer;
}

.article-card:hover .read-more-link {
    gap: 10px;
}

/* ========== SIDEBAR (Both Pages) ========== */
.blog-sidebar {
    min-width: 0;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--primary);
}

.category-count {
    color: var(--text-light);
    font-size: 12px;
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 20px;
}

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-badge {
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
}

.topic-badge:hover {
    background: var(--primary);
    color: white;
}

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

.recent-post {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-link {
    display: flex;
    gap: 14px;
    text-decoration: none;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.recent-post-link:hover .recent-post-title {
    color: var(--primary);
}

.recent-post-date {
    font-size: 11px;
    color: var(--text-light);
}

/* ========== SINGLE POST (Detail Page) ========== */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 48px;
}

.post-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 30px;
    text-decoration: none;
    margin-bottom: 24px;
}

.post-category:hover {
    background: var(--primary);
    color: white;
}

.post-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-featured-image {
    margin: 0 0 48px 0;
    border-radius: 24px;
    overflow: hidden;
}

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

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.post-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 24px;
}

.post-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 32px 0;
}

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: normal;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

.post-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.post-topic {
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
}

.post-topic:hover {
    background: var(--primary);
    color: white;
}

.post-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
    cursor: pointer;
    border: none;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question.active {
    background: var(--primary);
    color: white;
}

.faq-question i {
    transition: transform 0.2s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Related Products */
.related-products {
    margin-bottom: 60px;
}

.related-products h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

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

.product-card-image {
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-card-content {
    padding: 16px;
    text-align: center;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.add-to-cart {
    width: 100%;
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-cart:hover {
    background: var(--primary);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-post-card {
    text-decoration: none;
    display: block;
}

.related-post-image {
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.related-post-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.related-post-card:hover .related-post-title {
    color: var(--primary);
}

.related-post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.empty-state-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.empty-state-btn:hover {
    background: var(--primary-dark);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination li a, 
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .blog-sidebar {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 0 20px;
    }
    
    .blog-layout {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured-card-image {
        height: 220px;
    }
    
    .featured-card-title {
        font-size: 20px;
    }
    
    /* Detail page responsive */
    .single-post {
        padding: 40px 0;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    .products-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-search input {
        padding: 12px 45px 12px 16px;
        font-size: 14px;
    }
    
    .featured-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-share {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

/* Utility Classes */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 14px;
}

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 12px;
}