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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: white;
    text-decoration: none;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recipe-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.recipe-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.recipe-image.no-image span {
    font-size: 4rem;
    opacity: 0.5;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.recipe-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* Single Recipe */
.recipe-single {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.recipe-single h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.recipe-meta-bar {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    font-size: 1.05rem;
}

.recipe-featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* Share Buttons */
.share-buttons {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 8px;
}

.share-buttons h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.share-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s, opacity 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.pinterest { background: #e60023; }

.recipe-content-area {
    font-size: 1.1rem;
    line-height: 1.8;
}

.recipe-content-area p {
    margin-bottom: 1.2rem;
}

.recipe-content-area ul,
.recipe-content-area ol {
    margin: 1rem 0 1.5rem 2rem;
}

.recipe-content-area li {
    margin-bottom: 0.5rem;
}

.recipe-content-area strong {
    color: var(--text);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pagination .btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 1.05rem;
}

.pagination .btn:hover {
    opacity: 0.9;
}

.pagination span {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recipe-single {
        padding: 1.5rem;
    }
    
    .recipe-single h1 {
        font-size: 1.8rem;
    }
    
    .recipe-meta-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav {
        display: flex;
        gap: 1rem;
    }
    
    nav a {
        margin: 0;
    }
    
    .share-icons {
        justify-content: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .recipe-image {
        height: 200px;
    }
    
    .recipe-content h2 {
        font-size: 1.2rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}