/* 
recipe-data.css
Styles for Recipe Data
*/

.recipe-header {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    margin-bottom: 2rem;
}

.recipe-level-container {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.recipe-level {
    display: flex;
    gap: 4px;
    margin: 10px 0;
}

.recipe-level div {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.recipe-level div:hover {
    opacity: 0.8;
}

.recipe-level-container[title] {
    position: relative;
}
.recipe-level-container[title]:hover::after {
    content: attr(title); 
    position: absolute;
    bottom: -30px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #000; 
    color: #fff; 
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.875rem;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.recipe-level-container[title]::after {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
}

.recipe-title {
   text-align:center;
   font-size:2.5rem;
}

.recipe-meta {
    display: flex;               
    justify-content: center;     
    align-items: center;         
    gap: 1rem;                  
    margin-bottom: 2rem;
    flex-wrap: wrap;         
}

.recipe-icon {
    font-size: 24px;
}

.recipe-kcal {
    width: 120px;
    height: 120px;
    background-color: #f9e0e0;  
    color: #b22222;   
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.recipe-kcal:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.recipe-time {
    width: 120px;         
    height: 120px;
    background-color: #ddd;
    color: #696969;
    font-size: 20px;  
    font-weight: bold;
    display: flex;               
    justify-content: center;    
    align-items: center;        
    text-align: center;
    border-radius: 50%;          
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;               
    flex-direction: column; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.recipe-time:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); 
}

.recipe-storage {
    width: 120px;
    height: 120px;
    background-color: #d1dde6;
    color: #4a6375;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.recipe-storage:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); 
}

.recipe-cost {
    width: 120px;         
    height: 120px;
    background-color: #c8d8d1;
    color: #3f6255;
    font-size: 20px;  
    font-weight: bold;
    display: flex;               
    justify-content: center;    
    align-items: center;        
    text-align: center;
    border-radius: 50%;          
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;               
    flex-direction: column; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.recipe-cost:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); 
}

.recipe-meta-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.recipe-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.recipe-col-left {
    flex: 1 1 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.serving-control {
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 10px;
    margin: 1rem 0 1rem 0;
}
.serving-control button {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    border-radius: 50%;
    height:30px;
    width:30px;
}

.serving-control button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.serving-control .serving-count {
    font-size: 1.2rem;
    font-weight: bold;
}

.serving-control .serving-measure {
    font-size: 1.2rem;
    font-weight: bold;
}

.ingredients-list li {
    margin-bottom: 0.5rem;
}

.ingredient-quantity {
    font-weight: bold;
}

.recipe-col-right {
    flex: 1 1 60%;
    max-width: 60%;
}

.recipe-steps {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
}

.recipe-steps .timeline {
    position: relative;
    margin: 20px 0;
    padding-left: 20px;
}

.recipe-steps .timeline-step {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.recipe-steps .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.recipe-steps .step-content {
    padding: 10px 15px;
}

.recipe-ingredients {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom:2rem;
}

.recipe-notes {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    position:relative;
}

.recipe-notes::before {
    position: absolute;
    content: "\f122"; 
    font-family: dashicons; 
    font-size: 5rem;
    top: -50px; 
    left: -30px;
    color: rgba(0, 0, 0, 0.2); 
}

.recipe-notes::after {
    position: absolute;
    content: "\f122"; 
    font-family: dashicons; 
    font-size: 5rem;
    bottom: -50px; 
    right: -30px;
    color: rgba(0, 0, 0, 0.2);
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .recipe-columns {
        flex-direction: column; 
        align-items: center;
    }

    .recipe-col-left, .recipe-col-right {
        max-width: 100%; 
        width: 100%;
    }
}

.recipe-products {
    margin-bottom:5rem;
}

.recipe-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .recipe-products-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .recipe-products-grid {
        grid-template-columns: 1fr; 
    }
}
