/* AutoPass Community Website Styles */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --card-background: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--card-background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.search-btn {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Statistics */
.stats {
    padding: 3rem 0;
    background: var(--card-background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-color);
    opacity: 0.7;
}

/* Recipes Section */
.recipes {
    padding: 3rem 0;
}

.recipes h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.recipe-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.recipe-card .domain {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.recipe-card .description {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.recipe-card .stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.recipe-card .rating {
    color: #f39c12;
    font-weight: 600;
}

/* Upload Section */
.upload {
    padding: 3rem 0;
    background: var(--card-background);
    text-align: center;
}

.upload h2 {
    margin-bottom: 1rem;
}

.upload-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 3rem 0;
}

.about h2 {
    margin-bottom: 1rem;
}

.about p {
    margin-bottom: 1rem;
    max-width: 800px;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    opacity: 0.7;
}

.error {
    text-align: center;
    padding: 2rem;
    background: #fee;
    color: #c33;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
}


