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

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

html,
body {
    background: linear-gradient(135deg, #ea6666 0%, #db7024 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 15px 0;
    position: relative;
}

/* .header::before {
    content: '🍜🥘🍛🥗🍳';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
} */

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ea6666 0%, #db7024 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(234, 102, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(234, 102, 102, 0.4);
}

/* Recipe Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    flex: 1;
    margin-bottom: 40px;
}

/* Recipe Cards */
.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 2;
}

.recipe-card::after {
    content: '❤️';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.recipe-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.recipe-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 0;
}

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

.recipe-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.recipe-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: linear-gradient(135deg, #ea6666, #db7024);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tag:hover::before {
    transform: translateX(100%);
}

.tag:hover {
    transform: scale(1.05);
}

.recipe-preview {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(234, 102, 102, 0.05), rgba(219, 112, 36, 0.05));
    border-radius: 10px;
    border-left: 4px solid #ea6666;
    position: relative;
    overflow: hidden;
}

.recipe-preview::before {
    content: '🥄';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
}

.view-recipe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ea6666 0%, #db7024 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(234, 102, 102, 0.3);
    margin-top: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.view-recipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-recipe:hover::before {
    left: 100%;
}

.view-recipe:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(234, 102, 102, 0.4);
}

/* Detail Page Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.recipe-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.recipe-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.recipe-hero-image {
    width: 100%;
    max-width: 600px;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.recipe-hero-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 20px auto;
}

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

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

.section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredients-list,
.instructions-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li,
.instructions-list li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(234, 102, 102, 0.05), rgba(219, 112, 36, 0.05));
    border-radius: 10px;
    border-left: 4px solid #ea6666;
    transition: all 0.3s ease;
    position: relative;
}

.ingredients-list li::before {
    content: '✓';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ea6666, #db7024);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
}

.ingredients-list li:hover::before {
    opacity: 1;
    left: -10px;
}

.instructions-list li {
    position: relative;
    counter-increment: step-counter;
    padding-left: 60px;
}

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

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ea6666, #db7024);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(234, 102, 102, 0.3);
}

.ingredients-list li:hover,
.instructions-list li:hover {
    background: linear-gradient(135deg, rgba(234, 102, 102, 0.1), rgba(219, 112, 36, 0.1));
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(234, 102, 102, 0.2);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin: 40px 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .search-form {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
    }

    .search-input,
    .search-btn {
        border-radius: 15px;
    }

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

    .recipe-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recipe-header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 20px;
    }

    .recipe-image {
        height: 200px;
    }

    .recipe-hero-image {
        height: 280px;
        max-width: 100%;
    }
}

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

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

    .recipe-header {
        padding: 20px;
    }

    .recipe-image {
        height: 180px;
    }

    .recipe-hero-image {
        height: 220px;
    }
}

/* Floating Icons */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatRandom var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
}

.floating-icon:nth-child(3) {
    top: 50%;
    left: 5%;
}

.floating-icon:nth-child(4) {
    bottom: 30%;
    right: 10%;
}

.floating-icon:nth-child(5) {
    bottom: 10%;
    left: 20%;
}

.floating-icon:nth-child(6) {
    top: 70%;
    right: 25%;
}

.floating-icon:nth-child(7) {
    top: 40%;
    left: 80%;
}

@keyframes floatRandom {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(90deg);
    }

    50% {
        transform: translateY(-60px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

/* Header Subtitle */
.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Quick Filters */
.quick-filters {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.quick-filters h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.filter-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Recipe Header */
.recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.recipes-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Recipe Badge */
.recipe-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ea6666, #db7024);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(234, 102, 102, 0.4);
}

/* Recipe Image Container */
.recipe-image-container {
    position: relative;
    overflow: hidden;
}

.recipe-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-time,
.recipe-difficulty {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}

/* Recipe Actions */
.recipe-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    background: rgba(234, 102, 102, 0.1);
    border: 1px solid rgba(234, 102, 102, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.action-btn:hover {
    background: rgba(234, 102, 102, 0.2);
    transform: scale(1.1);
}

.view-recipe {
    flex: 1;
}

/* Newsletter Section */
.newsletter-section {
    margin: 60px 0 40px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.newsletter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ea6666, #db7024);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 102, 102, 0.4);
}

/* Enhanced No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin: 40px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    opacity: 0.8;
    margin-bottom: 25px;
}

.back-to-all {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ea6666, #db7024);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 102, 102, 0.4);
}

/* Footer Enhancement */
.footer {
    margin-top: 60px;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .stats-banner {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    .filter-tags {
        justify-content: center;
    }

    .recipes-header {
        flex-direction: column;
        gap: 15px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* Glassmorphism Effects */
.search-form,
.recipe-header,
.back-link {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hover Effects */
.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.recipe-card:hover::before {
    opacity: 1;
}