/* BeAudiCast - Custom Styles for Static HTML */

/* Import Google Fonts for handwritten style */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Kalam:wght@300;400;700&family=Caveat:wght@400;500;600;700&display=swap');

/* Custom font classes matching logo style */
.font-beaudicast {
    font-family: 'Caveat', 'Dancing Script', 'Kalam', cursive;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure proper text rendering */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background clip text support */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backdrop blur support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Custom hover effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Transition classes */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Shadow utilities */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:text-left {
        text-align: left;
    }
    .lg\:justify-start {
        justify-content: flex-start;
    }
    .lg\:justify-end {
        justify-content: flex-end;
    }
}

/* Responsive text sizes */
@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Demo button states */
.demo-play-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-play-btn:hover {
    transform: scale(1.1);
}

.demo-play-btn.playing {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

/* Professional color scheme */
:root {
    --primary-teal: #14b8a6;
    --primary-cyan: #06b6d4;
    --accent-teal: #0d9488;
    --light-teal: #f0fdfa;
    --dark-teal: #134e4a;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Custom gradient utilities */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

/* Loading animation for demo buttons */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile responsiveness improvements */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Ensure proper spacing */
.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Utility classes for display */
.grid {
    display: grid;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

/* Flexbox utilities */
.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Spacing utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-8 { margin-top: 2rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Border utilities */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Width utilities */
.w-full {
    width: 100%;
}

.w-12 {
    width: 3rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

/* Height utilities */
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }

/* Margin auto */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Leading (line-height) */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Advanced Audio Player Styles */
.audio-player {
    position: relative;
}

.audio-player audio {
    display: none;
}

.play-pause-btn {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    filter: brightness(110%);
}

.play-pause-btn:active {
    transform: scale(1.05);
}

.progress-container {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.progress-container:hover .progress-bar {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    transition: all 0.2s ease;
    position: relative;
    border-radius: 9999px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.player-info {
    flex: 1;
}

.status-text {
    transition: color 0.2s ease;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

/* Loading states for audio */
.audio-player.loading .play-pause-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Error states */
.audio-player.error .play-pause-btn {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    cursor: not-allowed;
}

.audio-player.error .status-text {
    color: #ef4444;
}

/* Responsive audio player adjustments */
@media (max-width: 640px) {
    .audio-player .flex.items-center.space-x-3 {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .play-pause-btn {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
    
    .player-info {
        min-width: 0;
        flex: 1 1 auto;
    }
}

/* Enhanced focus states for audio controls */
.play-pause-btn:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

.progress-container:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
    border-radius: 9999px;
}

/* Smooth transitions for all audio elements */
.audio-player * {
    transition: all 0.2s ease;
}