/*
Theme Name: Bakery Trail
Theme URI: https://example.com
Author: Theme Author
Author URI: https://example.com
Description: A modern WordPress directory theme for bakeries across the United States
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bakery-trail
Tags: directory, responsive, mobile-first, modern
*/

/* CSS Variables for Color Palette */
:root {
    --color-primary: #F5EBE0;
    --color-secondary: #D5BBAF;
    --color-tertiary: #A98A78;
    --color-quaternary: #7C5D50;
    --color-quinary: #4A3731;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-quaternary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-quinary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-quinary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-width: 150px;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.site-navigation a {
    font-weight: 600;
    padding: 0.5rem 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-quinary);
}

/* Hero Section */
.hero-section {
    background-image: url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 55, 49, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search input[type="search"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    outline: none;
}

/* Search Section */
.search-section {
    background-color: var(--color-primary);
    padding: 3rem 0;
}

.search-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-form select {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: 2px solid var(--color-tertiary);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--color-white);
    cursor: pointer;
}

.search-form select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Card Styles */
.card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.card-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffc107;
}

.work-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-open {
    background-color: var(--color-success);
}

.status-closed {
    background-color: var(--color-danger);
}

.place-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.topic-tag {
    background-color: var(--color-secondary);
    color: var(--color-quinary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-quaternary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-quaternary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-quinary);
    color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-quaternary);
}

.btn-secondary {
    background-color: var(--color-tertiary);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Single Post Layout */
.single-header {
    background-color: var(--color-primary);
    padding: 2rem 0;
}

.single-content {
    padding: 3rem 0;
}

.post-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-content {
    position: sticky;
    top: 100px;
}

.info-box {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.work-hours {
    display: grid;
    gap: 0.5rem;
}

.work-day {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-primary);
}

.work-day:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 600;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover {
    opacity: 0.8;
}

/* Review Topics */
.review-topics {
    margin-top: 2rem;
}

.topic-item {
    margin-bottom: 1rem;
}

.topic-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.topic-bar {
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 4px;
    overflow: hidden;
}

.topic-fill {
    height: 100%;
    background-color: var(--color-quaternary);
}

/* Attributes List */
.attributes-list {
    display: grid;
    gap: 0.75rem;
}

.attribute-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attribute-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-quaternary);
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-quinary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-navigation ul {
    list-style: none;
}

.footer-navigation li {
    margin-bottom: 0.5rem;
}

.footer-navigation a {
    color: var(--color-secondary);
}

.footer-navigation a:hover {
    color: var(--color-white);
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .site-navigation.active {
        display: block;
    }

    .site-navigation ul {
        flex-direction: column;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .post-details {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .card-image {
        height: 200px;
    }
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}
