/*
Theme Name: KDPositive Gaming
Theme URI: https://kdpositive.com
Author: KDPositive Team
Author URI: https://kdpositive.com
Description: A dark-themed gaming website with reviews, guides, and news. Features a modern design with neon accents, custom post types, game tag taxonomy, AJAX search, and featured content carousel.
Version: 2.0
License: GPL v2 or later
Text Domain: kdpositive
Tags: gaming, dark, blog, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, custom-post-types, ajax-search
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Network: false
*/

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #656d76;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-yellow: #ffd700;
    --border-color: #30363d;
    --hover-bg: #262c36;
    --success: #238636;
    --danger: #da3633;
    --warning: #0ea5e9;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Orbitron', monospace;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

/* Navigation Menu */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--accent-primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.menu-toggle:hover {
    color: var(--accent-primary);
}

/* Content Areas */
.site-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* Homepage now uses same card structure as archives */



.article-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid Layouts */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: 60px; /* Add space before footer */
}

/* Featured Carousel */
.featured-carousel {
    margin-bottom: var(--spacing-xxl);
    position: relative;
}

.carousel-item {
    position: relative;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* Categories */
.category-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--accent-secondary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-decoration: none;
}

/* Unified Post Type Badges */
.post-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
}

.post-type-badge.guide {
    background: rgba(0, 0, 0, 0.8);
}

.post-type-badge.news {
    background: rgba(0, 0, 0, 0.8);
}

.post-type-badge.review {
    background: rgba(0, 0, 0, 0.8);
}

.post-type-badge.post {
    background: rgba(0, 0, 0, 0.8);
}

/* Image Positioning */
.article-image img,
.featured-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Default center position */
.article-image img {
    object-position: center center;
}

/* Featured carousel specific image positioning */
.featured-article .featured-image img {
    object-position: center center;
}

/* Image position classes */
.image-position-top-center img { object-position: top center; }
.image-position-bottom-center img { object-position: bottom center; }
.image-position-center-left img { object-position: center left; }
.image-position-center-right img { object-position: center right; }
.image-position-top-left img { object-position: top left; }
.image-position-top-right img { object-position: top right; }
.image-position-bottom-left img { object-position: bottom left; }
.image-position-bottom-right img { object-position: bottom right; }

/* Ratings */
.rating {
    display: flex;
    gap: 0.25rem;
    color: var(--accent-yellow);
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        display: none;
        z-index: 999;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .welcome-content h1 {
        font-size: 2rem;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .container {
        padding: 0 24px;
    }
}

/* Medium Mobile - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .content-section {
        text-align: center;
    }
    
    .content-section .container {
        margin: 0 auto;
    }
    
    .main-grid {
        margin: 0 auto;
    }
    
    .section-header {
        text-align: center;
    }
    
    .articles-grid {
        justify-items: center;
    }
}

/* iPhone 12 Pro - 390px and below */
@media (max-width: 390px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 18px;
    }
    
    .search-form input[type="search"] {
        padding-right: 40px;
    }
    
    .search-input {
        padding-right: 40px;
    }
    
    .content-section {
        text-align: center;
    }
    
    .content-section .container {
        margin: 0 auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main-grid {
        width: 100%;
        margin: 0 auto;
    }
    
    .content-area {
        margin: 0 auto;
        text-align: center;
    }
}

/* iPhone SE - 375px and below */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .search-form input[type="search"] {
        padding-right: 38px;
    }
    
    .search-input {
        padding-right: 38px;
    }
    
    .content-section {
        text-align: center;
        padding: var(--spacing-lg) 0;
    }
    
    .content-section .container {
        margin: 0 auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main-grid {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .content-area {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .articles-grid {
        justify-items: center;
        width: 100%;
    }
    
    .article-card {
        margin: 0 auto;
    }
}

/* Archive Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px; /* Space before pagination */
}

/* Pagination Styles */
.posts-pagination {
    margin-top: 40px;
    margin-bottom: 60px; /* Space before footer */
    text-align: center;
}

.posts-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.posts-pagination a,
.posts-pagination span {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.posts-pagination a:hover,
.posts-pagination .current {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.guides-grid,
.news-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Archive Card Styles - Unified Layout */
.guide-card,
.news-card,
.review-card,
.post-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-height: 400px; /* Ensure consistent height */
    padding: 0 !important; /* Remove any external padding */
    margin: 0; /* Remove any external margin */
}

.guide-card:hover,
.news-card:hover,
.post-card:hover,
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.guide-image,
.news-image,
.review-image,
.post-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* Fixed height for consistency */
}

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

.guide-card:hover .guide-image img,
.news-card:hover .news-image img,
.review-card:hover .review-image img,
.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Archive Card Content - Unified Padding */
.guide-card .guide-content,
.news-card .news-content,
.review-card .review-content,
.post-card .post-content {
    padding: 20px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 !important; /* Remove any margin that might be causing extra spacing */
    background: transparent !important; /* Ensure no background color overrides */
}

/* Force WordPress post classes to not interfere with card styling */
.news-card.post,
.review-card.post,
.guide-card.post,
.post-card.post {
    background: var(--bg-card) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure hentry class doesn't interfere */
.news-card.hentry,
.review-card.hentry,
.guide-card.hentry,
.post-card.hentry {
    background: var(--bg-card) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Unified Archive Card Titles */
.guide-title,
.news-title,
.review-title,
.post-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
}

.guide-title a,
.news-title a,
.review-title a,
.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-title a:hover,
.news-title a:hover,
.review-title a:hover,
.post-title a:hover {
    color: var(--accent-primary);
}

.guide-meta,
.news-meta,
.review-meta,
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guide-excerpt,
.news-excerpt,
.review-excerpt,
.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 1rem;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    text-align: center;
    border: 1px solid transparent;
}

.read-more:hover {
    color: var(--bg-primary);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Review Card Rating Display */
.review-card .review-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-card .review-rating .rating-stars {
    color: #ffd700;
    font-size: 1rem;
}

.review-card .review-rating .rating-number {
    color: white;
}

/* Post Type Badges */
.post-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.post-type-badge.review {
    background: #ffd700;
    color: #000;
}

.post-type-badge.news {
    background: #ff6b35;
}

.post-type-badge.guide {
    background: #7c3aed;
}

.post-type-badge.post {
    background: #4a5568;
}

/* Badge Styles */
.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-easy {
    background: #10b981;
    color: white;
}

.difficulty-medium {
    background: #f59e0b;
    color: white;
}

.difficulty-hard {
    background: #ef4444;
    color: white;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.category-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Archive Filter Options */
.filter-options {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.filter-tags, .sort-options {
    margin-bottom: 0;
}

.filter-tags h3, .sort-options h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.tag-filter-list, .sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tag-filter, .sort-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tag-filter:hover, .sort-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.tag-filter.all-reviews {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Single Review Styles */
.single-review .review-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.review-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-type-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-weight: 600;
}

.review-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.review-rating-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    font-size: 1.5rem;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.score-divider, .score-max {
    color: var(--text-muted);
    font-weight: 400;
}

.rating-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-featured-image {
    margin-bottom: 20px;
    text-align: center;
}

.review-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.review-content-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.review-main-content {
    max-width: none;
    width: 100%;
}

.review-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.review-content p {
    margin-bottom: 1.5rem;
}

.review-content h2,
.review-content h3,
.review-content h4 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.review-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-title {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.pros-cons-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.review-pros,
.review-cons {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.pros-title,
.cons-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-title:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.cons-title:before {
    content: "✗";
    color: #ef4444;
    font-weight: bold;
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
}

.pros-list li,
.cons-list li {
    padding: 5px 0;
    color: var(--text-color);
}

.review-verdict {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--secondary-color);
}

.verdict-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.verdict-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* Single Guide Styles */
.single-guide .guide-header {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.guide-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guide-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.guide-featured-image {
    margin-bottom: 20px;
    text-align: center;
}

.guide-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.guide-excerpt {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 15px;
    line-height: 1.6;
}

/* Standardized Post Icons */
.post-type-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-weight: 600;
}

.guide-icon,
.review-icon,
.news-icon {
    font-size: 1.2rem;
}

/* Single News Styles - Match Review Layout */
.single-news .news-header {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 30px;
}

.news-main-content {
    min-width: 0;
}

.news-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.news-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.latest-news-widget,
.related-news-widget {
    margin-bottom: 30px;
}

.latest-news-widget:last-child,
.related-news-widget:last-child {
    margin-bottom: 0;
}

.latest-news-widget .widget-title,
.related-news-widget .widget-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.latest-news-item,
.related-news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-news-item:last-child,
.related-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-news-image,
.related-news-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.latest-news-content,
.related-news-content {
    flex: 1;
}

.latest-news-title,
.related-news-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.latest-news-title a,
.related-news-title a {
    color: var(--text-color);
    text-decoration: none;
}

.latest-news-title a:hover,
.related-news-title a:hover {
    color: var(--accent-primary);
}

.latest-news-meta,
.related-news-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Unified Meta Information Styling */
.post-meta,
.news-meta,
.review-meta,
.guide-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-type-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-date,
.news-date,
.review-date,
.guide-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.post-author,
.news-author,
.review-author,
.guide-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.post-author a,
.news-author a,
.review-author a,
.guide-author a {
    color: var(--text-color);
    text-decoration: none;
}

.post-author a:hover,
.news-author a:hover,
.review-author a:hover,
.guide-author a:hover {
    color: var(--accent-primary);
}

/* Unified Widget Styling */
.widget-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 8px;
    display: block;
}

.news-sidebar .widget-title,
.review-sidebar .widget-title,
.guide-sidebar .widget-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 8px;
}

/* Unified Related Item Styling - Card Format */
.related-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.related-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.related-item:last-child {
    margin-bottom: 0;
}

.related-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.related-item:hover .related-item-image img {
    transform: scale(1.05);
}

.related-item-content {
    flex: 1;
}

.related-item-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-item-title a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
}

.related-item-title a:hover {
    color: var(--accent-primary);
}

.related-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
    align-items: center;
}

.related-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News Tags */
.news-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-tags .tags-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.news-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* News Source */
.news-source {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-source .source-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.source-link {
    color: var(--accent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.source-link:hover {
    text-decoration: underline;
}

/* News Summary */
.news-summary {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.news-summary .summary-title {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Breaking News Badge */
.breaking-news-badge {
    background: var(--danger);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-sidebar {
        position: static;
        order: 1;
    }
    
    .news-main-content {
        order: 2;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-sidebar {
        padding: 20px;
    }
}

.news-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.news-featured-image {
    margin-bottom: 20px;
    text-align: center;
}

.news-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

.news-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-left: 4px solid var(--secondary-color);
}

.summary-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.summary-content {
    color: var(--text-color);
    line-height: 1.6;
}

.news-content-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-main-content {
    max-width: none;
    width: 100%;
}

.news-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-source {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.source-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.source-link:hover {
    text-decoration: underline;
}

.external-icon {
    margin-left: 5px;
    font-size: 0.8rem;
}

.breaking-news-badge {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breaking-icon {
    font-size: 0.9rem;
}

/* News Social Sharing */
.news-sharing {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sharing-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.social-share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.share-btn .share-icon {
    font-size: 1.2rem;
}

.share-btn .share-text {
    font-size: 0.9rem;
}

/* Individual share button colors */
.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-reddit:hover {
    background: #ff4500;
    border-color: #ff4500;
}

.share-copy:hover {
    background: #6c757d;
    border-color: #6c757d;
}

/* Generic social sharing styles for all post types */
.social-sharing {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-content .social-sharing,
.guide-content .social-sharing {
    margin-top: 30px;
    margin-bottom: 0;
}

.breaking-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Guide Layout Structure - Match Review Layout */
.single-guide .guide-header {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.guide-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 30px;
}

.guide-main-content {
    min-width: 0;
}

.single-guide .guide-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.guide-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.guide-nav-widget,
.related-guides-widget {
    margin-bottom: 30px;
}

.guide-nav-widget:last-child,
.related-guides-widget:last-child {
    margin-bottom: 0;
}

.guide-nav-widget .widget-title,
.related-guides-widget .widget-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.guide-nav-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-nav-title a {
    color: var(--accent-primary);
    text-decoration: none;
}

.guide-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-nav li {
    margin-bottom: 8px;
}

.guide-nav li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.guide-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
}

.guide-nav li.current-page a {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.related-guide-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.related-guide-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-guide-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.related-guide-content {
    flex: 1;
}

.related-guide-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.related-guide-title a {
    color: var(--text-color);
    text-decoration: none;
}

.related-guide-title a:hover {
    color: var(--accent-primary);
}

.related-guide-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Guide Tags */
.guide-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-tags .tags-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.guide-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.guide-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Mobile Layout */
@media (max-width: 768px) {
    .guide-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guide-sidebar {
        position: static;
        order: 1;
    }
    
    .guide-main-content {
        order: 2;
    }
    
    .single-guide .guide-content {
        padding: 20px;
    }
    
    .guide-sidebar {
        padding: 20px;
    }
}


.guide-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-pagination a {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 45%;
}

.guide-pagination a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.guide-pagination .nav-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.guide-pagination .nav-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.guide-pagination .next-guide {
    text-align: right;
    margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-options {
        padding: 15px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tag-filter-list, .sort-buttons {
        justify-content: center;
    }
    
    .review-meta, .guide-meta, .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-title, .guide-title, .news-title {
        font-size: 2rem;
    }
    
    .review-rating-section {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Guide Navigation Mobile Styles */
    .single-guide {
        padding: 0 15px;
    }
    
    .guide-nav-sidebar {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* Fix guide navigation width on mobile to match content width */
    .guide-sidebar {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .guide-nav-widget {
        width: 100%;
    }
    
    .guide-nav ul {
        width: 100%;
    }
    
    .guide-nav li a {
        width: 100%;
        box-sizing: border-box;
    }
    
    .single-guide .guide-content {
        padding: 25px;
    }
    
    .guide-nav-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .guide-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .guide-nav li {
        margin-bottom: 0;
    }
    
    .guide-nav li a {
        padding: 8px 12px;
        font-size: 0.9rem;
        border-left: none;
        border-radius: 15px;
    }
    
    .guide-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .guide-pagination a {
        max-width: 100%;
    }
    
    .guide-pagination .next-guide {
        text-align: left;
        margin-left: 0;
    }
    
    /* Archive Cards Mobile */
    .posts-grid,
    .guides-grid,
    .news-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .guide-card .guide-content,
    .news-card .news-content,
    .review-card .review-content {
        padding: 15px;
    }
    
    .category-buttons {
        justify-content: center;
    }
    
    /* Single Post Content Mobile */
    .review-content-wrapper,
    .news-content-wrapper {
        padding: 25px;
        margin-top: 15px;
    }
    
    .pros-cons-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-summary,
    .news-source {
        padding: 20px;
        margin-top: 20px;
    }
    
    .review-content,
    .news-content {
        font-size: 1rem;
    }
    
    .review-content h2,
    .review-content h3,
    .review-content h4,
    .news-content h2,
    .news-content h3,
    .news-content h4 {
        margin-top: 1.5rem;
        font-size: 1.4rem;
    }
    
    .guide-card .guide-content,
    .news-card .news-content,
    .review-card .review-content {
        padding: 18px;
    }
    
    .guide-title,
    .news-title,
    .review-title,
    .post-title {
        font-size: 1.2rem;
    }
    
    .read-more {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Enhanced Mobile Support for iPhone 12 Pro and similar devices */
@media (max-width: 390px) {
    /* Single Post Mobile Improvements */
    .single-news .news-header,
    .single-review .review-header,
    .single-guide .guide-header {
        margin: 0 auto 20px;
        padding: 15px;
        text-align: center;
    }
    
    .news-content-wrapper,
    .review-content-wrapper,
    .guide-content-wrapper {
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .news-content,
    .review-content,
    .single-guide .guide-content {
        padding: 18px;
        margin: 0 auto 20px;
    }
    
    .news-sidebar,
    .review-sidebar,
    .guide-sidebar {
        padding: 15px;
        margin: 0 auto;
    }
    
    /* Archive Cards Mobile Improvements */
    .posts-grid {
        justify-items: center;
        padding: 0 10px;
    }
    
    .guide-card,
    .news-card,
    .review-card,
    .post-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    /* Card content/snippets mobile optimization */
    .guide-card .guide-content,
    .news-card .news-content,
    .review-card .review-content,
    .post-card .post-content {
        padding: 18px;
    }
    
    .guide-card p,
    .news-card p,
    .review-card p,
    .post-card p {
        width: 100%;
        max-width: 100%;
    }
    
    /* Homepage Article Cards */
    .articles-grid {
        justify-items: center;
        padding: 0 10px;
    }
    
    .article-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
}