/* Основные стили */
:root {
    --primary-color: #5a6978;
    --secondary-color: #8d9ca8;
    --background-color: #f5f5f5;
    --card-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --hover-color: #f0f0f0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --positive-color: #6a8d73;
    --negative-color: #a17c6b;
    --complexity-color: #7c8da3;
}
 
@font-face {
    font-family: 'Supermolot Thin';
    src: url('https://fonts.cdnfonts.com/css/supermolot') format('woff2');
    font-weight: 300;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Supermolot Thin', 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Заголовок и поиск */
header {
    margin-bottom: 2rem;
    text-align: center;
}

header h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 300;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#search-input, #category-filter {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Supermolot Thin', 'Roboto', sans-serif;
}

#search-input {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}

#category-filter {
    min-width: 150px;
    cursor: pointer;
}

/* Карточки идей */
.idea-card {
    background-color: var(--card-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.idea-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--card-color);
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.idea-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.idea-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 300;
    flex-shrink: 0;
}

.idea-card.favorited .idea-number {
    background-color: red;
}

.idea-title h2 {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--primary-color);
}

.complexity-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    color: var(--complexity-color);
}

.complexity-label {
    font-size: 0.9rem;
}

.complexity-value {
    font-size: 1.1rem;
    font-weight: 400;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.expand-btn:hover {
    background-color: var(--hover-color);
}

.idea-short-description {
    padding: 0 1.5rem 1.25rem;
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.5;
}

.idea-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.idea-card.expanded .idea-content {
    padding: 1.5rem;
    max-height: 2000px;
    border-top: 1px solid var(--border-color);
}

.idea-card.expanded .expand-btn i {
    transform: rotate(180deg);
}

.idea-full-description, .idea-benefits, .idea-drawbacks, .idea-applicability {
    margin-bottom: 1.5rem;
}

.idea-full-description h3, .idea-benefits h3, .idea-drawbacks h3, .idea-applicability h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.idea-full-description h3 {
    color: var(--primary-color);
}

.idea-benefits h3 {
    color: var(--positive-color);
}

.idea-drawbacks h3 {
    color: var(--negative-color);
}

.idea-applicability h3 {
    color: var(--complexity-color);
}

.idea-full-description p, .idea-benefits p, .idea-drawbacks p, .idea-applicability p {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #search-input, #category-filter {
        width: 100%;
        max-width: none;
    }
    
    .idea-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .idea-title {
        margin-bottom: 0.5rem;
    }
    
    .idea-title h2 {
        font-size: 1.1rem;
    }
    
    .idea-number {
        width: 2rem;
        height: 2rem;
    }
    
    .complexity-container {
        margin-left: 3.5rem;
        margin-right: 0;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.idea-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Стили для категорий */
.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    background-color: var(--secondary-color);
}

.category-telegram { background-color: #7a9cc6; }
.category-video { background-color: #a17c6b; }
.category-ai { background-color: #8dea9b; }
.category-content { background-color: #6a8d73; }
.category-marketing { background-color: #7c8da3; }
.category-ctv { background-color: #ebaf7e; }
.category-social { background-color: #419392; }
.category-agent { background-color: #a37c9b; }
.category-anal { background-color: #ac8db7; }
/* Стили для пустого результата поиска */
.no-results {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Счетчик идей */
.ideas-counter {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    flex-wrap: wrap;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-grow: 1;
    max-width: 100%;
}

#search-input {
    margin-top: 12px;
    font-size: 16px;
    min-width: 200px;
    flex: 1;
}

#category-filter {
    margin-top: 12px;
    font-size: 16px;
    min-width: 160px;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 12px;
    }

    #search-input, #category-filter {
        width: 100%;
    }
}