/* ========================================
   ACTIVITY EDIT COMPONENTS
   Styles for edit activity page
======================================== */

/* Existing Photos Section */
.existing-photos-section {
    margin-bottom: 1.5rem;
}

.existing-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.existing-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.existing-photo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.existing-photo-item.primary {
    border-color: var(--success);
    border-width: 3px;
}

.existing-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.photo-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 2;
}

.existing-photo-item:hover .photo-delete-btn {
    opacity: 1;
}

.photo-delete-btn:hover {
    background: var(--danger);
    transform: scale(1.15) rotate(90deg);
}

/* New Photos Section */
.new-photos-section {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .existing-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
