/*
Theme Name: City of Evansville
Description: A modern, responsive WordPress theme for the City of Evansville directory website
Version: 1.0
Author: Custom Theme
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
}

.site-logo img {
    height: 50px;
    margin-right: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

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

.main-navigation a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #3498db;
}

/* Hero Section */
.hero-section {
    height: 800px;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7)), url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Styles */
.content-section {
    padding: 4rem 0;
    background: #fff;
    margin-bottom: 2rem;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

/* Card Styles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.card-description {
    color: #555;
    line-height: 1.5;
}

/* Rating Styles */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars {
    color: #f39c12;
}

.rating-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Work Hours Styles */
.work-hours {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-hours h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.day {
    font-weight: 500;
    text-transform: capitalize;
}

.time {
    color: #7f8c8d;
}

/* Contact Info Styles */
.contact-info {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

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

.contact-icon {
    width: 20px;
    height: 20px;
    color: #3498db;
}

/* Attributes Styles */
.attributes {
    margin: 1rem 0;
}

.attributes h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.attribute-group {
    margin-bottom: 1rem;
}

.attribute-group h5 {
    color: #34495e;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.attribute-list {
    list-style: none;
    padding-left: 1rem;
}

.attribute-list li {
    padding: 0.25rem 0;
    color: #555;
}

.attribute-list li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
}

/* Topics Styles */
.topics {
    margin: 1rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.topic-item {
    background: #3498db;
    color: white;
    padding: 0.5rem;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Dropdown Styles */
.dropdown-section {
    text-align: center;
    margin: 2rem 0;
}

.business-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}

/* FAQ Styles */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #ecf0f1;
}

.faq-answer {
    padding: 1rem;
    display: none;
    background: white;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Breadcrumbs */
.breadcrumbs {
    background: #ecf0f1;
    padding: 1rem 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child):after {
    content: " / ";
    margin-left: 0.5rem;
    color: #7f8c8d;
}

.breadcrumb-list a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: 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 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-menu {
    list-style: none;
}

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

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Enhanced Card Hover Effects */
.card.hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Current Day Highlighting */
.hours-list li.current-day {
    background: #e8f4fd;
    font-weight: bold;
    border-left: 4px solid #3498db;
    padding-left: 1rem;
}

/* Form Enhancements */
.search-form.focused {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.error {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(even) {
    animation-delay: 0.1s;
}

/* Status Indicators */
.current-status {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

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

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

/* Enhanced Typography */
.listing-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.listing-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Enhanced Navigation */
.navigation-links {
    margin: 1rem 0;
}

.navigation-links .btn {
    margin-right: 1rem;
}

/* Enhanced Meta Information */
.entry-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: #3498db;
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

/* Enhanced Image Handling */
.listing-image {
    margin-bottom: 2rem;
    text-align: center;
}

.listing-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Related Listings Section */
.related-listings {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.related-listings h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Enhanced Footer */
.footer-section h3 {
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}