/* static/public/css/themes.css */

/* =============================================================================
   СТИЛИ ДЛЯ СТРАНИЦ ТЕМ - АДАПТИРОВАНЫ ПОД БАЗОВЫЙ ШАБЛОН
============================================================================= */

/* Хлебные крошки (используем общие стили из base.css) */
.breadcrumbs-section {
    background: var(--gray-50);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    color: var(--gray-400);
    font-weight: 600;
}

.breadcrumb-current {
    color: var(--gray-700);
    font-weight: 600;
}

/* Заголовок страницы */
.page-header {
    padding: 3rem 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-header__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Секции */
.themes-section,
.theme-stats,
.content-section,
.gallery-section,
.slots-section,
.similar-themes {
    padding: 3rem 0;
}

.content-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-blue);
    border-radius: 2px;
}

.section-intro {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.content-text {
    color: var(--gray-700);
    line-height: 1.7;
}

/* Hero секция темы */
.theme-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.theme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.theme-hero__content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.theme-hero__image {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.theme-hero__text {
    flex: 1;
}

.theme-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-hero__description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Сетка тем */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.theme-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.theme-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.theme-image-placeholder {
    width: 100%;
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.theme-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.theme-content {
    padding: 2rem;
}

.theme-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.theme-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.theme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slots-count {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.theme-link-btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-link-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    color: var(--white);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-blue);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Слоты */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.slot-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.slot-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.slot-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.slot-info {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slot-info__icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.slot-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.demo-btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
    color: var(--white);
}

/* Похожие темы */
.similar-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.similar-theme-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.similar-theme-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.similar-theme-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.similar-theme-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

/* Пустые состояния */
.no-themes,
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.no-themes h3,
.empty-state h3 {
    font-size: 2rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.no-themes p,
.empty-state p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* Пагинация */
.pagination-container {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.pagination li a,
.pagination li span {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-300);
    font-weight: 500;
    transition: all 0.2s;
    min-width: 48px;
    text-align: center;
}

.pagination li.active span,
.pagination li.current span {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

.pagination li a:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .themes-grid,
    .slots-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header__title {
        font-size: 2rem;
    }

    .theme-hero {
        padding: 2rem 0;
    }

    .theme-hero__content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .theme-hero__title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-section,
    .themes-section,
    .gallery-section,
    .slots-section,
    .similar-themes {
        padding: 2rem 0;
    }

    .theme-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .theme-link-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .theme-content {
        padding: 1.5rem;
    }

    .theme-hero__image {
        width: 100px;
        height: 100px;
    }

    .pagination li a,
    .pagination li span {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}