/**
 * LyricsVibe Pro - Custom Styles
 * Add your custom CSS here
 * 
 * @package LyricsVibe
 * @version 1.0.0
 */

/* ================================
   CUSTOM STYLES
   ================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 107, 53, 0.2);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.1s ease;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    z-index: 9999;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--error-color);
}

.notification-warning {
    background: var(--warning-color);
    color: var(--text-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* AJAX Search Results */
.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-list li {
    border-bottom: 1px solid var(--border-color);
}

.search-results-list li:last-child {
    border-bottom: none;
}

.search-results-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text-color);
}

.search-results-list a:hover {
    background: var(--bg-light);
}

.search-results-list img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--secondary-color);
}

.search-result-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
}

/* Form Error States */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--error-color);
    background: rgba(220, 53, 69, 0.05);
}

/* Dark Mode Styles */
body.dark-mode {
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --bg-color: #1a1a2e;
    --bg-light: #0f0f1a;
    --border-color: #2a2a3e;
}

body.dark-mode .site-header {
    background: linear-gradient(135deg, #0a0a14 0%, #12121f 100%);
}

body.dark-mode .lyrics-card,
body.dark-mode .widget {
    background: #0f0f1a;
    border-color: #2a2a3e;
}

body.dark-mode .ajax-search-results {
    background: #1a1a2e;
}

/* Print Styles */
@media print {
    .reading-progress,
    .scroll-to-top,
    .notification,
    .ajax-search-results,
    .lightbox,
    .tooltip {
        display: none !important;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

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

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

/* Slide In Animation */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar for Webkit */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Accessibility Focus Styles */
.focus-visible:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
