/* Photo Capture Modal Styles */
#photo-capture-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#photo-capture-modal.show {
    opacity: 1;
}

#photo-capture-modal .modal-content {
    background-color: var(--mobile-surface);
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#photo-capture-modal.show .modal-content {
    transform: translateY(0);
}

#photo-capture-modal .mobile-modal-header {
    padding: 16px;
    background-color: var(--mobile-surface);
    border-bottom: 1px solid var(--mobile-border);
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

#photo-capture-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 40px;
}

/* Capture Options */
.capture-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.capture-option-card {
    position: relative;
}

.capture-btn {
    width: 100%;
    padding: 24px 16px;
    background-color: var(--mobile-background);
    border: 2px solid var(--mobile-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.capture-btn:hover {
    background-color: var(--mobile-surface);
    border-color: var(--mobile-primary);
}

.capture-btn:active {
    transform: scale(0.98);
}

.capture-btn i {
    font-size: 32px;
    color: var(--mobile-primary);
}

.capture-btn span {
    font-size: 14px;
    font-weight: 500;
    color: var(--mobile-text-primary);
}

/* Captured Photos Section */
.captured-photos {
    margin-bottom: 24px;
}

.captured-photos h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--mobile-text-primary);
    margin-bottom: 12px;
}

#photo-count {
    font-weight: 400;
    color: var(--mobile-text-secondary);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    min-height: 120px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--mobile-background);
    border: 1px solid var(--mobile-border);
}

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

.photo-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-loading i {
    font-size: 24px;
    color: white;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-item:hover .photo-remove {
    opacity: 1;
}

.photo-remove i {
    font-size: 16px;
}

/* Photo Instructions */
.photo-instructions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: var(--mobile-background);
    border-radius: 8px;
}

.photo-instructions i {
    font-size: 20px;
    color: var(--mobile-text-secondary);
    flex-shrink: 0;
}

.photo-instructions p {
    font-size: 14px;
    color: var(--mobile-text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Empty State */
.photo-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: var(--mobile-text-secondary);
    font-size: 14px;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotate 1s linear infinite;
}

/* Dark Theme */
[data-theme="dark"] #photo-capture-modal {
    background-color: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .photo-remove {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 360px) {
    .capture-options {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}