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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #f97316;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    color: white;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #f97316;
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

/* Search */
.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #fed7aa;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #f97316;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #f97316;
}

/* Main */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 4rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
}

.slider-content {
    position: absolute;
    bottom: 4rem;
    left: 2rem;
    right: 2rem;
    max-width: 700px;
    color: white;
}

.slider-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.slider-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-btn-prev {
    left: 1rem;
}

.slider-btn-next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #f97316;
    width: 2rem;
    border-radius: 1rem;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%);
    box-shadow: 0 6px 8px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Recipe Section */
.recipe-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.recipe-card-image {
    position: relative;
    height: 256px;
    overflow: hidden;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.recipe-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.recipe-card-info {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.75rem;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.info-badge svg {
    width: 1rem;
    height: 1rem;
}

.recipe-card-content {
    padding: 1.5rem;
}

.recipe-card-content h3 {
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-card-content p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Recipe Detail */
.recipe-detail-main {
    background: linear-gradient(to bottom, #fff7ed 0%, white 50%);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0.5rem;
}

.back-btn:hover {
    background: #fff7ed;
    color: #f97316;
}

.recipe-hero {
    position: relative;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

.recipe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.recipe-hero-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
}

.recipe-hero-content h1 {
    color: white;
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9375rem;
}

.recipe-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.recipe-card-detail {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sticky-card {
    position: sticky;
    top: 6rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #4b5563;
    transition: color 0.3s;
}

.ingredients-list li:hover {
    color: #f97316;
}

.ingredients-list li::before {
    content: "•";
    color: #f97316;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.instructions-list {
    list-style: none;
}

.instruction-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.instruction-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.instruction-item:hover .instruction-number {
    transform: scale(1.1);
}

.instruction-text {
    flex: 1;
    padding-top: 0.25rem;
    color: #4b5563;
}

.recipe-description {
    background: linear-gradient(135deg, #fed7aa 0%, #fecaca 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
}

.recipe-description h3 {
    margin-bottom: 0.5rem;
}

.recipe-description p {
    color: #4b5563;
}

/* Contact Page */
.page-main {
    background: linear-gradient(to bottom, #fff7ed 0%, white 50%);
    padding: 4rem 0;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-content-centered {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.875rem;
}

.office-hours {
    background: linear-gradient(135deg, #fed7aa 0%, #fecaca 100%);
    padding: 1.5rem;
    border-radius: 1rem;
}

.office-hours h3 {
    margin-bottom: 0.75rem;
}

.office-hours p {
    font-size: 0.875rem;
    color: #4b5563;
}

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

.form-card h2 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #fed7aa;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Text Page */
.text-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-card h1 {
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #999;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.text-content {
    color: #4b5563;
}

.text-content section {
    margin-bottom: 2rem;
}

.text-content h2 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.text-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.text-content p {
    margin-bottom: 1rem;
}

.text-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: #fff7ed;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.highlight-box p {
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column p {
    color: #fed7aa;
    font-size: 0.875rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo-icon {
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    color: #f97316;
}

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

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

.footer-column ul li a {
    color: #fed7aa;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fed7aa;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-made-with svg {
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(249, 115, 22, 0.5);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #fed7aa;
    font-size: 0.875rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease-in-out;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%);
    transform: translateY(-4px);
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .hero-slider {
        height: 400px;
    }

    .slider-content h2 {
        font-size: 1.75rem;
    }

    .slider-content p {
        font-size: 1rem;
    }

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

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

    .sticky-card {
        position: static;
    }

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

    .text-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }

    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-slider {
        height: 300px;
    }

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