@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.4;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.recipe-list {
    padding: 0.5rem 0;
}

.recipe-link {
    display: block;
    padding: 0.5rem 0.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.recipe-link:hover {
    background-color: #e0e0e0;
}

.recipe-link.active {
    background-color: #007bff;
    color: white;
}

/* Adjust main content to accommodate sidebar */
.content {
    margin-left: 200px;
    padding: 1rem;
}

/* Recipe Layout Styles */
.recipe {
    max-width: 1000px;
    margin: 0 auto;
}

.recipe-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.recipe-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.recipe-description {
    font-size: 1rem;
    color: #666;
}

.recipe-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
}

.recipe-sidebar {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
}

.recipe-meta {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.meta-item {
    margin-bottom: 0.25rem;
}

.meta-label {
    font-weight: 600;
    color: #555;
    margin-right: 0.5rem;
}

.recipe-ingredients {
    margin-bottom: 1rem;
}

.recipe-ingredients h2,
.recipe-notes h2,
.recipe-instructions h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.recipe-ingredients ul {
    list-style: none;
    padding: 0;
}

.recipe-ingredients li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.recipe-instructions {
    font-size: 1rem;
    line-height: 1.4;
}

.recipe-instructions ol {
    padding-left: 1.25rem;
}

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

.recipe-notes ul {
    list-style: none;
    padding: 0;
}

.recipe-notes li {
    padding: 0.25rem 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-sidebar {
        order: 2;
    }
    
    .recipe-instructions {
        order: 1;
    }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
    .sidebar {
        width: 160px;
    }
    
    .content {
        margin-left: 160px;
        padding: 0.5rem;
    }
    
    .recipe-title {
        font-size: 1.5rem;
    }
}
