/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- COLOR & FONT VARIABLES --- */
:root {
    --primary-yellow: #f59e0b; /* Amber 500 */
    --dark-yellow: #92400e;   /* Amber 800 */
    --light-yellow: #fef3c7;  /* Amber 100 */
    --light-gray: #f9fafb;
    --medium-gray: #e5e7eb;
    --dark-gray: #374151;
    --text-color: #1f2937;
    --card-bg: white;
}

/* --- BASE STYLES & LAYOUT --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    /* Subtle SVG background pattern for texture */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e5e7eb' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: linear-gradient(90deg, var(--primary-yellow) 0%, #fbbf24 100%);
    padding: 1.2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.main-nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: opacity 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.main-nav a:hover {
    opacity: 0.8;
}

/* --- HOMEPAGE STYLES --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem 2rem;
}
.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}
.hero-section p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}
.search-bar {
    width: 100%;
    max-width: 400px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
}
.search-bar:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
}
.city-card {
    background-color: var(--card-bg);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.15);
}
.city-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-yellow);
    margin: 0;
}
.city-card p {
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}
#no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #6b7280;
}


/* --- GENERIC CARD & PAGE STYLES (FOR CONTACT, PRIVACY, CITY) --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.08);
}
.page-wrapper { /* Used for Contact, Privacy, Sitemap pages */
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--medium-gray);
    margin: 2rem auto;
    max-width: 800px;
}
.page-wrapper h1, .card h1 {
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 1.5rem;
}
.page-wrapper p, .card p, .page-wrapper li {
    color: #4b5563;
    line-height: 1.8;
}

/* --- CITY PAGE: CREATIVE LAYOUT --- */
.countdown-card {
    background: linear-gradient(90deg, var(--primary-yellow) 0%, #fbbf24 100%);
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}
.countdown-card p {
    color: white !important;
    opacity: 0.9;
}
.countdown-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}
.countdown-card .timer {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.schedule-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.schedule-item {
    flex: 1;
    min-width: 120px;
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.schedule-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}
.schedule-item h4 {
    margin: 0.25rem 0 0 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-yellow);
}
.schedule-item.next-prayer {
    background-color: var(--light-yellow);
    border-color: var(--primary-yellow);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- ARCHIVE TABLE --- */
.archive-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
.archive-table thead {
    background-color: var(--dark-gray);
    color: white;
}
.archive-table th, .archive-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}
.archive-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}
.archive-table tbody tr.today {
    background-color: var(--light-yellow);
    font-weight: 600;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #f3f4f6;
    padding: 3rem 1rem;
    border-top: 1px solid var(--medium-gray);
    margin-top: auto;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-about, .footer-links {
    flex: 1;
    min-width: 250px;
}
.footer-about h5, .footer-links h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-about p, .footer-links a {
    color: #6b7280;
    text-decoration: none;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a:hover {
    color: var(--dark-yellow);
}
.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
    color: #6b7280;
}