/* css/shoe-editor.css */
.editor {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    margin-top: 60px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.editor h2 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    margin-bottom: 20px;
}

.editor h3 {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    margin-bottom: 15px;
}

.editor p {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    color: #ccc;
    margin-bottom: 30px;
}

/* Блок с обувью */
.shoe-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
}

/* Фотография-основа */
.shoe-base {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Детали обуви */
.shoe-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Информация о размере */
.size-info {
    margin-top: 15px;
    font-family: 'Roboto', sans-serif;
    color: #ccc;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
    animation-delay: 0.1s;
}

.size-info p {
    font-size: 16px;
}

.size-info span {
    color: #ffd700;
    font-weight: bold;
}

/* Управление */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

.parts-list, .color-section {
    width: 45%;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

/* Стили для списка деталей */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parts-list li {
    padding: 10px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 5px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.parts-list li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.parts-list li.selected {
    background: rgba(255, 215, 0, 0.5);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Выбор цвета */
.color-picker {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Добавлено для аккуратного расположения ползунков */
}

.color-picker label {
    font-family: 'Roboto', sans-serif;
    color: #ffd700;
    margin-right: 10px;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
}

.color-picker input[type="range"] {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
}

/* Стили для кнопок */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.form-btn {
    padding: 12px 20px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

.form-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.form-btn:active {
    transform: scale(0.98);
}

/* Инструкция */
.design-guide {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
    animation-delay: 0.6s;
}

.design-guide h3 {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    margin-bottom: 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.guide-image img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.guide-text {
    font-family: 'Roboto', sans-serif;
    color: #ccc;
    text-align: left;
}

.guide-text ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.guide-text li {
    margin-bottom: 10px;
    background: none;
    color: #ccc;
    transform: none;
    box-shadow: none;
}

.guide-text li:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

.guide-text p {
    font-size: 16px;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .editor {
        padding: 40px 10px;
    }

    .editor h2 {
        font-size: 36px;
    }

    .editor p {
        font-size: 16px;
    }

    .shoe-container {
        width: 300px;
        height: 300px;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .parts-list, .color-section {
        width: 100%;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-image img {
        max-width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .editor h2 {
        font-size: 28px;
    }

    .editor h3 {
        font-size: 20px;
    }

    .shoe-container {
        width: 250px;
        height: 250px;
    }

    .form-btn {
        font-size: 14px;
        padding: 10px;
    }

    .design-guide {
        padding: 20px;
    }
}