/* ============================================
   СТРАНИЦА ГЕНЕРАТОРА
   ============================================ */

.gen-page {
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Hero */
.gen-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.gen-title {
    font-family: Montserrat;
    font-size: 52px;
    font-weight: 900;
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.1;
}

.gen-subtitle {
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 600;  /* добавь или измени это */
    color: #666;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

/* Карточка формы */
.gen-form-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.gen-form-card {
    background: #f7f8fa;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Поля */
.gen-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gen-label {
    font-family: Montserrat;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Чипы */
.gen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-family: Montserrat;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f0f2f5;
    border: 2px solid transparent;
    border-radius: 100px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff;
}

.chip:hover {
    color: #0073ff;
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
}

.chip.active {
    background: linear-gradient(135deg, #007fff, #00cfff);
    color: #fff;
    border-color: transparent;
    box-shadow: 3px 3px 10px rgba(0, 127, 255, 0.3);
}

/* Инпуты */
.gen-input {
    font-family: Montserrat;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    background: #f0f2f5;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.gen-input:focus {
    border-color: #0073ff;
    box-shadow: inset 2px 2px 6px #d1d9e6, inset -2px -2px 6px #ffffff, 0 0 0 3px rgba(0, 115, 255, 0.1);
}

.gen-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Кнопка */
.gen-btn {
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #007fff, #00cfff);
    border: none;
    border-radius: 100px;
    padding: 16px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 12px rgba(0, 127, 255, 0.3);
    align-self: flex-start;
}

.gen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 16px rgba(0, 127, 255, 0.4);
}

.gen-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.gen-btn-icon {
    font-size: 20px;
    transition: transform 0.2s;
}

.gen-btn:hover .gen-btn-icon {
    transform: translateX(4px);
}

/* ============================================
   РЕЗУЛЬТАТ
   ============================================ */

.gen-result {
    max-width: 860px;
    margin: 48px auto 0;
    padding: 0 20px;
}

.gen-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.gen-result-title {
    font-family: Montserrat;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    padding: 0;
    margin: 0;
}

.gen-regenerate {
    font-family: Montserrat;
    font-size: 13px;
    font-weight: 700;
    color: #0073ff;
    background: #f0f2f5;
    border: none;
    border-radius: 100px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff;
}

.gen-regenerate:hover {
    background: linear-gradient(135deg, #007fff, #00cfff);
    color: #fff;
}

.gen-block {
    background: #f7f8fa;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
}

.gen-block-label {
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
    padding: 0;
}

/* Палитра */
.gen-palette {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.palette-swatch {
    flex: 1;
    min-width: 80px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.palette-swatch:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 6px 10px 20px rgba(0, 0, 0, 0.2);
}

.palette-swatch.copied::after {
    content: '✓ Скопировано';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.swatch-hex {
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.swatch-label {
    font-family: Montserrat;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 2px;
}

/* Шрифты */
.gen-fonts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.font-card {
    flex: 1;
    min-width: 200px;
    background: #f0f2f5;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 3px 3px 7px #d1d9e6, inset -3px -3px 7px #ffffff;
}

.font-role {
    font-family: Montserrat;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.font-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.font-sample {
    color: #333;
    line-height: 1.4;
}

/* Объяснение */
.gen-explanation {
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    line-height: 1.7;
    padding: 0;
    margin: 0;
}

/* Превью */
.gen-preview {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1);
}

.preview-inner {
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.preview-body {
    padding: 32px 24px;
    background: #fff;
}

.preview-chips {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.03);
}

.gen-hint {
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */

@media screen and (max-width: 525px) {
    .gen-title {
        font-size: 36px;
    }

    .gen-hero {
        padding: 40px 20px 24px;
    }

    .gen-form-card {
        padding: 24px 20px;
    }

    .gen-btn {
        width: 100%;
        justify-content: center;
    }

    .palette-swatch {
        min-width: 60px;
        height: 80px;
    }

    .preview-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .preview-header div {
        flex-wrap: wrap;
        gap: 8px;
    }
}