/* XK Interactive - Advanced Animations & Effects CSS */
/* Level 4: Interactive Features & Animations */

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D1117 0%, #161B22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
}

.loader-content {
    text-align: center;
    max-width: 300px;
}

.loader-logo {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-icon {
    font-size: 3rem;
    color: #FF6B35;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.loader-brand .brand-text {
    color: #F0F6FC;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.loader-brand .brand-accent {
    color: #FF6B35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.loader-animation {
    margin-bottom: 2rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 53, 0.1);
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #FFD23F 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.loader-text {
    color: #8B949E;
    font-size: 0.9rem;
    animation: textPulse 2s ease-in-out infinite;
}

/* ===== SKELETON SCREENS ===== */
.skeleton {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton.loaded {
    animation: skeletonFadeOut 0.3s ease forwards;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, #30363D 25%, #21262D 50%, #30363D 75%);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-line-full { width: 100%; }
.skeleton-line-medium { width: 75%; }
.skeleton-line-short { width: 50%; }

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #30363D 25%, #21262D 50%, #30363D 75%);
    border-radius: 8px;
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #30363D 25%, #21262D 50%, #30363D 75%);
    border-radius: 50%;
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, #30363D 25%, #21262D 50%, #30363D 75%);
    border-radius: 8px;
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* ===== LOADING INDICATORS ===== */
.spinner-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 53, 0.1);
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dots-loader {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dots-loader .dot {
    width: 8px;
    height: 8px;
    background: #FF6B35;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dots-loader .dot:nth-child(1) { animation-delay: -0.32s; }
.dots-loader .dot:nth-child(2) { animation-delay: -0.16s; }

.pulse-loader {
    width: 40px;
    height: 40px;
    background: #FF6B35;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.wave-loader {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.wave-loader .wave {
    width: 4px;
    height: 40px;
    background: #FF6B35;
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-loader .wave:nth-child(1) { animation-delay: -1.1s; }
.wave-loader .wave:nth-child(2) { animation-delay: -1.0s; }
.wave-loader .wave:nth-child(3) { animation-delay: -0.9s; }

.progress-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-loader .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #FFD23F 100%);
    border-radius: 2px;
    animation: progressIndeterminate 2s ease-in-out infinite;
}

/* ===== MICRO-INTERACTIONS ===== */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.magnetic-element {
    transition: transform 0.1s ease;
}

.glow-hover {
    transition: box-shadow 0.3s ease;
}

.scale-click {
    transition: transform 0.1s ease;
}

/* ===== ADVANCED ANIMATIONS ===== */
.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-down {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-up {
    opacity: 1;
    transform: scale(1);
}

.animate-scale-down {
    opacity: 1;
    transform: scale(1);
}

.animate-rotate-in {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.animate-flip-up {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg);
}

.animate-slide-up {
    opacity: 1;
    transform: translateY(0px) scale(1);
}

.animate-bounce-in {
    opacity: 1;
    transform: scale(1);
}

.animate-glow-in {
    opacity: 1;
    filter: blur(0px) brightness(1);
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-element {
    will-change: transform;
    backface-visibility: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes skeletonFadeOut {
    to { opacity: 0; transform: scale(0.95); }
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes wave {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1.0); }
}

@keyframes progressIndeterminate {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes particle-burst {
    to {
        transform: translate(
            calc(cos(var(--angle)) * var(--velocity)),
            calc(sin(var(--angle)) * var(--velocity))
        );
        opacity: 0;
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35 0%, #FFD23F 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== LAZY LOADING ===== */
[data-lazy] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-lazy].lazy-loaded {
    opacity: 1;
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #FF6B35;
    animation: typewriterBlink 1s infinite;
}

@keyframes typewriterBlink {
    0%, 50% { border-color: #FF6B35; }
    51%, 100% { border-color: transparent; }
}

/* ===== MORPHING EFFECTS ===== */
.morph-text {
    transition: all 0.3s ease;
}

.morph-shape {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== RESPONSIVE ANIMATIONS ===== */
@media (max-width: 768px) {
    .loader-logo-img {
        height: 40px;
    }

    .loader-spinner {
        width: 40px;
        height: 40px;
    }

    .skeleton-image {
        height: 150px;
    }
}

/* ===== 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;
        scroll-behavior: auto !important;
    }

    .parallax-element {
        transform: none !important;
    }

    .loader-logo-img,
    .loader-spinner,
    .skeleton,
    .dots-loader .dot,
    .pulse-loader,
    .wave-loader .wave {
        animation: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .skeleton-line,
    .skeleton-image,
    .skeleton-avatar,
    .skeleton-placeholder {
        background: #FFF !important;
    }

    .loader-spinner {
        border-color: #FFF !important;
        border-top-color: #FF6B35 !important;
    }

    .progress-bar {
        background: #FF6B35 !important;
    }
}

/* ===== GLOBAL SEARCH STYLES ===== */
/* Advanced search interface with filters and suggestions */

.global-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 5vh auto;
    background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
    border: 1px solid #30363D;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Search Header */
.search-header {
    padding: 1.5rem;
    border-bottom: 1px solid #30363D;
    background: rgba(255, 107, 53, 0.02);
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #0D1117;
    border: 2px solid #30363D;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.search-input-container:focus-within {
    border-color: #FF6B35;
}

.search-icon {
    color: #8B949E;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: #F0F6FC;
    font-size: 1.1rem;
    outline: none;
}

.search-input::placeholder {
    color: #8B949E;
}

.search-close {
    background: none;
    border: none;
    color: #8B949E;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-close:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: #8B949E;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-select,
.sort-select {
    background: #0D1117;
    border: 1px solid #30363D;
    color: #F0F6FC;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #FF6B35;
}

/* Search Content */
.search-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Search Suggestions */
.search-suggestions h4,
.search-history h4 {
    color: #F0F6FC;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.suggestions-list,
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item,
.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover,
.history-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.suggestion-item i,
.history-item i {
    color: #FF6B35;
    font-size: 0.9rem;
}

.history-remove {
    background: none;
    border: none;
    color: #8B949E;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    margin-left: auto;
    transition: all 0.2s ease;
}

.history-remove:hover {
    color: #E74C3C;
    background: rgba(231, 76, 60, 0.1);
}

/* Search Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363D;
}

.results-header h4 {
    color: #F0F6FC;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.02);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.result-content {
    flex: 1;
}

.result-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.result-type,
.result-category {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.result-category {
    background: rgba(139, 148, 158, 0.1);
    color: #8B949E;
}

.result-title {
    color: #F0F6FC;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.result-description {
    color: #8B949E;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #8B949E;
}

.result-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search Empty State */
.search-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    color: #8B949E;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #F0F6FC;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #8B949E;
    margin-bottom: 2rem;
}

.search-tips {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.search-tips h5 {
    color: #F0F6FC;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.search-tips ul {
    color: #8B949E;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Search Loading */
.search-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 53, 0.1);
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.search-loading p {
    color: #8B949E;
    font-size: 0.9rem;
}

/* Search Footer */
.search-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #30363D;
    background: rgba(255, 107, 53, 0.02);
}

.search-shortcuts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8B949E;
    font-size: 0.8rem;
}

.shortcut kbd {
    background: #30363D;
    color: #F0F6FC;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
    border: 1px solid #21262D;
}

/* Search Trigger in Navigation - REMOVED */
/* .search-trigger .search-btn {
    background: none;
    border: none;
    color: #F0F6FC;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-trigger .search-btn:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.search-shortcut {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
} */

/* Highlight Search Terms */
mark {
    background: rgba(255, 107, 53, 0.3);
    color: #FF6B35;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        margin: 2vh auto;
        max-height: 96vh;
        border-radius: 12px;
    }

    .search-header {
        padding: 1rem;
    }

    .search-content {
        padding: 1rem;
    }

    .search-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        justify-content: space-between;
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .search-result-item {
        flex-direction: column;
    }

    .result-image {
        width: 100%;
        height: 120px;
        order: -1;
    }

    .search-shortcuts {
        justify-content: flex-start;
    }
}

/* ===== PWA FEATURES STYLES ===== */
/* Progressive Web App interface elements */

.pwa-install-prompt {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: 90%;
    background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
    border: 1px solid #30363D;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-prompt.show {
    bottom: 2rem;
}

.install-prompt-content {
    padding: 1.5rem;
}

.install-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.install-logo {
    height: 32px;
    width: auto;
}

.install-close {
    background: none;
    border: none;
    color: #8B949E;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.install-close:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.install-prompt-body h3 {
    color: #F0F6FC;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.install-prompt-body p {
    color: #8B949E;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.install-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.install-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.install-features .feature i {
    color: #FF6B35;
    font-size: 1.2rem;
}

.install-features .feature span {
    color: #8B949E;
    font-size: 0.8rem;
}

.install-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* PWA Update Notification */
.pwa-update-notification {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: 90%;
    background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
    border: 1px solid #30363D;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-update-notification.show {
    top: 2rem;
}

.update-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.update-icon {
    color: #FF6B35;
    font-size: 1.5rem;
}

.update-text {
    flex: 1;
}

.update-text h4 {
    color: #F0F6FC;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.update-text p {
    color: #8B949E;
    font-size: 0.9rem;
    margin: 0;
}

.update-actions {
    display: flex;
    gap: 0.5rem;
}

/* Online Status Indicator (DISABLED) */
.online-status {
    display: none !important;
    /* Removed green "Online" label from upper right corner */
}

.online-status.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.online-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== ANALYTICS CONSENT BANNER ===== */
/* Privacy-compliant analytics consent interface */

.analytics-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
    border-top: 1px solid #30363D;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.analytics-consent-banner.show {
    bottom: 0;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.consent-text {
    flex: 1;
}

.consent-text h4 {
    color: #F0F6FC;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.consent-text p {
    color: #8B949E;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: -400px;
    max-width: 350px;
    background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
    border: 1px solid #30363D;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    line-height: 1.5;
}

.toast-notification.show {
    right: 2rem;
}

.toast-notification.success {
    border-left: 4px solid #22C55E;
    color: #22C55E;
}

.toast-notification.warning {
    border-left: 4px solid #F59E0B;
    color: #F59E0B;
}

.toast-notification.error {
    border-left: 4px solid #EF4444;
    color: #EF4444;
}

.toast-notification.info {
    border-left: 4px solid #3B82F6;
    color: #3B82F6;
}

/* Responsive Design for PWA Elements */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .consent-actions {
        width: 100%;
        justify-content: center;
    }

    .install-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .install-features .feature {
        flex-direction: row;
        text-align: left;
    }

    .update-notification-content {
        flex-direction: column;
        text-align: center;
    }

    .update-actions {
        width: 100%;
        justify-content: center;
    }

    .toast-notification {
        right: -100%;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .toast-notification.show {
        right: 1rem;
    }

    .online-status {
        top: auto;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .page-loader,
    .skeleton,
    .spinner-loader,
    .dots-loader,
    .pulse-loader,
    .wave-loader,
    .progress-loader,
    .global-search-overlay,
    .pwa-install-prompt,
    .pwa-update-notification,
    .analytics-consent-banner,
    .toast-notification,
    .online-status {
        display: none !important;
    }
}
