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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9fafb;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #f97316, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f97316;
}

.search-bar {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #f97316, #dc2626);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-form button:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fef3c7, #fecaca, #fed7aa);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: #f97316;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.recipe-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

.recipe-content {
    padding: 1.5rem;
}

.recipe-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.recipe-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.recipe-category {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Sections */
.featured-section, .trending-section, .latest-section {
    padding: 3rem 0;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trending-rank {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.trending-item img {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.trending-content {
    flex: 1;
}

.trending-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.trending-views {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Recipe Detail */
.recipe-detail {
    padding: 2rem 0;
}

.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb a {
    color: #6b7280;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f97316;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #d1d5db;
}

.recipe-header {
    margin-bottom: 3rem;
}

.recipe-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.quick-answer {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.quick-answer h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.recipe-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-badge {
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.category-badge {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.category-badge:hover {
    transform: scale(1.05);
}

.recipe-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.chef-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.chef-note h3 {
    font-size: 1.25rem;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.chef-note p {
    color: #78350f;
}

.ingredients-section, .instructions-section {
    margin-bottom: 2rem;
}

.ingredients-section h2, .instructions-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ingredients-list {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ingredients-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.ingredient-checkbox {
    margin-right: 0.75rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: #f97316;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.video-section {
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.keyword-tag {
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.author-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, #f97316, #dc2626);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f9fafb;
}

.page-link.active {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

/* Categories */
.category-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.subcategory-link {
    padding: 4px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
}

.subcategory-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #9ca3af;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #f97316;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.ad-section {
    margin: 2rem 0;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #f97316;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #f97316;
}

/* Subcategories Section */
.subcategories-section {
    margin: 2rem 0 3rem;
}

.subcategories-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.subcategory-card {
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
    display: block;
}

.subcategory-card:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.subcategory-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.subcategory-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}
