/* Audio Scout Minimal - Ultra-Clean Mobile Recording Studio */

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Ensure smooth 60fps animations */
* {
    transition: color 200ms ease-out, 
                background-color 200ms ease-out, 
                border-color 200ms ease-out, 
                transform 200ms ease-out,
                opacity 200ms ease-out;
}

/* Touch-optimized button sizes */
button, .touch-manipulation {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Custom animations for record button */
@keyframes gentlePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes pulseRing {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* Smooth backdrop blur for header */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3B82F6;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    button {
        border: 2px solid currentColor;
    }
}

/* Safe area support for modern mobile devices */
@supports (padding: max(0px)) {
    .safe-bottom {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .safe-top {
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

/* Optimized for one-handed use */
@media (max-width: 768px) {
    /* Position record button in thumb-friendly zone */
    .fixed.bottom-6 {
        bottom: max(24px, env(safe-area-inset-bottom, 24px));
    }
    
    /* Ensure transcript doesn't interfere with thumb zone */
    .transcript-panel {
        bottom: max(140px, calc(120px + env(safe-area-inset-bottom)));
    }
}

/* Landscape mobile adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .fixed.bottom-6 {
        bottom: 16px;
    }
}

/* Ultra-subtle shadow for floating elements */
.shadow-lg {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Clean loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Typography optimizations */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS input zoom prevention */
@media (max-width: 768px) {
    input[type="text"],
    textarea {
        font-size: 16px;
    }
}

/* Gesture-friendly spacing */
.touch-target {
    padding: 12px;
    margin: 4px;
}

/* Visual hierarchy through subtle opacity changes */
.text-soft-gray {
    color: #71717A;
}

.border-subtle-border {
    border-color: #E4E4E7;
}

.bg-soft-bg {
    background-color: #FAFAFA;
}

/* Minimal scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #E4E4E7;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4D4D8;
}