/* === Base Settings ============================================= */
:root {
    /* Vintage Color Palette */
    --primary-color: #b7950b;
    --secondary-color: #d4af37;
    --accent-color: #f1c40f;
    --background-light: #fef9e7;
    --text-primary: #2c2c2c;
    --text-secondary: #666;
    --border-color: rgba(183, 149, 11, 0.2);
    
    /* Golden Ratio Proportions */
    --golden-ratio: 1.618;
    --space-xs: 0.5rem;
    --space-sm: 0.8rem;
    --space-md: 1.3rem;
    --space-lg: 2.1rem;
    --space-xl: 3.4rem;
    --space-xxl: 5.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

/* === Header Navigation ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 249, 231, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

/* === Container System with Golden Ratio ===================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxl) 0;
}

.golden-grid {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
}

/* === Hero Section - Vertical Split ========================================== */
.hero {
    padding-top: calc(var(--space-xxl) + 60px);
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(241, 196, 15, 0.1) 100%);
}

.hero .golden-grid {
    grid-template-columns: 1fr 1.618fr;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(183, 149, 11, 0.3);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* === Buttons ============================================================== */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: var(--space-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* === Content Sections ====================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === Cards with Golden Proportions ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: white;
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(183, 149, 11, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(183, 149, 11, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === About Section - Golden Ratio ========================================== */
.about .golden-grid {
    grid-template-columns: 1.618fr 1fr;
}

.about-content {
    padding-right: var(--space-lg);
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(183, 149, 11, 0.2);
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* === Stats Section ======================================================== */
.stats {
    background: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: var(--space-xs);
}

/* === Footer =============================================================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer h3 {
    color: var(--accent-color);
    margin-bottom: var(--space-md);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* === Homepage Styles ====================================================== */
/* Homepage Main Container */
.homepage {
    padding-top: 80px; /* Account for fixed navbar */
}

/* Hero Section with Latest Post */
.hero-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(241, 196, 15, 0.1) 100%);
}

.hero-post {
    display: grid;
    grid-template-columns: 1.618fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(183, 149, 11, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.hero-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 149, 11, 0.3);
}

/* Random Posts Section */
.random-posts {
    padding: var(--space-xxl) 0;
    background: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(183, 149, 11, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(183, 149, 11, 0.2);
}

.post-thumbnail {
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--secondary-color);
}

/* Blog Link Section */
.blog-link-section {
    text-align: center;
    padding: var(--space-lg) 0;
}

.blog-link {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 149, 11, 0.3);
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-post {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .homepage {
        padding-top: 70px;
    }
    
    .hero-section,
    .random-posts {
        padding: var(--space-lg) 0;
    }
    
    .hero-image img {
        height: 200px;
    }
    
    .post-thumbnail {
        height: 150px;
    }
}

/* === WordPress Specific Styles ============================================= */
/* Post List */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: calc(var(--space-xxl) + 60px) auto var(--space-xl);
    padding: 0 var(--space-md);
}

/* Post Item */
.post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(183, 149, 11, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(183, 149, 11, 0.2);
}

.post-featured-image {
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-featured-image img {
    transform: scale(1.05);
}

.post-item h3 {
    font-size: 1.3rem;
    margin: var(--space-md);
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-item h3 a:hover {
    color: var(--secondary-color);
}

.post-item p {
    margin: 0 var(--space-md);
    color: var(--text-secondary);
    flex: 1;
}

.post-item > a:last-of-type {
    display: inline-block;
    margin: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.post-item > a:last-of-type:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xxl);
    gap: var(--space-xs);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.prev.page-numbers,
.next.page-numbers {
    width: auto;
    padding: 0 var(--space-sm);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: calc(var(--space-xxl) + 60px) auto var(--space-md);
    padding: 0 var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs span {
    margin: 0 var(--space-xs);
}

/* Single Post/Page Content */
.page-content {
    max-width: 800px;
    margin: var(--space-md) auto var(--space-xxl);
    padding: var(--space-lg);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(183, 149, 11, 0.1);
    border: 1px solid var(--border-color);
}

.page-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.page-content .post-featured-image {
    margin: -var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.page-content .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content .content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-content .content p,
.page-content .content ul,
.page-content .content ol {
    margin-bottom: var(--space-md);
}

.page-content .content h2,
.page-content .content h3,
.page-content .content h4 {
    color: var(--primary-color);
    margin: var(--space-lg) 0 var(--space-sm);
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: var(--space-xxl) var(--space-md);
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.error-page h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.error-page p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero .golden-grid,
    .about .golden-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
        margin-top: var(--space-lg);
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: var(--space-sm);
    }
    
    .page-content h1 {
        font-size: 1.5rem;
    }
}