/**
 * Launcher/Splash Screen Styles
 * Matches: activity_launcher.xml design
 */

.launcher-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1e2139 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-container {
    text-align: center;
    padding: var(--spacing-xl);
    animation: fadeIn 0.5s ease-in;
}

/* Logo Container */
.logo-container {
    margin-bottom: var(--spacing-xl);
    animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.app-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.3));
}

.app-logo.animate-logo {
    animation: pulse 2s ease-in-out infinite;
}

/* App Name */
.app-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.6s ease-out 0.3s both;
}

/* Loading Container */
.loading-container {
    margin: var(--spacing-xl) auto;
    max-width: 400px;
    animation: slideUp 0.6s ease-out 0.5s both;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

.loading-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    min-height: 20px;
}

.loading-text a {
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
}

.loading-text a:hover {
    color: var(--accent-secondary);
}

/* Version Info */
.version-info {
    margin-top: var(--spacing-xl);
    animation: fadeIn 1s ease-out 0.8s both;
}

.version-info p {
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-logo {
        width: 140px;
        height: 140px;
    }
    
    .app-name {
        font-size: 24px;
    }
    
    .loading-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .splash-container {
        padding: var(--spacing-lg);
    }
    
    .app-logo {
        width: 120px;
        height: 120px;
    }
    
    .app-name {
        font-size: 20px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .app-logo {
        width: 80px;
        height: 80px;
    }
    
    .app-name {
        font-size: 18px;
        margin-bottom: var(--spacing-md);
    }
    
    .loading-container {
        margin: var(--spacing-md) auto;
    }
}
