:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --red: #ff3333;
    --orange: #ff6b35;
    --gradient-1: linear-gradient(135deg, #ff3333 0%, #ff6b35 100%);
    --gradient-2: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    --gradient-3: linear-gradient(135deg, #ff1744 0%, #ff6b35 50%, #ffa500 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-dark);
    line-height: 1.6;
}

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

/* Navigation */
nav {
    padding: 24px 0;
    background: rgba(21, 21, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Search */
.search-container {
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.search-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-container:focus-within::before {
    opacity: 1;
}

.search-container input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 51, 51, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: transparent;
    transform: translateY(-2px);
}

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

/* Recipe Grid */
.recipes {
    padding: 60px 0 100px;
}

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

.card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 51, 51, 0.1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(255, 51, 51, 0.3);
}

.card:hover::before {
    opacity: 0.1;
}

.card-img {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

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

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .card-img::after {
    opacity: 0.3;
}

.card-body {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.time::before {
    content: '⏱';
}

.card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.card:hover h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}
/* Custom Recipe Card Styling */
.custom-recipe-card {
    border: 2px dashed rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

#query-text {
    color: var(--orange);
    font-weight: bold;
}

#generateBtn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}