/*
Theme Name: Mosques in USA
Description: A custom directory theme for finding mosques in the USA
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 */
.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;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Hero Section */
.hero-section {
    height: 800px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 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.7);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Section Styles */
.content-section {
    padding: 4rem 0;
}

.content-section h2,
.content-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.content-section h2 {
    font-size: 2.5rem;
}

.content-section h3 {
    font-size: 2rem;
}

/* Card Layouts */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cards-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 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.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-title a:hover {
    color: #007cba;
}

.card-meta {
    font-size: 0.9rem;
    color: #666;
    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;
}

.rating-stars {
    color: #ffc107;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

/* Work Time Styles */
.work-time {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-time h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.work-time-day {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.work-time-day:last-child {
    border-bottom: none;
}

/* Contact Info */
.contact-info {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: #007cba;
    width: 20px;
}

/* Attributes */
.attributes {
    margin: 1.5rem 0;
}

.attributes h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.attribute-group {
    margin-bottom: 1rem;
}

.attribute-group h5 {
    color: #495057;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.attribute-list {
    list-style: none;
    padding-left: 1rem;
}

.attribute-list li {
    padding: 0.25rem 0;
    position: relative;
}

.attribute-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Place Topics */
.place-topics {
    margin: 1.5rem 0;
}

.place-topics h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.topic-item {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.topic-name {
    font-weight: 500;
    text-transform: capitalize;
}

.topic-count {
    font-size: 0.8rem;
    color: #666;
}

/* Dropdown Styles */
.search-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-group label {
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
    background: white;
}

.dropdown-group select:focus {
    outline: none;
    border-color: #007cba;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li:not(:last-child):after {
    content: ">";
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumbs a {
    text-decoration: none;
    color: #007cba;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Navigation Links */
.nav-links {
    margin: 2rem 0;
    text-align: center;
}

.nav-links a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links a:hover {
    background: #005a87;
}

/* Single Post Styles */
.single-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.single-content h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.single-content .featured-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 1rem;
}

/* 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.cols-3,
    .cards-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .dropdown-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .single-content {
        padding: 2rem 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.5rem;
    }
}

/* 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; }

.font-weight-bold {
    font-weight: 600;
}

.text-muted {
    color: #666;
}
