/**
 * Glass Action Buttons - Glassmorphism style matching widget cards
 * Used for home screen bottom action buttons
 */

/* Glass Action Buttons - matching widget style */
.glass-action-button {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.25);
}

.glass-action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Large variant (20% bigger) */
.glass-action-button-large {
    padding: 0.6rem 0.9rem;
    font-size: 1.1em;
}

/* Red glass for SOS */
.glass-action-red {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.8);
}

.glass-action-red:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(239, 68, 68, 1);
}

/* Green glass for Live Journey */
.glass-action-green {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.8);
}

.glass-action-green:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(16, 185, 129, 1);
}

/* Teal glass for Sound Scape */
.glass-action-soundscape {
    background: rgba(20, 184, 166, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-action-soundscape:hover {
    background: rgba(20, 184, 166, 0.4);
}

/* Pulse glow animation for SOS */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                    0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                    0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .glass-action-button {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Notes screen variant - darker background for visibility on white */
#notes-screen .glass-action-soundscape {
    background: rgba(20, 184, 166, 0.15);
    border: 2px solid rgba(20, 184, 166, 0.4);
    color: #0f766e;
    text-shadow: none;
    transition: all 0.3s ease;
}

#notes-screen .glass-action-soundscape:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.6);
}

#notes-screen .glass-action-soundscape svg {
    stroke: #0f766e;
}

/* Recording active state */
#notes-screen .glass-action-soundscape.recording {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.6);
    color: #dc2626;
}

#notes-screen .glass-action-soundscape.recording svg {
    stroke: #dc2626;
}

/* Recording indicator dot */
.rec-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: rec-pulse 1s ease-in-out infinite;
}

.rec-indicator.hidden {
    display: none;
}

@keyframes rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
