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

:root {
    --primary-color: #ff6f61; /* Vibrant Coral */
    --secondary-color: #4ecdc4; /* Fresh Mint */
    --accent-color: #ffe66d; /* Soft Yellow */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color), #ff9a8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

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

.recipe-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    background-color: #eceff1;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

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

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

.recipe-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.recipe-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Individual Recipe Page */
.recipe-header {
    text-align: center;
    margin-bottom: 40px;
}

.recipe-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
}

.recipe-image-large {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.recipe-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
    font-weight: 600;
}

.recipe-section {
    margin-bottom: 40px;
}

.recipe-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

ul.ingredients-list, ol.instructions-list {
    list-style: none;
}

ul.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1.1rem;
}

ol.instructions-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
    font-size: 1.1rem;
}

ol.instructions-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-color);
}
