/* Recipe Detail Page Styles */

/* Recipe Header */
.recipe-header {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    margin-bottom: 25px;
    border: none;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #ff5252);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: translateX(-3px) translateY(-2px);
}

.back-btn:active {
    transform: translateX(-1px) translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.recipe-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.recipe-image-section {
    position: relative;
}

.recipe-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.recipe-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

.action-btn.saved {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.recipe-info-section {
    padding: 20px 0;
}

.recipe-category {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.recipe-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.recipe-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.recipe-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recipe-tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Recipe Content */
.recipe-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.recipe-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.recipe-main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Ingredients Section */
.ingredients-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ingredients-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredients-section h2::before {
    content: '🥕';
    font-size: 1.5rem;
}

.ingredients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.serving-adjust {
    display: flex;
    align-items: center;
    gap: 10px;
}

.serving-adjust button {
    width: 30px;
    height: 30px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.serving-adjust button:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.ingredients-list li:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredient-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ingredient-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.ingredient-amount {
    font-weight: 600;
    color: #ff6b6b;
    min-width: 80px;
    text-align: right;
}

.ingredients-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.btn-secondary {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

/* Instructions Section */
.instructions-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instructions-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-section h2::before {
    content: '👨‍🍳';
    font-size: 1.5rem;
}

.instructions-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 10px;
}

.timer-controls button {
    padding: 8px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-controls button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.instructions-list li:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding-left: 35px;
    padding-right: 15px;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-list li::before {
    content: counter(step-counter);
    background: #ff6b6b;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.instructions-list li.completed::before {
    background: #4caf50;
    content: '✓';
}

.instruction-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.instructions-progress {
    margin-top: 25px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Sidebar */
.recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nutrition-section, .notes-section, .related-recipes {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nutrition-section h3, .notes-section h3, .related-recipes h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nutrition-section h3::before {
    content: '📊';
}

.notes-section h3::before {
    content: '💡';
}

.related-recipes h3::before {
    content: '🔍';
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nutrition-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.nutrition-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
    display: block;
}

.nutrition-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.nutrition-disclaimer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

.notes-content {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.related-recipes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-recipe-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-recipe-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-recipe-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-recipe-info {
    flex: 1;
}

.related-recipe-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.related-recipe-time {
    font-size: 0.8rem;
    color: #888;
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.comments-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.comments-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.btn-primary {
    padding: 12px 25px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.review-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.review-form h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.rating-input {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
}

.star {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.star:hover {
    transform: scale(1.2);
}

.star.active {
    color: #ffa500;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    color: #888;
    font-size: 0.9rem;
}

.comment-rating {
    color: #ffa500;
    margin-bottom: 10px;
}

.comment-text {
    color: #666;
    line-height: 1.6;
}

/* Mobile Navigation Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .recipe-header-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .recipe-main-image {
        height: 300px;
    }
    
    .recipe-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .recipe-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: #333;
        transition: color 0.3s ease;
    }
    
    .nav-menu a:hover {
        color: #ff6b6b;
    }

@media (max-width: 768px) {
    .recipe-title {
        font-size: 2rem;
    }
    
    .recipe-stats {
        grid-template-columns: 1fr;
    }
    
    .recipe-actions {
        flex-wrap: wrap;
    }
    
    .ingredients-actions {
        flex-direction: column;
    }
    
    .instructions-timer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .comments-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .overall-rating {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .recipe-header {
        padding: 20px 0;
    }
    
    .recipe-title {
        font-size: 1.8rem;
    }
    
    .recipe-main-image {
        height: 250px;
    }
    
    .ingredients-section,
    .instructions-section,
    .nutrition-section,
    .notes-section,
    .related-recipes {
        padding: 20px;
    }
    
    .ingredients-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}