/* Custom styles to complement Tailwind CSS */

/* Fix for aspect ratio utilities if not supported by the browser */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-w-16 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Fullscreen button styles */
#fullscreen-btn {
    opacity: 0.8;
    z-index: 10;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#fullscreen-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Apple-inspired color accents */
.apple-blue {
    color: #0071e3;
}

.apple-bg {
    background-color: #f5f5f7;
}

/* Responsive iframe adjustments for mobile */
@media (max-width: 640px) {
    .aspect-w-16 {
        padding-bottom: 75%; /* Slightly taller on mobile */
    }
    
    .aspect-w-16 iframe {
        min-height: 300px;
    }
    
    #fullscreen-btn {
        padding: 0.35rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Smooth transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Improved focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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