275 lines
4.1 KiB
CSS
275 lines
4.1 KiB
CSS
.modal-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 16px;
|
|
max-width: 800px;
|
|
width: 100%;
|
|
max-height: 90vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 16px 20px 0 20px;
|
|
}
|
|
|
|
.close-button {
|
|
background: none;
|
|
border: none;
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
color: #666;
|
|
padding: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.close-button:hover {
|
|
background: #f0f0f0;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 20px 20px 20px;
|
|
}
|
|
|
|
.recipe-image-section {
|
|
position: relative;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.modal-recipe-image {
|
|
width: 100%;
|
|
height: 300px;
|
|
object-fit: cover;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.modal-badges {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.difficulty-badge,
|
|
.category-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 16px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: white;
|
|
text-transform: capitalize;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.recipe-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.modal-recipe-title {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
color: #333;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.modal-recipe-description {
|
|
font-size: 1.1rem;
|
|
color: #666;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
}
|
|
|
|
.recipe-meta-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.meta-card {
|
|
background: #f8f9fa;
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.meta-label {
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.meta-value {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
color: #333;
|
|
}
|
|
|
|
.ingredients-section h3,
|
|
.instructions-section h3 {
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
margin: 0 0 16px 0;
|
|
color: #333;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.ingredients-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.ingredient-item {
|
|
background: #f8f9fa;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-left: 4px solid #2196F3;
|
|
}
|
|
|
|
.ingredient-amount {
|
|
font-weight: 600;
|
|
color: #2196F3;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.ingredient-name {
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.instructions-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.instruction-item {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.instruction-step {
|
|
background: #2196F3;
|
|
color: white;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.instruction-text {
|
|
flex: 1;
|
|
color: #333;
|
|
line-height: 1.5;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 20px;
|
|
border-top: 1px solid #e0e0e0;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.btn-large {
|
|
width: 100%;
|
|
padding: 16px 24px;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.modal-backdrop {
|
|
padding: 10px;
|
|
}
|
|
|
|
.modal-content {
|
|
max-height: 95vh;
|
|
}
|
|
|
|
.modal-recipe-image {
|
|
height: 200px;
|
|
}
|
|
|
|
.modal-recipe-title {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.recipe-meta-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.ingredients-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.instruction-item {
|
|
gap: 12px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.recipe-meta-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 0 16px 16px 16px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px;
|
|
}
|
|
}
|