/* CSS STYLE FOR RECIPE CARD PROJECT */
:root {
    --primary-color: #ff6f61; /* Coral accent */
    --text-dark: #333;
    --text-light: #666;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-color: rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Background Image with Dark Overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1495195134817-aeb325a55b65?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}


body.dark-mode {
    --card-bg: #1e1e1e;
    --text-dark: #f0f0f0;
    --text-light: #bbbbbb;
    --primary-color: #ff8a80;
    --shadow-color: rgba(0,0,0,0.5);
}


.container {
    max-width: 900px;
    margin: 0 auto;
}

.theme-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    background-color: var(--card-bg);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 1.4rem;
    z-index: 1000;
    

    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

/* Icon Animation */
.theme-btn i {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Rotate icon when active */
.theme-btn:active i {
    transform: rotate(360deg);
}

/* --- Recipe Card Styling --- */
.recipe-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header & Image */
.recipe-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.recipe-title-box {
    padding: 25px;
    text-align: center;
}

h1 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 10px;
}

.description {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
}

/* Meta Data */
.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.meta-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0; 
    margin: 0 25px;
    opacity: 0.5;
}

/* Recipe Content */
.recipe-content {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    padding: 30px;
}

h2 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

h2 i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Lists */
ul { list-style: none; }
ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee; 
    color: var(--text-dark);
}

ul li input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

ol { padding-left: 20px; }
ol li {
    margin-bottom: 15px;
    padding-left: 10px;
    color: var(--text-dark);
}

/* Footer */
.recipe-footer {
    background-color: var(--bg-color);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nutrition {
    color: var(--text-dark);
}

.print-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background 0.3s;
}

.print-btn:hover {
    background-color: #e05e50;
}

/* Responsive Design  */
@media (max-width: 768px) {
    .recipe-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recipe-meta {
        gap: 15px;
    }

    .recipe-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}