/*
Theme Name: InspireFlow
Description: Ein modernes WordPress-Theme für Medienrezensionen und Blog-Beiträge
Version: 1.0
Author: Sarah Ghenzi
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #FF6B6B;
    --primary-dark: #E53E3E;
    --secondary-color: #FFE66D;
    --accent-color: #4ECDC4;
    
    /* Neutral Colors */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --background-light: #FFF8F0;
    --background-white: #FFFFFF;
    
    /* Gradient Colors */
    --gradient-start: #FF6B6B;
    --gradient-end: #FFE66D;
    
    /* Status Colors */
    --success-color: #4ECDC4;
    --warning-color: #FFE66D;
    --error-color: #FF6B6B;
    
    /* Legacy variables for compatibility */
    --background-dark: #111827;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Image specific variables */
    --image-bg-gradient: linear-gradient(135deg, var(--background-light), rgba(255, 107, 107, 0.05));
    --image-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --image-border-radius: 8px;
    --image-padding: 1rem;
}

/* General Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--gradient-start);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-logo .logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 120px 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain !important;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 230, 109, 0.3) 100%);
    padding: var(--image-padding);
    border-radius: var(--image-border-radius);
    transition: all 0.3s ease;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-card-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
}

.blog-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Post Styles */
.blog-post {
    padding: 120px 0 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.blog-post-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 2rem;
    background: var(--image-bg-gradient);
    padding: var(--image-padding);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-post-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--image-hover-shadow);
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
}

.back-to-blog:hover {
    text-decoration: underline;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.blog-post-header .rating {
    justify-content: center;
}


.book-info-box {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.book-info-box h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.book-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.book-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-detail i {
    color: var(--primary-color);
    width: 20px;
}

.buy-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.like-button {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid transparent;
}

.like-button:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.like-button.liked {
    background: rgba(255, 107, 107, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.like-button.liked i {
    color: var(--primary-color);
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

/* Privacy Page Styles */
.privacy-page {
    padding: 120px 0 80px;
    background-color: var(--background-white);
    min-height: 100vh;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
}

.privacy-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.privacy-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.privacy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.privacy-section:last-of-type {
    border-bottom: none;
}

.privacy-section h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.privacy-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.privacy-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.privacy-section p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.privacy-contact {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

.privacy-contact h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.privacy-contact p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.privacy-contact strong {
    color: white;
    font-weight: 600;
}

/* Responsive Design for Privacy Page */
@media (max-width: 768px) {
    .privacy-page {
        padding: 100px 0 60px;
    }
    
    .privacy-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .privacy-section h3 {
        font-size: 1.2rem;
    }
    
    .privacy-intro {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-logo .logo-image {
        height: 35px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .book-details {
        grid-template-columns: 1fr;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* WordPress Admin Styles */
.wp-admin-bar {
    position: fixed;
    top: 0;
    z-index: 9999;
}

.wp-admin-bar ~ .navbar {
    top: 32px;
}

@media (max-width: 782px) {
    .wp-admin-bar ~ .navbar {
        top: 46px;
    }
}

/* Ensure no extra spacing */
html {
    margin: 0 !important;
    padding: 0 !important;
}

/* Main content wrapper */
main, .main-content {
    flex: 1;
}

/* Ensure sections don't shrink */
section:not(.footer) {
    flex-shrink: 0;
}

/* Fix for WordPress admin bar spacing */
body.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

/* Additional Styles from Static HTML */

/* Navigation Updates */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-logo .logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Floating Cards */
.floating-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.card span {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Blog Section Updates */
.blog {
    padding: 5rem 0;
    background: var(--background-light);
}

.blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Tabs */
.blog-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog More Section */
.blog-more-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-more-articles {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.btn-more-articles:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-more-articles i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-more-articles:hover i {
    transform: rotate(45deg);
}

/* Hidden Articles */
.hidden-article {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hidden-article.show {
    opacity: 1;
    transform: translateY(0);
}

/* Button states */
.btn-more-articles.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-more-articles.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Blog Grid Updates */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: var(--background-white);
}

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

.blog-card.featured {
    grid-column: span 2;
}

/* Enhanced Blog Image Styles */
.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 230, 109, 0.3) 100%);
    transition: all 0.3s ease;
}

.blog-image:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.blog-card.featured .blog-image {
    height: 300px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: transparent;
    padding: var(--image-padding);
    border-radius: var(--image-border-radius);
}

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

.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card.featured .blog-content h3 {
    font-size: 1.5rem;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

.blog-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ACF Fields Styles */
.blog-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.blog-book-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.blog-book-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-book-details i {
    color: var(--accent-color);
    width: 14px;
}

.blog-rating {
    margin-bottom: 1rem;
}

.blog-rating .stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-rating .stars i {
    color: #ddd;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.blog-rating .stars i.filled {
    color: #FFD700;
}

.blog-rating .rating-text {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.buy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.buy-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Featured Products */
.featured {
    padding: 5rem 0;
    background: white;
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 230, 109, 0.3) 100%);
    transition: all 0.3s ease;
}

.product-image:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--image-padding);
    border-radius: var(--image-border-radius);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    box-shadow: var(--image-hover-shadow);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-author {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-old {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-new {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.price-store {
    display: none !important;
}

.btn-buy {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-buy:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background: var(--background-light);
}

.partners h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.partners-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.partner-logo i {
    font-size: 2rem;
    color: white;
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.partner-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.partner-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.partner-link:hover {
    gap: 1rem;
}

/* Community */
.community {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.community h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.community-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.community-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.community-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.community-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.community-card:hover .community-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.community-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.community-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Updates */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    margin-top: auto;
    width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .blog-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 200px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .floating-cards {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .community-card {
        padding: 1.5rem;
    }
    
    .community-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .community-card h3 {
        font-size: 1.3rem;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .blog-card.featured .blog-image {
        height: 250px;
    }
    
    .blog-card.featured .blog-content h3 {
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Enhanced mobile image styles */
    .blog-image {
        height: 200px;
        border-radius: 12px;
    }
    
    .blog-image img {
        padding: calc(var(--image-padding) * 0.75);
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-image img {
        padding: calc(var(--image-padding) * 0.75);
    }
    
    .book-cover {
        height: 180px;
    }
    
    .book-cover img {
        padding: calc(var(--image-padding) * 0.75);
    }
    
    .similar-article-image {
        height: 180px;
    }
    
    .similar-article-image img {
        padding: calc(var(--image-padding) * 0.75);
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-image {
        height: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .blog h2,
    .featured h2,
    .community h2 {
        font-size: 2rem;
    }
    
    /* Extra small screen image optimizations */
    .blog-image {
        height: 180px;
        border-radius: 10px;
    }
    
    .blog-image img {
        padding: calc(var(--image-padding) * 0.5);
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-image img {
        padding: calc(var(--image-padding) * 0.5);
    }
    
    .book-cover {
        height: 160px;
    }
    
    .book-cover img {
        padding: calc(var(--image-padding) * 0.5);
    }
    
    .similar-article-image {
        height: 160px;
    }
    
    .similar-article-image img {
        padding: calc(var(--image-padding) * 0.5);
    }
}

/* Image Loading States */
.blog-image img,
.product-image img,
.book-cover img,
.similar-article-image img,
.timeline-img,
.card-image,
.blog-post-image {
    opacity: 0;
    animation: imageFadeIn 0.6s ease forwards;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image loading skeleton */
.image-loading {
    background: linear-gradient(90deg, var(--background-light) 25%, rgba(255, 107, 107, 0.1) 50%, var(--background-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.community-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.community-card:nth-child(1) { animation-delay: 0.1s; }
.community-card:nth-child(2) { animation-delay: 0.2s; }

/* Books List Styles */
.books-list-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.books-list-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.books-list-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--background-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.book-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-light), var(--accent-color));
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--background-light), rgba(78, 205, 196, 0.1));
    padding: var(--image-padding);
    border-radius: var(--image-border-radius);
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
    box-shadow: var(--image-hover-shadow);
}

.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-light), rgba(78, 205, 196, 0.1));
    color: var(--text-secondary);
    font-size: 3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.book-card:hover .book-placeholder {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.05));
    transform: scale(1.05);
}

.book-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-status-badge.status-read {
    background: rgba(78, 205, 196, 0.9);
    color: white;
}

.book-status-badge.status-reading {
    background: rgba(255, 107, 107, 0.9);
    color: white;
}

.book-status-badge.status-want_to_read {
    background: rgba(255, 230, 109, 0.9);
    color: var(--text-primary);
}

.book-status-badge.status-favorite {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.book-meta i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.book-rating .rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.book-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.book-review {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.book-review strong {
    color: var(--text-primary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.book-review p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.book-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.buy-button {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.book-isbn {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Responsive Design for Books List */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .books-list-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .book-card {
        margin-bottom: 1rem;
    }
    
    .book-cover {
        height: 180px;
    }
    
    .book-info {
        padding: 1.25rem;
    }
    
    .book-title {
        font-size: 1.1rem;
    }
    
    .book-meta {
        gap: 0.5rem;
    }
    
    .book-meta span {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .books-list-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .book-cover {
        height: 160px;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .buy-button {
        justify-content: center;
    }
}

/* Timeline specific styles for books list */
.timeline-books-list .books-list-section {
    margin: 0;
    padding: 0;
}

.timeline-books-list .books-list-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-books-list .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Card template specific styles */
.blog-post-card .books-list-section {
    margin: 2rem 0;
}

.blog-post-card .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Minimal template specific styles */
.blog-post-minimal .books-list-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.blog-post-minimal .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Magazine template specific styles */
.blog-post-magazine .books-list-section {
    margin: 2rem 0;
}

.blog-post-magazine .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Similar Articles Styles */
.similar-articles {
    margin: 4rem 0 0 0;
    padding: 3rem 0 6rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-radius: 20px;
}

.similar-articles-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.similar-articles-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.similar-article-card {
    background: var(--background-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.similar-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.similar-article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 230, 109, 0.3) 100%);
    transition: all 0.3s ease;
}

.similar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: var(--image-padding);
    border-radius: var(--image-border-radius);
}

.similar-article-card:hover .similar-article-image img {
    transform: scale(1.05);
    box-shadow: var(--image-hover-shadow);
}

.similar-article-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.similar-article-rating .stars {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.similar-article-content {
    padding: 1.5rem;
}

.similar-article-title {
    margin-bottom: 1rem;
}

.similar-article-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.similar-article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.similar-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-article-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.similar-article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.similar-article-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.similar-article-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-article-stats i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.similar-article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.similar-article-link:hover {
    background: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.similar-articles-footer {
    text-align: center;
}

.similar-articles-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: var(--background-white);
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.similar-articles-more:hover {
    background: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.3);
}

.similar-articles-more i {
    transition: transform 0.3s ease;
}

.similar-articles-more:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Similar Articles */
@media (max-width: 768px) {
    .similar-articles {
        margin: 2rem 0;
        padding: 2rem 0;
    }
    
    .similar-articles-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .similar-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .similar-article-content {
        padding: 1.25rem;
    }
    
    .similar-article-title a {
        font-size: 1.1rem;
    }
    
    .similar-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .similar-article-stats {
        gap: 1rem;
    }
    
    .similar-articles-more {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .similar-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .similar-article-image {
        height: 180px;
    }
    
    .similar-article-content {
        padding: 1rem;
    }
    
    .similar-article-title a {
        font-size: 1rem;
    }
    
    .similar-article-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.cookie-banner-text {
    margin-bottom: 1.5rem;
}

.cookie-banner-text h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cookie-banner-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--primary-dark);
}

.cookie-categories {
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1rem;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.cookie-toggle:hover {
    background-color: var(--background-light);
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-slider {
    background-color: var(--success-color);
    opacity: 0.7;
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-label {
    flex: 1;
}

.cookie-label strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cookie-label small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cookie-banner-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.cookie-banner-buttons .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.cookie-banner-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.cookie-banner-buttons .btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.cookie-banner-buttons .btn-secondary:hover {
    background-color: #3bb5ae;
    transform: translateY(-1px);
}

.cookie-banner-buttons .btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.cookie-banner-buttons .btn-outline:hover {
    background-color: var(--text-secondary);
    color: white;
    transform: translateY(-1px);
}

.cookie-settings-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-settings-toggle:hover {
    color: var(--primary-color);
    background-color: var(--background-light);
}

.cookie-settings-toggle i {
    margin-right: 0.25rem;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    color: var(--primary-color);
    background-color: var(--background-light);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category-detail {
    margin-bottom: 2rem;
}

.cookie-category-detail h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cookie-category-detail p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-toggle-disabled {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--background-light);
    border-radius: 8px;
}

.cookie-toggle-disabled .cookie-slider.disabled {
    background-color: var(--success-color);
    opacity: 0.7;
}

.cookie-toggle-disabled .cookie-slider.disabled::before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-modal-footer .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-modal-footer .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.cookie-modal-footer .btn-primary:hover {
    background-color: var(--primary-dark);
}

.cookie-modal-footer .btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.cookie-modal-footer .btn-secondary:hover {
    background-color: #3bb5ae;
}

/* Cookie Banner Overlay */
.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-banner-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-settings-toggle {
        position: static;
        margin-top: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .cookie-modal {
        padding: 0.5rem;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-toggle {
        padding: 0.5rem;
    }
    
    .cookie-slider {
        width: 36px;
        height: 20px;
    }
    
    .cookie-slider::before {
        width: 16px;
        height: 16px;
    }
    
    .cookie-toggle input[type="checkbox"]:checked + .cookie-slider::before {
        transform: translateX(16px);
    }
}
