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

/* Генератор идей */
.generator-section {
    background: rgba(26, 15, 46, 0.95);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--purple);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.generator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #ff4d8d, #a855f7, #00cec9);
    z-index: 1;
}

.generator-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Блок с результатом */
.idea-display-container {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 77, 141, 0.2);
    position: relative;
    overflow: hidden;
}

.idea-display-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.1), rgba(52, 152, 219, 0.1));
    border-radius: 20px;
    z-index: 0;
}

.idea-display {
    min-height: 280px;
    background: rgba(15, 10, 26, 0.95);
    color: var(--light);
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    margin: 0;
}

.idea-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ff4d8d, #a855f7);
}

.idea-placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    z-index: 1;
    position: relative;
}

.idea-placeholder i {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 20px;
    color: #ff4d8d;
    opacity: 0.7;
}

/* Отображение идеи */
.idea-content {
    width: 100%;
}

.idea-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--light-pink);
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.idea-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-align: center;
}

.idea-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.idea-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.idea-tag i {
    color: var(--light-pink);
}

/* Фильтры */
.filters-section {
    background: rgba(15, 10, 26, 0.8);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    color: var(--light-pink);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group h3 i {
    color: var(--primary-pink);
}

/* Кнопки фильтров */
.budget-filter,
.location-filter,
.theme-filter,
.time-filter,
.couple-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.budget-btn,
.location-btn,
.theme-btn,
.time-btn,
.couple-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid;
    background: transparent;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.budget-btn:hover,
.location-btn:hover,
.theme-btn:hover,
.time-btn:hover,
.couple-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.budget-btn.active,
.location-btn.active,
.theme-btn.active,
.time-btn.active,
.couple-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Цвета для фильтров бюджета */
.budget-btn {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.budget-btn.active {
    background: #2ecc71;
    border-color: #2ecc71;
}

.budget-btn[data-budget="free"] {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.budget-btn[data-budget="free"].active {
    background: #2ecc71;
    border-color: #2ecc71;
}

.budget-btn[data-budget="low"] {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.budget-btn[data-budget="low"].active {
    background: #3498db;
    border-color: #3498db;
}

.budget-btn[data-budget="medium"] {
    border-color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.budget-btn[data-budget="medium"].active {
    background: #9b59b6;
    border-color: #9b59b6;
}

.budget-btn[data-budget="high"] {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.budget-btn[data-budget="high"].active {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Цвета для фильтров мест */
.location-btn {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.location-btn.active {
    background: #3498db;
    border-color: #3498db;
}

/* Цвета для фильтров тематики */
.theme-btn {
    border-color: #ff4d8d;
    background: rgba(255, 77, 141, 0.1);
}

.theme-btn.active {
    background: #ff4d8d;
    border-color: #ff4d8d;
}

/* Кнопки управления генератором */
.generator-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.generate-idea-btn,
.random-idea-btn,
.save-idea-btn {
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    min-width: 200px;
    color: white;
}

.generate-idea-btn {
    background: linear-gradient(to right, #ff4d8d, #e84393);
}

.generate-idea-btn:hover {
    background: linear-gradient(to right, #e84393, #ff4d8d);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 141, 0.4);
}

.random-idea-btn {
    background: linear-gradient(to right, #a855f7, #8b5cf6);
}

.random-idea-btn:hover {
    background: linear-gradient(to right, #8b5cf6, #a855f7);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.save-idea-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
}

.save-idea-btn:hover {
    background: linear-gradient(to right, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.save-idea-btn.saved {
    background: linear-gradient(to right, #27ae60, #229954);
}

.save-idea-btn.saved:hover {
    background: linear-gradient(to right, #229954, #27ae60);
}

/* Сохраненные идеи */
.saved-section {
    background: rgba(26, 15, 46, 0.9);
    border-radius: 25px;
    padding: 35px;
    border: 2px solid #27ae60;
    margin-bottom: 40px;
}

.saved-container {
    margin-top: 20px;
}

.saved-ideas-list {
    min-height: 150px;
    background: rgba(15, 10, 26, 0.7);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

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

.saved-idea-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-pink);
    transition: all 0.3s;
}

.saved-idea-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.saved-idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.saved-idea-title {
    font-size: 1.2rem;
    color: var(--light-pink);
    font-weight: 600;
}

.saved-idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.saved-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.remove-saved-btn {
    background: rgba(231, 76, 60, 0.3);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.remove-saved-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.saved-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.clear-saved-btn,
.export-saved-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.clear-saved-btn {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.clear-saved-btn:hover {
    background: linear-gradient(to right, #c0392b, #e74c3c);
    transform: translateY(-3px);
}

.export-saved-btn {
    background: linear-gradient(to right, #9b59b6, #8e44ad);
}

.export-saved-btn:hover {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    transform: translateY(-3px);
}

/* Категории свиданий */
.categories-section {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(139, 92, 246, 0.15));
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 40px;
    border: 2px solid #9b59b6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.date-category-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.date-category-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--light-pink);
}

.date-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-pink), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.date-category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light-pink);
    transition: all 0.3s;
}

.date-category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--primary-pink);
}

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

.date-category-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.ideas-count {
    background: rgba(241, 196, 15, 0.2);
    color: var(--light-pink);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: 2px solid #f1c40f;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Популярные идеи */
.popular-section {
    background: rgba(26, 15, 46, 0.9);
    border-radius: 25px;
    padding: 35px;
    border: 2px solid #e74c3c;
    margin-bottom: 40px;
}

.popular-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.popular-idea-card {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(231, 76, 60, 0.1));
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    transition: all 0.3s;
}

.popular-idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.idea-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.idea-rating {
    color: #f1c40f;
    font-size: 0.9rem;
}

.idea-rating i {
    margin-right: 2px;
}

.idea-uses {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.idea-uses i {
    margin-right: 5px;
    color: #3498db;
}

/* Планировщик свиданий */
.planner-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.15));
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 40px;
    border: 2px solid #3498db;
}

.planner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.planner-form {
    background: rgba(15, 10, 26, 0.8);
    border-radius: 15px;
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--light-pink);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-pink);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 2px rgba(255, 77, 141, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.save-plan-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.save-plan-btn:hover {
    background: linear-gradient(to right, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.planner-calendar {
    background: rgba(15, 10, 26, 0.8);
    border-radius: 15px;
    padding: 25px;
}

.planner-calendar h3 {
    color: var(--light-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.planner-calendar h3 i {
    color: var(--primary-pink);
}

.upcoming-dates {
    min-height: 200px;
}

.date-plan-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid #3498db;
}

.date-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.date-plan-title {
    font-weight: 600;
    color: var(--light-pink);
}

.date-plan-date {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
}

.date-plan-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Советы для свиданий */
.tips-section {
    background: rgba(26, 15, 46, 0.9);
    border-radius: 25px;
    padding: 35px;
    border: 2px solid #f1c40f;
}

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

.tip-card {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(243, 156, 18, 0.1));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(241, 196, 15, 0.3);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    background: rgba(241, 196, 15, 0.15);
    border-color: #f1c40f;
}

.tip-card i {
    font-size: 2.5rem;
    color: #f1c40f;
    margin-bottom: 15px;
}

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

.tip-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .planner-container {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .generator-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .generate-idea-btn,
    .random-idea-btn,
    .save-idea-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .budget-filter,
    .location-filter,
    .theme-filter,
    .time-filter,
    .couple-filter {
        justify-content: center;
    }
    
    .budget-btn,
    .location-btn,
    .theme-btn,
    .time-btn,
    .couple-btn {
        min-width: calc(50% - 10px);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .saved-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .clear-saved-btn,
    .export-saved-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .budget-btn,
    .location-btn,
    .theme-btn,
    .time-btn,
    .couple-btn {
        min-width: 100%;
    }
    
    .idea-display {
        padding: 25px 15px;
        min-height: 220px;
    }
    
    .idea-title {
        font-size: 1.3rem;
    }
    
    .idea-description {
        font-size: 1rem;
    }
}