.recipes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 20px 20px;
}

/* Recipe Hero Section */
.recipe-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.recipe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-actions {
    margin-top: 30px;
}

.hero-create-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.hero-create-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.button-icon {
    font-size: 1.5rem;
    font-weight: 700;
}

.button-text {
    font-size: 1rem;
}

.recipe-banner {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.recipe-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.recipe-banner h2 {
    color: var(--color-text-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipe-banner h2::after {
    content: '';
    margin-left: auto;
}

.recipe-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-surface);
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.recipe-scroll-container::-webkit-scrollbar {
    height: 12px;
}

.recipe-scroll-container::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.recipe-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 6px;
    border: 2px solid var(--color-card-bg);
}

.recipe-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
}

/* Scroll arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow:hover {
    background: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
    left: 10px;
}

.scroll-arrow.right {
    right: 10px;
}

.scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.banner-card {
    min-width: 200px;
    flex-shrink: 0;
}

.recipe-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

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

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-card .recipe-image {
    height: 150px;
    overflow: hidden;
}

.banner-card .recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipes-grid .recipe-image {
    height: 200px;
    overflow: hidden;
}

.recipes-grid .recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-info {
    padding: 15px;
}

.recipe-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.recipe-content {
    padding: 20px;
}

.recipe-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--color-text-primary);
}

.recipe-description {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

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

.stars {
    color: #FFD700;
    font-size: 1rem;
}

.rating .stars {
    color: #FFD700;
}

.recipe-banner .rating .stars,
.recipes-grid .recipe-card .rating .stars {
    color: #FFD700;
}

.rating-text, .rating-count {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.no-rating {
    color: var(--color-text-secondary);
    font-style: italic;
}

.last-used {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.recipe-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Search Section */
.search-section {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 80px;
    z-index: 100;
    transition: all 0.3s ease;
}

.search-section.sticky {
    border-radius: 0;
    margin: 0;
    box-shadow: var(--shadow-md);
    border-left: none;
    border-right: none;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-text-primary);
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-input::placeholder {
    color: var(--color-text-secondary);
}

.search-button {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
}

.search-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.clear-search {
    padding: 12px 16px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: background-color 0.2s, color 0.2s;
}

.clear-search:hover {
    background: var(--color-surface-light);
    color: var(--color-text-primary);
}

.all-recipes h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 16px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    transition: background-color 0.2s, border-color 0.2s;
}

.page-link:hover {
    background: var(--color-surface-light);
    border-color: var(--color-border-hover);
}

.current-page {
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
}

.no-recipes {
    text-align: center;
    color: var(--color-text-secondary);
    font-style: italic;
    padding: 40px;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .search-section {
        padding: 20px;
    }

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

    .recipes-grid .recipe-image {
        height: 160px;
    }

    .recipe-scroll-container {
        gap: 15px;
    }

    .banner-card {
        min-width: 180px;
    }
}
