/* Recipes Section */
.recipes-section {
    padding: 8rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.recipes-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.recipes-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recipes-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Filter Bar */
.recipes-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--accent-glow);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: transparent;
    font-weight: 600;
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
    min-height: 500px;
}

/* Recipe Card Styles */
.recipe-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.recipe-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.recipe-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(59, 130, 246, 0.1);
}

.recipe-card-hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.recipe-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

.recipe-card-overlay-hint {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}

.recipe-card:hover .recipe-card-overlay-hint {
    opacity: 1;
}

.recipe-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.recipe-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.recipe-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.model-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[data-theme="dark"] .model-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.recipe-info h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.recipe-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.recipe-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.recipe-card:hover .recipe-footer {
    opacity: 1;
    transform: translateY(0);
}

.deploy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

/* Category Specific Tag Colors */
.tag-finance {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
}

.tag-marketing {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.1);
}

.tag-sales {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.1);
}

.tag-hr {
    color: #14b8a6;
    border-color: rgba(20, 184, 166, 0.2);
    background: rgba(20, 184, 166, 0.1);
}

.tag-legal {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.1);
}

.tag-eng {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.1);
}

.tag-creative {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.1);
}

/* Recipe Details Overlay */
.recipe-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .recipe-details-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.recipe-details-overlay.active {
    opacity: 1;
    visibility: visible;
}

.recipe-modal {
    background: var(--bg-color);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 32px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-details-overlay.active .recipe-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

[data-theme="light"] .modal-close {
    background: rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.2);
    color: var(--text-main);
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--accent-glow);
    color: white;
}

.modal-hero {
    width: 100%;
    height: 400px;
    position: relative;
}

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

.modal-body {
    padding: 4rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.modal-sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-info-group {
    margin-bottom: 2.5rem;
}

.modal-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-features-list {
    list-style: none;
    padding: 0;
}

.modal-features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-features-list li::before {
    content: "✓";
    color: var(--accent-glow);
    font-weight: bold;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .modal-hero {
        height: 250px;
    }
}
.modal-deploy-btn {
    width: 100%;
    justify-content: center;
}
