/* Header Styles */
.nav-link {
    @apply text-gray-600 hover:text-pink-500 px-3 py-2 text-sm font-medium transition-colors duration-200;
}

.nav-link.active {
    @apply text-pink-500;
}

.login-btn {
    @apply bg-pink-500 text-white hover:bg-pink-600 px-4 py-2 rounded-md;
}

/* Learning Tools Dropdown Styles */
.learning-tools-dropdown {
    z-index: 9999 !important;
    pointer-events: auto !important;
    position: absolute !important;
}

.learning-tools-dropdown a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
}

.learning-tools-button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
}

/* Ensure header is always on top */
app-header {
    position: relative;
    z-index: 1000;
}

/* Override any potential pointer-events issues */
app-header * {
    pointer-events: auto !important;
}

/* Specific override for dropdown container */
app-header .relative {
    position: relative !important;
    z-index: 9999 !important;
}

/* Footer Styles */
app-footer {
    @apply w-full;
}

/* Make sure the footer stays at the bottom */
body {
    @apply flex flex-col min-h-screen;
}

main {
    @apply flex-grow;
} 

/* Loading States & Performance Components */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Popular Songs Section Styles */
.popular-songs {
    @apply bg-gray-50 py-8 sm:py-16;
}

.popular-songs h2 {
    @apply text-2xl sm:text-3xl font-bold text-gray-800 mb-6 sm:mb-8 text-center;
}

.popular-songs .song-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow;
}

.popular-songs .song-card img {
    @apply w-full h-40 sm:h-48 object-cover;
}

.popular-songs .song-card .card-content {
    @apply p-4 sm:p-6;
}

.popular-songs .song-card h3 {
    @apply text-lg sm:text-xl font-semibold text-gray-800 mb-2;
}

.popular-songs .song-card .artist {
    @apply text-gray-600 mb-3 sm:mb-4 text-sm sm:text-base;
}

.popular-songs .song-card .level {
    @apply text-xs sm:text-sm text-gray-500 mb-3 sm:mb-4;
}

.popular-songs .song-card .views {
    @apply text-xs text-pink-500 font-medium mb-3;
}

.popular-songs .song-card .btn {
    @apply block w-full bg-pink-500 text-white py-2 px-4 rounded-lg hover:bg-pink-600 transition-colors text-center text-sm sm:text-base;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-text-medium {
    width: 80%;
}

.skeleton-text-long {
    width: 100%;
}

.skeleton-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Button Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .loading-spinner {
    margin-right: 0.5rem;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pulse Animation for Loading */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading States for Different Components */
.vocabulary-card-loading {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.song-card-loading {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Loading */
@media (max-width: 768px) {
    .loading-spinner-large {
        width: 30px;
        height: 30px;
    }
    
    .loading-overlay-content {
        padding: 1.5rem;
        margin: 1rem;
    }
} 