/*
Theme Name: Pho in US
Theme URI: https://example.com
Description: A modern, SEO-optimized directory theme for Vietnamese Pho restaurants across the US
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pho_theme
Tags: directory, restaurant, responsive, seo-optimized
*/

/* CSS Variables for Color Palette */
:root {
    --color-primary: #0475b6;
    --color-secondary: #fe3781;
    --color-tertiary: #4c7f49;
    --color-quaternary: #118e82;
    --color-accent: #f08c1c;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 8px;
}

/* Reset & 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-background);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text);
}

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 & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--color-background-alt);
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* Hero Section */
.hero-section {
    min-height: 800px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 117, 182, 0.8), rgba(254, 55, 129, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Search Section */
.search-section {
    background-color: #ffffff;
    padding: 3rem 0;
    box-shadow: var(--shadow-md);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--border-radius);
}

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

.search-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group select {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 117, 182, 0.1);
}

.form-group select:disabled {
    background-color: var(--color-background-alt);
    cursor: not-allowed;
}

/* Card Grid Layouts */
.card-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Card Styles */
.card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    background-color: var(--color-background-alt);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

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

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

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

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

.card-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

/* Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-accent);
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-value {
    font-size: 1.1rem;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-open {
    background-color: #d4edda;
    color: #155724;
}

.badge-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Post Count Badge */
.post-count {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1.5rem 0;
    background-color: var(--color-background-alt);
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--color-text-light);
}

.breadcrumbs-list a {
    color: var(--color-text-light);
}

.breadcrumbs-list a:hover {
    color: var(--color-primary);
}

.breadcrumbs-list .current {
    color: var(--color-text);
    font-weight: 600;
}

/* Single Post Styles */
.post-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.post-header h1 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.post-navigation {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.back-link:hover {
    color: #ffffff;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.featured-image-large {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.featured-image-large img {
    width: 100%;
    height: auto;
}

.info-section {
    background-color: var(--color-background-alt);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.info-section h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-value {
    color: var(--color-text-light);
}

.info-value a {
    color: var(--color-primary);
    word-break: break-all;
}

/* Work Hours Display */
.work-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.work-hours-table tr {
    border-bottom: 1px solid var(--color-border);
}

.work-hours-table td {
    padding: 0.75rem 0;
}

.work-hours-table .day-name {
    font-weight: 600;
    width: 30%;
}

.work-hours-table .hours-value {
    color: var(--color-text-light);
}

/* Attributes List */
.attributes-list {
    list-style: none;
}

.attributes-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attributes-list li::before {
    content: '✓';
    color: var(--color-tertiary);
    font-weight: bold;
}

/* Topics Tags */
.topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.topic-tag {
    background-color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.topic-count {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Related Posts Section */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--color-border);
}

.related-posts h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-navigation h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.footer-navigation li {
    margin-bottom: 0.75rem;
}

.footer-navigation a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-navigation a:hover {
    color: #ffffff;
    padding-left: 5px;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Responsive Design */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section { padding: 60px 0; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section { min-height: 600px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .search-section,
    .related-posts {
        display: none;
    }
}