/* Indian Grocery Store Finder - Styles */
/* Modern, distinctive design with Indian-inspired aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    --primary-orange: #FF9933;
    --primary-green: #138808;
    --primary-white: #FFFFFF;
    --accent-saffron: #FF6F1B;
    --accent-teal: #00A693;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-cream: #FFF8F0;
    --bg-light: #FAFAFA;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-teal);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-saffron) 50%, var(--primary-green) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo a {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    transform: scale(1.05);
    color: white;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-medium);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-green);
}

.breadcrumb .separator {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, white 0%, var(--bg-cream) 100%);
    border-radius: 24px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    font-family: 'Fraunces', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.page-header h2 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
}

.store-count {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-cream);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-green);
}

/* Browse Section */
.browse-section {
    margin: 4rem 0;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.state-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.state-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.state-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.state-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Cities Section */
.cities-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.city-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-cream);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.city-link:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-orange);
}

/* Store Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.store-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-green);
    position: relative;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-orange);
}

.store-card-expanded {
    padding: 2.5rem;
}

.store-card-expanded .store-name {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.store-name {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.store-name a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.store-name a:hover {
    color: var(--primary-orange);
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 500;
}

.store-rating .star {
    color: var(--primary-orange);
}

.store-location {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.store-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.meta-item {
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hours Display */
.meta-hours {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.hours-label {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding-left: 1.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.hours-row .day {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
}

.hours-row .time {
    color: var(--text-medium);
    text-align: right;
}

.meta-item a {
    color: var(--primary-green);
    font-weight: 500;
}

.badge-halal,
.badge-delivery {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-cream);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 0.25rem;
    width: fit-content;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}
.states-list {
    display: grid;
    gap: 1.5rem;
}

.state-listing {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.state-listing:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.state-listing h3 {
    margin-bottom: 0.5rem;
}

.state-listing h3 a {
    color: var(--text-dark);
}

.state-listing p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.link-arrow {
    color: var(--primary-green);
    font-weight: 600;
    transition: transform 0.2s ease;
    display: inline-block;
}

.link-arrow:hover {
    transform: translateX(4px);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-saffron);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2a2a2a 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.site-footer p {
    text-align: center;
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links a {
    color: white;
    margin: 0 0.5rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .state-grid {
        grid-template-columns: 1fr;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

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

.store-card,
.state-card,
.state-listing {
    animation: fadeIn 0.5s ease-out;
}

/* Legal Pages */
.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto 3rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-cream);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.legal-content ul, .legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Print Styles */
@media print {
    .site-header,
    .breadcrumb,
    .site-footer,
    .main-nav,
    .view-details,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .store-card,
    .state-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
