/* =========================================== */
/* СТИЛИ ДЛЯ СТРАНИЦЫ РЕЦЕПТОВ */
/* =========================================== */

/* Специальные иконки */
.fa-heart-kitchen:before {
    content: "♥";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.fa-dance:before {
    content: "💃";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.fa-kiss-wink-heart:before {
    content: "😘";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Шапка для рецептов */
.info-block {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.15), rgba(168, 85, 247, 0.15));
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 77, 141, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.info-block p {
    color: var(--light-pink);
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Планировщик */
.planner-container {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 77, 141, 0.2);
    backdrop-filter: blur(10px);
}

.planner-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
}

.planner-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: rgba(255, 77, 141, 0.2);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 77, 141, 0.5);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 77, 141, 0.3);
    transition: all 0.3s;
}

.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--light);
}

.step-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Контент шагов */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Выбор ингредиентов */
.ingredients-selector {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 25px 0;
}

.ingredient-category {
    background: rgba(15, 10, 26, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 77, 141, 0.1);
}

.ingredient-category h4 {
    font-size: 1.1rem;
    color: var(--light-pink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredient-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingredient-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ingredient-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    color: white;
    transform: translateY(-2px);
}

.ingredient-btn.selected {
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 77, 141, 0.3);
}

.selected-ingredients {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.selected-ingredients h4 {
    color: #27ae60;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-item {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.step-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Рецепты */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.recipe-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recipe-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 0 10px 25px rgba(255, 77, 141, 0.2);
}

.recipe-card.selected {
    border-color: var(--primary-pink);
    background: rgba(255, 77, 141, 0.1);
}

.recipe-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.recipe-content {
    padding: 20px;
}

.recipe-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light-pink);
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.5;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: rgba(168, 85, 247, 0.2);
    color: var(--light-pink);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.recipe-details {
    background: rgba(15, 10, 26, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 77, 141, 0.2);
    min-height: 200px;
}

.empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 77, 141, 0.3);
}

/* Распределение ролей */
.couple-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 25px;
    margin: 30px 0;
    align-items: start;
}

.partner-card {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 77, 141, 0.2);
}

.partner-card:first-child {
    border-color: #3498db;
}

.partner-card:last-child {
    border-color: #e84393;
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-header i {
    font-size: 2rem;
    color: var(--primary-pink);
}

.partner-card:first-child .partner-header i {
    color: #3498db;
}

.partner-card:last-child .partner-header i {
    color: #e84393;
}

.partner-header h4 {
    font-size: 1.3rem;
    color: var(--light-pink);
    margin: 0;
}

.partner-name {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1rem;
    padding: 5px 10px;
    border-bottom: 2px solid rgba(255, 77, 141, 0.3);
    flex: 1;
    text-align: center;
}

.partner-name:focus {
    outline: none;
    border-bottom-color: var(--primary-pink);
}

.partner-tasks {
    min-height: 200px;
    margin-bottom: 15px;
}

.task-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.task-item.man-task {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.task-item.woman-task {
    border-left-color: #e84393;
    background: rgba(232, 67, 147, 0.1);
}

.task-item:hover {
    transform: translateX(5px);
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: var(--light);
    font-size: 0.9rem;
}

.task-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.task-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.task-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.partner-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-pool {
    background: rgba(15, 10, 26, 0.8);
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.task-pool h5 {
    color: #ffc107;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tasks-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.distribution-result {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 77, 141, 0.2);
}

.balance-meter {
    margin: 20px 0;
}

.balance-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.balance-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #e84393);
    width: 50%;
    transition: width 0.5s ease;
}

.balance-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.balance-percent {
    font-weight: bold;
    color: var(--light-pink);
}

.balance-feedback {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Романтическая настройка */
.romance-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.setting-group {
    background: rgba(15, 10, 26, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 77, 141, 0.1);
}

.setting-group h4 {
    color: var(--light-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-options,
.drink-options,
.game-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.music-option,
.drink-option,
.game-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-option:hover,
.drink-option:hover,
.game-option:hover {
    background: rgba(255, 77, 141, 0.1);
    transform: translateX(5px);
}

.music-option input:checked + i + span,
.drink-option input:checked + i + span,
.game-option input:checked + i + span {
    color: var(--primary-pink);
    font-weight: 600;
}

.music-option i,
.drink-option i {
    font-size: 1.2rem;
    color: var(--primary-pink);
}

.game-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.game-option small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-left: 35px;
}

.atmosphere-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-option:hover {
    background: rgba(255, 77, 141, 0.1);
}

.checkbox-option i {
    font-size: 1.2rem;
    color: var(--primary-pink);
}

.final-plan {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid rgba(255, 77, 141, 0.3);
}

.plan-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plan-card {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-card h5 {
    color: var(--light-pink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-card ul {
    list-style: none;
    padding-left: 0;
}

.plan-card li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.plan-card li::before {
    content: '♥';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
}

/* Популярные рецепты */
.popular-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Советы */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid rgba(255, 77, 141, 0.2);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-pink);
    box-shadow: 0 15px 35px rgba(255, 77, 141, 0.25);
}

.tip-card i {
    font-size: 2.8rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    display: block;
}

.tip-card h3 {
    font-size: 1.4rem;
    color: var(--light-pink);
    margin-bottom: 15px;
}

.tip-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Романтические идеи */
.romantic-ideas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.idea-card {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid rgba(255, 77, 141, 0.2);
    transition: all 0.3s;
}

.idea-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 0 10px 25px rgba(255, 77, 141, 0.2);
}

.idea-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.idea-content {
    flex: 1;
}

.idea-content h3 {
    font-size: 1.3rem;
    color: var(--light-pink);
    margin-bottom: 10px;
}

.idea-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.idea-difficulty {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Бонусная секция */
.bonus-section {
    margin-top: 50px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .planner-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .planner-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .step-content {
        text-align: left;
    }
    
    .couple-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .task-pool {
        width: auto;
        order: -1;
    }
    
    .romance-settings {
        grid-template-columns: 1fr;
    }
    
    .atmosphere-options {
        grid-template-columns: 1fr;
    }
    
    .popular-recipes-grid,
    .tips-grid,
    .romantic-ideas {
        grid-template-columns: 1fr;
    }
    
    .idea-card {
        flex-direction: column;
        text-align: center;
    }
    
    .idea-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .planner-container {
        padding: 20px 15px;
    }
    
    .ingredient-buttons {
        justify-content: center;
    }
    
    .ingredient-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .recipe-card {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Анимация для кнопки "Начать готовку" */
@keyframes pulse-cooking {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#startCooking {
    animation: pulse-cooking 2s infinite;
    background: linear-gradient(135deg, #27ae60, #229954);
    border: 2px solid rgba(39, 174, 96, 0.5);
}

#startCooking:hover {
    animation: none;
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-3px);
}

/* Drag and drop стили */
.drag-over {
    background: rgba(255, 77, 141, 0.2) !important;
    border: 2px dashed var(--primary-pink) !important;
}

.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

/* Прогресс бар для шагов */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink), var(--purple));
    width: 25%;
    transition: width 0.5s ease;
}


/* Стили для деталей рецепта */
.recipe-full-details {
    padding: 20px;
}

.recipe-full-details h4 {
    color: var(--light-pink);
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.recipe-full-details h4:first-child {
    margin-top: 0;
}

.recipe-full-details h4 i {
    color: var(--primary-pink);
}

.recipe-full-details p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.recipe-full-details ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.recipe-full-details li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.recipe-full-details li::before {
    content: '♥';
    position: absolute;
    left: 10px;
    color: var(--primary-pink);
    font-weight: bold;
}

/* Нумерованный список для советов */
.numbered-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.numbered-list li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}