/**
 * Project vs Blog - Page Type Distinction CSS
 * Phân biệt rõ ràng giữa Trang Dự án (Products) và Trang Tin tức (Posts)
 * 
 * @package ATH_ATRAHI_DESIGN
 * @version 3.1.0
 */

/* ============================================
   DỰ ÁN / CÔNG TRÌNH (PRODUCTS)
   - Sử dụng theme tối với điểm nhấn vàng gold
   - Thiết kế sang trọng, chuyên nghiệp
   ============================================ */

/* Product/Project Landing Page */
.product-landing-page,
.single-product,
.single-atrahi_project {
    --page-bg: #0f0f0f;
    --page-bg-secondary: #1a1a1a;
    --page-text: #ffffff;
    --page-text-secondary: #e0e0e0;
    --page-accent: #b99d63;
    --page-accent-hover: #d4b877;
    --page-border: #333333;
    --page-card-bg: #1e1e1e;
}

/* TIN TỨC / BLOG (POSTS)
   - Sử dụng theme sáng với điểm nhấn xanh/gold
   - Thiết kế dễ đọc, thân thiện SEO
   ============================================ */
.single-post,
.blog,
.archive.category,
.search-results {
    --page-bg: #f8f9fa;
    --page-bg-secondary: #ffffff;
    --page-text: #333333;
    --page-text-secondary: #555555;
    --page-accent: #b99d63;
    --page-accent-hover: #a08850;
    --page-border: #e5e5e5;
    --page-card-bg: #ffffff;
}

/* ============================================
   PROJECT PAGE - HERO SECTION FIX
   ============================================ */
.product-landing-page .product-hero-section {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 120px 0 40px;
}

.product-landing-page .product-hero-title {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Breadcrumb for Projects - high contrast */
.product-landing-page .product-breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
}

.product-landing-page .product-breadcrumb a {
    color: #cccccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.product-landing-page .product-breadcrumb a:hover {
    color: #b99d63;
}

.product-landing-page .product-breadcrumb .sep {
    color: rgba(255,255,255,0.4);
    margin: 0 8px;
}

.product-landing-page .product-breadcrumb .current {
    color: #b99d63;
    font-weight: 600;
}

/* ============================================
   PROJECT - INFO CARDS (Stats Section)
   ============================================ */
.product-landing-page .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.product-landing-page .info-card {
    background: linear-gradient(145deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.product-landing-page .info-card:hover {
    border-color: #b99d63;
    box-shadow: 0 8px 32px rgba(185, 157, 99, 0.15);
    transform: translateY(-4px);
}

.product-landing-page .info-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(185, 157, 99, 0.2) 0%, rgba(185, 157, 99, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-landing-page .info-card-icon svg {
    width: 28px;
    height: 28px;
    color: #b99d63;
}

.product-landing-page .info-card-content {
    flex: 1;
}

.product-landing-page .info-card-label {
    display: block;
    color: #999999;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-landing-page .info-card-value {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-landing-page .info-card-value a {
    color: #b99d63;
    text-decoration: none;
}

.product-landing-page .info-card-value a:hover {
    text-decoration: underline;
}

/* ============================================
   PROJECT - SECTION TITLES
   ============================================ */
.product-landing-page .section-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid #b99d63;
}

.product-landing-page .section-title .title-icon {
    font-size: 1.5rem;
}

/* ============================================
   PROJECT - CONTENT PROSE
   ============================================ */
.product-landing-page .prose,
.product-landing-page .section-content {
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 32px;
}

.product-landing-page .prose p,
.product-landing-page .section-content p {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-landing-page .prose h2,
.product-landing-page .prose h3,
.product-landing-page .prose h4 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-landing-page .prose a {
    color: #b99d63;
}

.product-landing-page .prose ul,
.product-landing-page .prose ol {
    color: #e0e0e0;
    padding-left: 1.5rem;
}

.product-landing-page .prose li {
    margin-bottom: 0.5rem;
}

/* ============================================
   PROJECT - IMAGE GALLERY
   ============================================ */
.product-landing-page .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-landing-page .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-landing-page .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-landing-page .gallery-item:hover img {
    transform: scale(1.05);
}

.product-landing-page .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-landing-page .gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   BLOG / TIN TỨC - STYLING
   ============================================ */
.single-post .post-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.single-post .post-single-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 24px;
    line-height: 1.3;
}

.single-post .post-categories {
    margin-bottom: 20px;
}

.single-post .post-cat-link {
    display: inline-block;
    background: linear-gradient(135deg, #b99d63 0%, #d4b877 100%);
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 4px;
}

.single-post .post-meta-single {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #cccccc;
    font-size: 0.95rem;
}

.single-post .post-meta-single svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.single-post .meta-separator {
    color: rgba(255,255,255,0.3);
}

.single-post .post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-post .post-author img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* Blog Content */
.single-post .entry-content {
    background: #ffffff;
    max-width: 800px;
    margin: -40px auto 0;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.single-post .entry-content p {
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.single-post .entry-content h2 {
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-content h3 {
    color: #333333;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.single-post .entry-content a {
    color: #b99d63;
    text-decoration: underline;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    color: #444444;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single-post .entry-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.single-post .entry-content blockquote {
    background: linear-gradient(90deg, rgba(185, 157, 99, 0.1) 0%, transparent 100%);
    border-left: 4px solid #b99d63;
    padding: 20px 30px;
    margin: 2rem 0;
    font-style: italic;
    color: #555555;
}

/* ============================================
   BLOG ARCHIVE / LISTING PAGE
   ============================================ */
.blog .post-card,
.archive .post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

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

.blog .post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.blog .post-card-content {
    padding: 24px;
}

.blog .post-card-title {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog .post-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog .post-card-title a:hover {
    color: #b99d63;
}

.blog .post-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog .post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #888888;
    font-size: 0.85rem;
}

/* ============================================
   PROJECT ARCHIVE / LISTING PAGE
   ============================================ */
.projects-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card-v4 {
    background: linear-gradient(145deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #333333;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card-v4:hover {
    border-color: #b99d63;
    box-shadow: 0 16px 48px rgba(185, 157, 99, 0.2);
    transform: translateY(-8px);
}

.project-card-v4 .project-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.project-card-v4:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-v4 .project-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, rgba(185, 157, 99, 0.95) 0%, rgba(185, 157, 99, 0.85) 100%);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-card-v4 .project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-v4:hover .project-card-overlay {
    opacity: 1;
}

.project-card-v4 .view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b99d63;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card-v4:hover .view-project-btn {
    transform: translateY(0);
}

.project-card-v4 .view-project-btn svg {
    width: 18px;
    height: 18px;
}

.project-card-v4 .project-card-content {
    padding: 24px;
}

.project-card-v4 .project-card-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-card-v4 .project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.project-card-v4 .project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #999999;
    font-size: 0.85rem;
}

.project-card-v4 .project-meta-item svg {
    width: 16px;
    height: 16px;
    color: #b99d63;
}

/* ============================================
   RELATED PROJECTS / POSTS SECTIONS
   ============================================ */
.related-projects-section {
    background: #0f0f0f;
    padding: 80px 0;
    border-top: 1px solid #333333;
}

.related-projects-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.related-projects-section .section-header h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.related-projects-section .section-header p {
    color: #999999;
    font-size: 1.1rem;
    margin-top: 12px;
}

/* Related Posts (Blog) */
.related-posts-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.related-posts-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.related-posts-section .section-header h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
}

.related-posts-section .section-header p {
    color: #666666;
    font-size: 1.1rem;
    margin-top: 12px;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
/* Project CTA - Dark Theme */
.project-cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #333333;
}

.project-cta-section h2 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-cta-section p {
    color: #cccccc;
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-cta-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #b99d63 0%, #d4b877 100%);
    color: #1a1a1a;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(185, 157, 99, 0.3);
}

.project-cta-section .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(185, 157, 99, 0.4);
}

/* Blog CTA - Light Theme */
.blog-cta-section {
    background: linear-gradient(135deg, #b99d63 0%, #c9ad73 100%);
    padding: 60px 0;
    text-align: center;
}

.blog-cta-section h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-cta-section p {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.blog-cta-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.blog-cta-section .cta-btn:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 992px) {
    .product-landing-page .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-landing-page .product-hero-section {
        padding: 100px 0 30px;
    }
    
    .product-landing-page .product-hero-title {
        font-size: 1.75rem;
    }
    
    .product-landing-page .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .product-landing-page .info-card {
        padding: 20px;
    }
    
    .product-landing-page .prose,
    .product-landing-page .section-content {
        padding: 24px;
    }
    
    .projects-grid-v4 {
        grid-template-columns: 1fr;
    }
    
    .single-post .post-header {
        padding: 120px 0 40px;
    }
    
    .single-post .entry-content {
        padding: 24px;
        margin: -20px 16px 0;
    }
    
    .project-cta-section,
    .blog-cta-section {
        padding: 60px 20px;
    }
    
    .project-cta-section h2,
    .blog-cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .product-landing-page .product-hero-title {
        font-size: 1.5rem;
    }
    
    .single-post .post-single-title {
        font-size: 1.5rem;
    }
    
    .product-landing-page .section-title {
        font-size: 1.4rem;
    }
    
    .project-card-v4 .project-card-content {
        padding: 16px;
    }
}
