/* GarbageAdvice Theme Styles */

:root {
    --color-primary: #2d5a27;
    --color-primary-dark: #1e3d1a;
    --color-secondary: #4a7c43;
    --color-accent: #78a871;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fafafa;
    --color-bg-alt: #f0f4ef;
    --color-white: #fff;
    --color-border: #ddd;
    
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    
    --container-width: 1200px;
    --content-width: 800px;
    --spacing: 1.5rem;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.5em;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    width: 159px;
    height: 50px;
}

.site-logo:hover {
    opacity: 0.85;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 25px 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e65c00;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: #e65c00;
}

.nav-item:hover .nav-link::after,
.nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none !important;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none !important;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.15s ease;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #e65c00;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation - Hidden by default on desktop */
.mobile-nav {
    display: none !important;
    background: #fff;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.mobile-menu {
    list-style: none !important;
    margin: 0;
    padding: 10px 0;
}

.mobile-menu li {
    list-style: none !important;
}

.mobile-nav-item {
    list-style: none !important;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-nav-item.has-dropdown .dropdown-arrow {
    transition: transform 0.2s ease;
}

.mobile-nav-item.has-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown {
    list-style: none !important;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown li {
    list-style: none !important;
}

.mobile-nav-item.has-dropdown.is-open .mobile-dropdown {
    max-height: 200px;
}

.mobile-dropdown li a {
    display: block;
    padding: 10px 20px 10px 35px;
    color: #555;
    font-size: 14px;
}

.mobile-dropdown li a:hover {
    color: #e65c00;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 8%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 90vh;
}

.hero-text {
    max-width: 50%;
    padding-bottom: 4rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.hero-badge span {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wavy-line {
    width: 120px;
    height: 12px;
}

.hero h1 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5em;
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    text-transform: capitalize;
}

.hero p {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    background-color: #e65c00;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #ff6b1a;
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Carousel */
.hero-carousel {
    display: flex;
    gap: 15px;
    padding-bottom: 2rem;
    margin-right: -100px;
}

.carousel-item {
    width: 180px;
    height: 180px;
    border: 3px solid #e65c00;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* Google Fonts for hero */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;800&family=Raleway:wght@300;400;500&display=swap');

/* Hero Responsive */
@media (max-width: 1200px) {
    .hero-content {
        padding: 2rem;
    }
    
    .hero-carousel {
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-carousel {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .carousel-item {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-content {
        min-height: auto;
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-carousel {
        display: none;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    }
}

/* Home Content */
.home-content {
    padding: 3rem 0;
    background: var(--color-white);
}

/* Product Reviews Section */
.product-reviews {
    padding: 4rem 0;
    background: #fff;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.section-badge span {
    color: #333;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wavy-line-dark {
    width: 80px;
    height: 12px;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5em;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 0.5rem;
}

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    color: #666;
    margin: 0;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.review-thumbnail {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.review-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.review-card:hover .review-thumbnail img {
    transform: scale(1.05);
}

.review-card-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.review-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2em;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: #000;
}

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

.review-card-title a:hover {
    color: #e65c00;
}

.review-card-title em {
    font-style: italic;
}

.title-underline {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.title-underline .line-blue {
    height: 2px;
    background: #3563AB;
    flex: 1;
}

.title-underline .line-red {
    height: 2px;
    background: #BF0C1F;
    flex: 1;
}

.review-excerpt {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-btn {
    display: inline-block;
    background-color: #e65c00;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: center;
}

.review-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Reviews Grid Responsive */
@media (max-width: 991px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2em;
    }
}

/* Latest Posts Section */
.latest-posts {
    padding: 4rem 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.post-thumbnail {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

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

.post-card-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.post-card-title a {
    color: var(--color-text);
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.post-card-excerpt {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    font-size: 0.875rem;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}

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

/* Single Post */
.post.single {
    background: var(--color-white);
}

.post-header {
    padding: 3rem 0 2rem;
    background: var(--color-bg-alt);
}

.post-header .container {
    max-width: var(--content-width);
}

.post-header .featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-header .featured-image img {
    width: 100%;
    display: block;
}

.post-title {
    font-size: 2.5rem;
    margin: 0 0 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.post-meta .categories a {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* Post Content */
.post-content {
    padding: 3rem 0;
}

.post-content .container {
    max-width: var(--content-width);
}

.post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.post-content th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg-alt);
    font-style: italic;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

.post-content code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
}

/* Post Footer */
.post-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

.post-footer .container {
    max-width: var(--content-width);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-tags span {
    color: var(--color-text-light);
    margin-right: 0.5rem;
}

.tag {
    background: var(--color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--color-text);
}

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

/* List/Archive Pages */
.list-page {
    padding: 3rem 0;
}

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

.page-header h1 {
    margin-top: 0;
}

.page-description {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
}

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

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

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 991px) {
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .mobile-nav {
        display: block !important;
        max-height: 0;
    }
    
    .mobile-nav.is-open {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .site-logo img {
        width: 130px;
        height: auto;
    }
    
    .header-inner {
        min-height: 60px;
    }
}

/* Search Page Styles (for Pagefind) */
.search-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.search-page .container {
    max-width: var(--content-width);
}

.search-page h1 {
    margin-top: 0;
    text-align: center;
}

#search {
    margin: 2rem 0;
}

