/* ===== Photo Type Selector - Matching Camera/Location Headers ===== */

.photo-type-selector-card {
    background: var(--photo-bg-5, var(--rz-panel-background-color));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

    .photo-type-selector-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

/* Header - Match photo-exif-header and photo-location-header exactly */
.photo-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--photo-bg-1);
    background-color: var(--photo-bg-2);
}

    .photo-type-header i {
        font-size: 24px;
        color: var(--photo-text);
        flex-shrink: 0;
    }

.photo-type-header-content {
    flex: 1;
}

.photo-type-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--photo-text);
}

.photo-type-subtitle {
    display: none; /* Hide subtitle to match other headers */
}

/* Options Grid */
.photo-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--photo-bg-5);
}

.photo-type-option {
    position: relative;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--photo-bg-3);
    background: var(--rz-base);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .photo-type-option:hover {
        border-color: var(--photo-text-accent, var(--rz-primary-lighter));
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.photo-type-option-selected {
    border-color: var(--photo-color, var(--rz-primary));
    background: var(--photo-bg-2, var(--rz-primary-lighter));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.photo-type-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--rz-base-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-type-option-selected .photo-type-option-icon {
    background: var(--photo-color, var(--rz-primary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-type-option-icon i {
    font-size: 28px;
    color: var(--rz-text-secondary-color);
    transition: all 0.3s ease;
}

.photo-type-option-selected .photo-type-option-icon i {
    color: white;
}

.photo-type-option-content {
    flex: 1;
}

.photo-type-option-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rz-text-color);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.photo-type-option-desc {
    font-size: 14px;
    color: var(--rz-text-secondary-color);
    margin: 0;
    line-height: 1.5;
}

.photo-type-option-checkmark {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--photo-color, var(--rz-success));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmark-pop 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .photo-type-option-checkmark i {
        font-size: 14px;
        color: white;
        font-weight: 700;
    }

@keyframes checkmark-pop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ===== Dark Mode ===== */
.rz-material-dark .photo-type-selector-card {
    background: var(--rz-base-800);
}

.rz-material-dark .photo-type-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.rz-material-dark .photo-type-option {
    background: var(--rz-base-900);
    border-color: var(--rz-base-700);
}

    .rz-material-dark .photo-type-option:hover {
        border-color: var(--rz-primary);
    }

.rz-material-dark .photo-type-option-icon {
    background: var(--rz-base-800);
}

/* ===== Animal Selection Card ===== */
.animal-selection-card {
    padding: 24px;
    margin: 0 24px 24px 24px;
    background: var(--rz-base);
    border: 2px dashed var(--photo-color, var(--rz-primary));
}

.animal-selection-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.animal-selection-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--photo-bg-3, var(--rz-primary-lighter));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .animal-selection-icon i {
        font-size: 20px;
        color: var(--photo-color, var(--rz-primary));
    }

.animal-selection-content {
    flex: 1;
}

.animal-selection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rz-text-color);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.animal-selection-desc {
    font-size: 14px;
    color: var(--rz-text-secondary-color);
    margin: 0;
}

.animal-selection-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.animal-selection-button {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

    .animal-selection-button i:last-child {
        margin-left: auto;
    }

.animal-selection-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--photo-bg-5, var(--rz-info-lighter));
    border-left: 4px solid var(--photo-color, var(--rz-info));
    border-radius: 0 8px 8px 0;
}

    .animal-selection-hint i {
        font-size: 16px;
        color: var(--photo-text, var(--rz-info));
        flex-shrink: 0;
    }

    .animal-selection-hint span {
        font-size: 14px;
        color: var(--rz-text-secondary-color);
        line-height: 1.5;
    }

.rz-material-dark .animal-selection-card {
    background: var(--rz-base-900);
}

.rz-material-dark .animal-selection-hint {
    background: var(--rz-base-800);
}

/* ===== Selected Animal Wrapper ===== */
.selected-animal-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /*    border: 2px solid var(--photo-color, var(--rz-success));
*/

    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .selected-animal-wrapper:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

.selected-animal-header {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-animal-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--photo-color, var(--rz-success));
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .selected-animal-badge i {
        font-size: 16px;
    }

.selected-animal-remove {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--rz-danger);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .selected-animal-remove:hover {
        background: var(--rz-danger-dark);
        transform: scale(1.1);
    }

    .selected-animal-remove i {
        font-size: 18px;
    }

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .photo-type-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .photo-type-header {
        padding: 16px;
    }

    .photo-type-title {
        font-size: 20px;
    }

    .photo-type-option {
        padding: 16px;
    }

    .photo-type-option-icon {
        width: 48px;
        height: 48px;
    }

        .photo-type-option-icon i {
            font-size: 24px;
        }
}