/* editingTools.css - Styles for portrait editing tools */

/* Common section styling */
.portrait-carousel-section,
.move-buttons-section,
.resize-rotate-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 5px;
}

.portrait-carousel-label,
.section-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.portrait-carousel-controls,
.move-buttons,
.control-buttons {
    display: flex;
    gap: 10px;
}

/* Move button styling */
.move-button {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px 15px;
}

.move-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Control buttons styling */
.control-button {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px 15px;
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Slider styling */
.temperature-slider,
.contrast-slider {
    flex: 1;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: white;
    outline: none;
    opacity: 0.7;
    border-radius: 1px;
}

.temperature-slider::-webkit-slider-thumb,
.contrast-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}

.temperature-slider::-moz-range-thumb,
.contrast-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* Text editor styling */
.text-editor {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.text-editor input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 4px 0;
    font-size: 12px;
    margin-bottom: 2px;
}

.text-editor input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.text-editor input:focus {
    outline: none;
    border-bottom: 1px solid #3498db;
}

/* Portrait controls in editing tools */
.portrait-controls-section,
.portrait-carousel-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.portrait-controls-section h3,
.portrait-carousel-section h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.portrait-controls-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portrait-control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portrait-control-group label {
    color: white;
    font-size: 12px;
    min-width: 60px;
}

.portrait-control-group .control-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rotate-left-btn,
.rotate-right-btn,
.scale-down-btn,
.scale-up-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotate-left-btn:hover,
.rotate-right-btn:hover,
.scale-down-btn:hover,
.scale-up-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.rotation-value,
.scale-value {
    color: white;
    font-size: 12px;
    min-width: 40px;
    text-align: center;
}

.save-position-btn {
    width: 100%;
    margin-top: 5px;
    padding: 10px 20px;
    background-color: rgba(0, 120, 255, 0.5);
    border: 1px solid rgba(0, 120, 255, 0.8);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-position-btn:hover {
    background-color: rgba(0, 120, 255, 0.7);
}

.portrait-carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.carousel-prev,
.carousel-next {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.portrait-preview {
    width: 60px;
    height: 60px;
    border: 1px solid white;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Editing tools popup */
.editing-tools-popup {
    display: none;
    position: fixed;
    margin-bottom: -190px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid white;
    border-radius: 10px;
    padding: 12px;
    z-index: 1000;
    width: calc(281.25px - 10px);
    max-width: 800px;
    height: auto;
    max-height: 600px;
    overflow-y: auto;
}

.editing-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.editing-tools-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.editing-tools-title {
    font-size: 13px;
    font-weight: bold;
}

.close-editor-button {
    margin-left: auto;
    width: 28px;
    height: 28px;
    font-size: 12px;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-editor-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Temperature controls */
.temperature-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.temperature-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #00a2ff, #ffffff, #ffd700);
    border-radius: 3px;
    outline: none;
}

.temperature-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.temperature-label {
    font-size: 12px;
    color: #666;
    min-width: 40px;
    text-align: center;
}

/* Sliders section */
.sliders {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

/* Face Editing Tools Section */
.face-editing-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.face-editing-section h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: bold;
}

.face-editing-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.face-control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.face-control-group label {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.face-control-group input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.face-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.face-control-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.face-control-group span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-align: right;
    min-width: 30px;
}

.face-reset-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 59, 48, 0.5);
    border: 1px solid rgba(255, 59, 48, 0.8);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.face-reset-btn:hover {
    background-color: rgba(255, 59, 48, 0.7);
}
