/* ========================================
   Recipe Website - Complete Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #d35400;
    --primary-dark: #b74700;
    --primary-light: #e67e22;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ========================================
   Header
   ======================================== */
.main-header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo:hover {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-search form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.header-search input {
    border: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.header-search button {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.header-search button:hover {
    background-color: var(--primary-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-search form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.hero-search button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover {
    background-color: var(--primary-dark);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0;
}

.view-all-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* ========================================
   Recipe Cards
   ======================================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.recipe-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recipe-card-image {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.05);
}

.recipe-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.recipe-card-content {
    padding: 20px;
}

.recipe-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.recipe-card-content h3 a {
    color: var(--secondary-color);
}

.recipe-card-content h3 a:hover {
    color: var(--primary-color);
}

.recipe-card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.difficulty-easy { color: var(--accent-color); }
.difficulty-medium { color: var(--primary-color); }
.difficulty-hard { color: #e74c3c; }

/* ========================================
   Categories
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 180px;
}

.category-card-image {
    position: absolute;
    inset: 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    z-index: 2;
}

.category-card-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.recipe-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Categories Grid Large */
.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.category-card-large {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
}

.category-card-large .category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card-large:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.category-card-large .category-card-content {
    padding: 30px;
}

.category-card-large h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.category-card-large p {
    opacity: 0.9;
    margin-bottom: 10px;
}

/* ========================================
   Latest Recipes List
   ======================================== */
.recipes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recipe-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.recipe-list-item:hover {
    box-shadow: var(--shadow-md);
}

.recipe-list-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
}

.recipe-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-list-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recipe-category-tag {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.recipe-list-content h3 {
    margin-bottom: 8px;
}

.recipe-list-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.newsletter-content h2 {
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.newsletter-form-large {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.newsletter-form-large input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.newsletter-form-large input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form-large button {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-large button:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* ========================================
   Page Headers
   ======================================== */
.page-header {
    background: var(--bg-light);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
}

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

.page-header-image {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-header-image h1,
.page-header-image p {
    position: relative;
    z-index: 2;
}

.page-header-image h1 {
    color: #fff;
}

.page-header-image p {
    color: rgba(255,255,255,0.9);
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* Category Header */
.category-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.category-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.category-header .container {
    position: relative;
    z-index: 2;
}

.category-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.recipe-count-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--text-color);
}

.breadcrumb-light a,
.breadcrumb-light span {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-light .current {
    color: #fff;
}

/* ========================================
   Filters
   ======================================== */
.filters-bar {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-light);
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.clear-filters {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination-link.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ========================================
   Recipe Detail Page
   ======================================== */
.recipe-header {
    padding: 40px 0;
}

.recipe-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.recipe-category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.recipe-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.recipe-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.recipe-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.recipe-info-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.recipe-actions {
    display: flex;
    gap: 10px;
}

.recipe-header-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.recipe-header-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Recipe Content */
.recipe-content {
    padding: 40px 0;
    background: var(--bg-light);
}

.recipe-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.recipe-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ingredients-card,
.instructions-card,
.recipe-notes {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.ingredients-card h2,
.instructions-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.servings-adjuster {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.servings-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.servings-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredient-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ingredient-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.ingredient-checkbox input:checked + span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Instructions */
.instructions-card {
    margin-bottom: 30px;
}

.instructions-list {
    counter-reset: step;
}

.instructions-list li {
    margin-bottom: 20px;
}

.instruction-step {
    display: flex;
    gap: 15px;
}

.step-number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.instruction-step p {
    padding-top: 5px;
    line-height: 1.7;
}

/* Recipe Notes */
.recipe-notes h3 {
    margin-bottom: 15px;
}

.recipe-notes ul {
    list-style: disc;
    padding-left: 20px;
}

.recipe-notes li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* Related Recipes */
.related-recipes {
    padding: 60px 0;
}

.related-recipes h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* ========================================
   Search Page
   ======================================== */
.search-form-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-form-large {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.search-form-large input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-form-large button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-large button:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    text-align: center;
    padding: 40px 0;
}

.search-suggestions h3 {
    margin-bottom: 20px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-tags a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: 30px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.suggestion-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ========================================
   About Page
   ======================================== */
.about-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.stats-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Team Section */
.team-section {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-member p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

.contact-form-container h2 {
    margin-bottom: 25px;
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info h2 {
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-info-list {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-info-item p {
    color: var(--text-light);
}

.social-connect {
    margin-bottom: 30px;
}

.social-connect h4 {
    margin-bottom: 15px;
}

.social-connect .social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.faq-link {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
}

.faq-link h4 {
    margin-bottom: 10px;
}

.faq-link p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: #fff;
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
}

.footer-section .social-links a {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    transition: var(--transition);
}

.footer-section .social-links a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .recipe-header .container {
        grid-template-columns: 1fr;
    }

    .recipe-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-sidebar {
        position: static;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .header-search {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-search form {
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .categories-grid-large {
        grid-template-columns: 1fr;
    }

    .recipe-list-item {
        flex-direction: column;
    }

    .recipe-list-image {
        width: 100%;
        height: 200px;
    }

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select {
        width: 100%;
    }

    .clear-filters {
        margin-left: 0;
        text-align: center;
    }

    .recipe-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-actions {
        flex-wrap: wrap;
    }

    .recipe-actions .btn {
        flex: 1;
    }

    .stats-card {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .no-results-actions {
        flex-direction: column;
    }

    .search-form-large {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .recipe-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }
}
