/* ============================================
   Camera / Photo Styles
   ============================================ */
.camera-viewfinder {
    position: relative;
    background: linear-gradient(135deg, #0a1628, #1a2840);
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.camera-guide-frame {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(52, 211, 153, 0.5);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: guidePulse 2s infinite;
}

@keyframes guidePulse {

    0%,
    100% {
        border-color: rgba(52, 211, 153, 0.5);
    }

    50% {
        border-color: rgba(52, 211, 153, 0.9);
    }
}

.camera-guide-text {
    color: rgba(52, 211, 153, 0.7);
    font-size: 0.75rem;
    text-align: center;
}

.camera-overlay-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.camera-shutter {
    position: absolute;
    bottom: 50px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.camera-shutter:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.camera-shutter.flash {
    animation: flashAnim 0.3s;
}

@keyframes flashAnim {
    0% {
        background: rgba(255, 255, 255, 1);
    }

    100% {
        background: rgba(255, 255, 255, 0.15);
    }
}

.voice-indicator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.voice-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.voice-waves span {
    width: 4px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 2px;
    opacity: 0.3;
}

.voice-indicator.recording .voice-waves span {
    animation: voiceWave 0.6s ease-in-out infinite alternate;
    opacity: 1;
}

.voice-indicator.recording .voice-waves span:nth-child(1) {
    animation-delay: 0s;
}

.voice-indicator.recording .voice-waves span:nth-child(2) {
    animation-delay: 0.1s;
}

.voice-indicator.recording .voice-waves span:nth-child(3) {
    animation-delay: 0.2s;
}

.voice-indicator.recording .voice-waves span:nth-child(4) {
    animation-delay: 0.3s;
}

.voice-indicator.recording .voice-waves span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes voiceWave {
    0% {
        height: 8px;
    }

    100% {
        height: 35px;
    }
}

.voice-text-output {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.photo-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.photo-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.photo-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.photo-tags {
    padding: 8px 12px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.tag-warn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-ok {
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-green);
    border-color: rgba(52, 211, 153, 0.2);
}

.photo-meta {
    padding: 6px 12px 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Delete button on photo cards */
.photo-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

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

.photo-delete-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    transform: scale(1.15);
}