﻿/* Unified Recipe Info Container */
.recipe-info-container {
    background-color: #fff;
    border: 2px solid #e8f4f8;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.info-section {
    padding: 15px 0;
}

.info-section:not(:last-child) {
    border-bottom: 1px solid #ecf0f1;
}

/* Time Section */
.time-section .section-header {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.time-bar-visual {
    display: flex;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.time-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.time-prep {
    background: linear-gradient(135deg, #3498db, #2980b9); padding: 0 15px
}

.time-cook {
    background: linear-gradient(135deg, #e74c3c, #c0392b); padding: 0 15px
}

.time-total {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Stats Section (Serves & Difficulty) */
.stats-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    background-color: #f8f9fa;
    border: 2px solid #e8f4f8;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Difficulty Meter */
.difficulty-meter {
    width: 100%;
    height: 8px;
    background-color: #e8f4f8;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 8px 0;
}

.difficulty-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease, background-color 0.3s ease;
}

.difficulty-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
}

.difficulty-card {
    max-width: 100%;
}

/* Action Section (Save Button) */
.action-section {
    display: flex;
    justify-content: center;
    padding: 20px 0 5px 0;
}

.save-recipe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background-color: #fff;
    border: 2px solid #3498db;
    color: #3498db;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.save-recipe-btn:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.save-recipe-btn.saved {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.save-recipe-btn.saved:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.save-recipe-btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-info-container {
        padding: 20px 15px;
    }

    .time-bar-visual {
        height: 70px;
    }

    .time-segment {
        font-size: 0.8rem;
    }

    .stats-section {
        gap: 10px;
    }

    .stat-card {
        min-width: 120px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .save-recipe-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

/*    .save-recipe-btn .btn-text {
        display: none;
    }*/

    .save-recipe-btn i {
        font-size: 1.3rem;
    }
}