/* ========================================
   BLOG PAGE STYLES
   ======================================== */

/* Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-gradient {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

.btn-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.blog-hero > p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Search Bar */
.blog-search {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.blog-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
}

.blog-search button {
    padding: 15px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.blog-search button:hover {
    transform: scale(1.05);
}

/* Category Filter */
.blog-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.category-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: white;
    color: #667eea;
}

/* Featured Post */
.featured-post {
    padding: 60px 20px;
    background: #f9f9f9;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FF6B6B;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 2rem;
    margin: 20px 0;
    line-height: 1.3;
}

.featured-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-content h2 a:hover {
    color: #667eea;
}

.featured-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.category-badge {
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.category-badge.food {
    background: #FFE5E5;
    color: #FF6B6B;
}

.category-badge.activities {
    background: #E5F5FF;
    color: #4A90E2;
}

.category-badge.culture {
    background: #FFF5E5;
    color: #F5A623;
}

.category-badge.tips {
    background: #E5FFE5;
    color: #4CAF50;
}

.category-badge.nightlife {
    background: #F0E5FF;
    color: #9C27B0;
}

.category-badge.budget {
    background: #E5FFF5;
    color: #00BFA5;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s;
}

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

/* Blog Grid */
.blog-grid {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin: 15px 0;
    line-height: 1.4;
}

.card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.card-content h3 a:hover {
    color: #667eea;
}

.card-content > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-time {
    color: #999;
    font-size: 0.9rem;
}

.read-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.read-link:hover {
    transform: translateX(3px);
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 50px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter-content > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Blog CTA */
.blog-cta {
    padding: 80px 20px;
    text-align: center;
    background: #f9f9f9;
}

.blog-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-cta p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .blog-search {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ============================================
   ADD THIS TO css/blog.css
   (Add at the end of the file, before closing)
============================================= */

/* Pagination animations */
.blog-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.blog-card.hidden-article {
    opacity: 0;
    transform: translateY(20px);
}

/* Load More Button animations */
.load-more-section {
    transition: opacity 0.3s ease;
}

.load-more-section button {
    position: relative;
    overflow: hidden;
}

.load-more-section button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.load-more-section button:hover::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   ARTICLE PAGE SPECIFIC STYLES
   Only applies to individual article pages
   ======================================== */

/* Override body background for article pages only */
body.article-page {
    background: #f8f9fa !important;
}

body.article-page.dark-mode {
    background: #0a0a0a !important;
}

/* Article Hero Section */
.article-page .article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
}

.article-page .article-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-page .article-hero .post-meta {
    color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    font-size: 1rem;
}

.article-page .article-hero .category-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Main Article Content Container - LIGHT MODE */
.article-page .article-container {
    max-width: 800px;
    margin: -60px auto 80px;
    padding: 60px 50px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Article Body Typography - LIGHT MODE */
.article-page .article-body h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 25px;
    line-height: 1.3;
}

.article-page .article-body h3 {
    color: #2d2d2d;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px;
}

.article-page .article-body h4 {
    color: #333333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.article-page .article-body p {
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 25px;
}

.article-page .article-body ul,
.article-page .article-body ol {
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 25px 0;
    padding-left: 35px;
}

.article-page .article-body li {
    margin-bottom: 15px;
}

.article-page .article-body strong {
    color: #1a1a1a;
    font-weight: 600;
}

.article-page .article-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: border-color 0.3s;
}

.article-page .article-body a:hover {
    border-bottom-color: #667eea;
}

/* Quick Navigation / Table of Contents - LIGHT MODE */
.article-page .quick-navigation,
.article-page .table-of-contents {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
}

.article-page .quick-navigation h2,
.article-page .table-of-contents h2 {
    color: #1a1a1a;
    font-size: 1.4rem;
    margin: 0 0 20px;
    font-weight: 700;
}

.article-page .quick-navigation ul,
.article-page .table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-page .quick-navigation li,
.article-page .table-of-contents li {
    margin-bottom: 12px;
}

.article-page .quick-navigation a,
.article-page .table-of-contents a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
}

.article-page .quick-navigation a:hover,
.article-page .table-of-contents a:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

/* Pro Tips / Callout Boxes - LIGHT MODE */
.article-page .pro-tip,
.article-page .tip-box,
.article-page .callout-box {
    background: #F0F9FF;
    border-left: 5px solid #667eea;
    padding: 25px 30px;
    margin: 35px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.article-page .pro-tip p,
.article-page .tip-box p,
.article-page .callout-box p {
    color: #1e40af;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Article Images */
.article-page .article-body img {
    width: 100%;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Section Dividers */
.article-page .article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e9ecef, transparent);
    margin: 50px 0;
}

/* ========================================
   DARK MODE VARIANT (Optional)
   Add class "dark-mode" to body to activate
   ======================================== */

/* Dark Mode Container */
body.article-page.dark-mode .article-container {
    background: #141414;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Typography */
body.article-page.dark-mode .article-body h2 {
    color: #ffffff;
}

body.article-page.dark-mode .article-body h3 {
    color: #f0f0f0;
}

body.article-page.dark-mode .article-body h4 {
    color: #e5e5e5;
}

body.article-page.dark-mode .article-body p,
body.article-page.dark-mode .article-body li {
    color: #d1d1d1;
}

body.article-page.dark-mode .article-body strong {
    color: #ffffff;
}

body.article-page.dark-mode .article-body a {
    color: #818CF8;
    border-bottom-color: rgba(129, 140, 248, 0.3);
}

body.article-page.dark-mode .article-body a:hover {
    border-bottom-color: #818CF8;
}

/* Dark Mode Quick Nav */
body.article-page.dark-mode .quick-navigation,
body.article-page.dark-mode .table-of-contents {
    background: #1f1f1f;
    border-color: #2a2a2a;
}

body.article-page.dark-mode .quick-navigation h2,
body.article-page.dark-mode .table-of-contents h2 {
    color: #ffffff;
}

body.article-page.dark-mode .quick-navigation a,
body.article-page.dark-mode .table-of-contents a {
    color: #818CF8;
}

body.article-page.dark-mode .quick-navigation a:hover,
body.article-page.dark-mode .table-of-contents a:hover {
    background: rgba(129, 140, 248, 0.15);
}

/* Dark Mode Callouts */
body.article-page.dark-mode .pro-tip,
body.article-page.dark-mode .tip-box,
body.article-page.dark-mode .callout-box {
    background: #1a1f2e;
    border-left-color: #818CF8;
}

body.article-page.dark-mode .pro-tip p,
body.article-page.dark-mode .tip-box p,
body.article-page.dark-mode .callout-box p {
    color: #c7d2fe;
}

/* Dark Mode Dividers */
body.article-page.dark-mode .article-body hr {
    background: linear-gradient(to right, transparent, #2a2a2a, transparent);
}

/* ========================================
   RESPONSIVE FOR ARTICLE PAGES
   ======================================== */
@media (max-width: 768px) {
    .article-page .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-page .article-container {
        margin: -40px 16px 40px;
        padding: 40px 25px;
    }
    
    .article-page .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-page .article-body p {
        font-size: 1rem;
    }
    
    .article-page .quick-navigation,
    .article-page .table-of-contents {
        padding: 20px;
    }
}
