/* PWA Specific Styles */
.install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.install-prompt.show {
    display: flex;
}

.install-prompt button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.install-prompt button:hover {
    transform: scale(1.05);
}

.install-prompt button:last-child {
    background: transparent;
    color: white;
    border: 1px solid white;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 9999;
}

.offline-indicator.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* App-like Scrolling */
body {
    -webkit-overflow-scrolling: touch;
}

/* Touch-friendly Elements */
button, 
a, 
input[type="submit"],
.btn {
    min-height: 44px;
    min-width: 44px;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeOut 0.5s ease 2s forwards;
}

.splash-logo {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

.splash-text {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}