﻿/* ==========================================================================
   УНИКАЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ "ТВОРЧЕСТВО" (animation.shtml)
   Содержит только стили для creative-universe, protection-matrix, arsenal и т.д.
   ========================================================================== */

/* ----- 3D-вселенная творчества (компонент CREATIVE_UNIVERSE) ----- */
.creative-universe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-3d);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.8s var(--ease-soft);
}

/* ----- Панель управления 3D (компонент CREATIVE_CONTROLS) ----- */
.creative-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--z-controls);
    opacity: 0.3;
    transition: opacity 0.3s;
}

    .creative-controls:hover {
        opacity: 1;
    }

.creative-btn {
    padding: 10px 16px;
    background: rgba(10,14,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: var(--color-text-primary);
    font-family: 'Manrope';
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s var(--ease-soft);
    min-width: 180px;
}

    .creative-btn:hover {
        background: rgba(var(--color-accent-blue-rgb), 0.15);
        border-color: rgba(var(--color-accent-blue-rgb), 0.4);
        transform: translateY(-3px);
    }

    .creative-btn.active {
        background: rgba(var(--color-accent-blue-rgb), 0.25);
        border-color: rgba(var(--color-accent-blue-rgb), 0.6);
    }

/* ----- Матрица защиты творческого суверенитета (PROTECTION_MATRIX) ----- */
.protection-matrix-section {
    padding: clamp(80px, 10vh, 120px) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: clamp(60px, 8vh, 100px);
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-green), var(--color-accent-yellow), var(--color-accent-pink));
        border-radius: 2px;
    }

.protection-matrix-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: clamp(80px, 10vh, 120px);
}

.protection-cell-3d {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 2px solid transparent;
    transition: all var(--transition-bounce);
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

    .protection-cell-3d::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, rgba(var(--color-rgb), 0.1), transparent);
        border-radius: inherit;
        z-index: -1;
        opacity: 0;
        transition: opacity var(--transition-smooth);
    }

    .protection-cell-3d:hover {
        transform: translateY(-12px) translateZ(20px);
        border-color: currentColor;
        box-shadow: var(--shadow-xxl);
    }

        .protection-cell-3d:hover::before {
            opacity: 1;
        }

.cell-header-3d {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.cell-icon-3d {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, currentColor, rgba(var(--color-rgb), 0.7));
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
}

.protection-cell-3d:hover .cell-icon-3d {
    transform: scale(1.15) rotate(15deg);
}

.cell-title-3d {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.cell-number-3d {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-family: 'JetBrains Mono';
    margin-top: 4px;
}

.cell-tools-list {
    flex: 1;
    border-radius: var(--radius-lg);
    padding: 20px;
    background: rgba(0,0,0,0.2);
    margin-top: 20px;
    border: 2px solid rgba(255,255,255,0.05);
}

.empty-tools-message {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 30px;
}

.tool-element-3d {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid currentColor;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(5px);
}

    .tool-element-3d:hover {
        transform: translateX(8px);
        background: rgba(255,255,255,0.05);
    }

.tool-header-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tool-title-3d {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-remove-3d {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition-smooth);
}

    .tool-remove-3d:hover {
        color: #ef4444;
    }

.tool-desc-3d {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.tool-tags-3d {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tool-tag-3d {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    color: var(--color-text-muted);
}

/* ----- Статистическая панель (часть PROTECTION_MATRIX) ----- */
.stats-panel-3d {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-top: 48px;
    border: 1px solid rgba(255,255,255,0.05);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.stats-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-card-3d {
    text-align: center;
    padding: 32px 24px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

    .stat-card-3d:hover {
        transform: translateY(-8px) translateZ(10px);
        background: rgba(0,0,0,0.3);
    }

.stat-value-3d {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-accent-pink), var(--color-accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label-3d {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ----- Арсенал инструментов (ARSENAL_SECTION) ----- */
.arsenal-section {
    padding: clamp(80px, 10vh, 120px) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(26,31,41,0.5), rgba(10,14,20,0.8));
    border-radius: var(--radius-2xl);
    margin: 80px 0;
}

.arsenal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.arsenal-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.arsenal-tool-3d {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 2px solid transparent;
    position: relative;
    transition: all var(--transition-bounce);
    user-select: none;
    backdrop-filter: blur(10px);
}

    .arsenal-tool-3d:hover {
        transform: translateY(-8px) translateZ(10px);
        border-color: currentColor;
        box-shadow: var(--shadow-xl);
    }

    .arsenal-tool-3d::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, currentColor, transparent 70%);
        border-radius: inherit;
        z-index: -1;
        opacity: 0;
        transition: opacity var(--transition-smooth);
    }

    .arsenal-tool-3d:hover::before {
        opacity: 0.3;
    }

/* ----- Секция пресетов (PRESETS_SECTION) ----- */
.presets-section {
    padding: clamp(80px, 10vh, 120px) 0;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.preset-card-3d {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 2px solid rgba(255,255,255,0.05);
    transition: all var(--transition-bounce);
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

    .preset-card-3d:hover {
        transform: translateY(-12px) translateZ(20px);
        border-color: var(--color-accent-pink);
        box-shadow: var(--shadow-xxl);
    }

.preset-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.preset-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.preset-desc {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.preset-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-stat {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

/* ----- Адаптивные стили (только для уникальных компонентов) ----- */
@media (max-width: 1024px) {
    .protection-matrix-3d {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .protection-matrix-3d {
        grid-template-columns: 1fr;
    }

    .arsenal-grid {
        grid-template-columns: 1fr;
    }

    .arsenal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid-3d {
        grid-template-columns: 1fr;
    }

    .presets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .protection-cell-3d {
        padding: 20px;
    }

    .cell-tools-list {
        min-height: 150px;
        padding: 16px;
    }

    .arsenal-tool-3d {
        padding: 20px;
    }
}

/* ==========================================================================
   Адаптация панели управления 3D для мобильных устройств
   (унификация с поведением performance-panel)
   ========================================================================== */
@media (max-width: 768px) {
    .creative-controls {
        flex-direction: row;
        bottom: 10px;
        left: 10px;
        right: 10px;
        justify-content: center;
        flex-wrap: wrap;
        opacity: 0.8;
        gap: 8px;
    }

    .creative-btn {
        min-width: auto;
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1 1 auto;
    }

        .creative-btn .creative-label {
            display: none;
        }
}
