/* ==========================================================================
   VALORACION CIRUGIA CAPILAR - Additional Styles
   Extends valoracion.css classes (.vt-*)
   ========================================================================== */


/* ==========================================================================
   1. PHOTO NOTICE / GUIDE SECTION
   ========================================================================== */

.vt-photo-notice {
    background: var(--bg-secondary);
}

.vt-photo-guide {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 24px;
}

.vt-photo-guide__item {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition, all 0.3s ease);
}

.vt-photo-guide__item:hover {
    border-color: var(--accent-20);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.vt-photo-guide__preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--accent);
}

.vt-photo-guide__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vt-photo-guide__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.vt-photo-guide__desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.vt-photo-notice__tip {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vt-photo-notice__tip svg {
    color: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .vt-photo-guide {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .vt-photo-guide {
        grid-template-columns: repeat(2, 1fr);
    }
    .vt-photo-guide__item {
        padding: 14px 8px;
    }
    .vt-photo-guide__preview {
        width: 60px;
        height: 60px;
    }
}


/* ==========================================================================
   2. QUESTION HINT
   ========================================================================== */

.vt-question__hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}


/* ==========================================================================
   3. PHOTOS GRID (all 5 on one screen)
   ========================================================================== */

.vt-photos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.vt-photo-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.vt-photo-slot__ref {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.vt-photo-slot--uploaded .vt-photo-slot__ref {
    opacity: 0.25;
}

.vt-photo-slot__ref img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vt-photo-slot__upload {
    width: 100%;
}

.vt-photo-slot__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    background: #F9FAFB;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    min-height: 80px;
}

.vt-photo-slot__dropzone:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.vt-photo-slot__dropzone--dragover {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.vt-photo-slot__dropzone svg {
    color: var(--accent);
    opacity: 0.5;
}

.vt-photo-slot__dropzone span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.vt-photo-slot__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.vt-photo-slot__preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--accent-20);
}

.vt-photo-slot__thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.vt-photo-slot__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.vt-photo-slot__remove:hover {
    background: #DC2626;
}

.vt-photo-slot__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.vt-photo-slot__status {
    font-size: 10px;
    text-align: center;
    min-height: 14px;
}

.vt-photo-slot__status--ok {
    color: var(--accent);
}

.vt-photo-slot__status--error {
    color: #EF4444;
    font-weight: 600;
}

.vt-photos-bulk {
    text-align: center;
    margin: 16px 0 8px;
    position: relative;
}

.vt-photos-bulk .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vt-photos-bulk__hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.vt-photos-counter {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.vt-photos-counter__current {
    font-weight: 700;
    color: var(--accent);
}


/* ==========================================================================
   4. SELECT DROPDOWN
   ========================================================================== */

.vt-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.vt-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}


/* ==========================================================================
   5. RESPONSIVE MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .vt-photos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .vt-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .vt-photo-slot__ref {
        width: 56px;
        height: 56px;
    }
    .vt-photo-slot__dropzone {
        padding: 12px 6px;
        min-height: 64px;
    }
    .vt-photo-slot__thumb {
        height: 80px;
    }
}
