/*
 * Landing page styles. Extracted from LandingPageHelper's inline <style> block so the
 * Content-Security-Policy does not need style-src 'unsafe-inline'. The one value that
 * used to be interpolated per request (the environment colour) is now a CSS variable
 * set by the environment class on <body>.
 */

.env-development { --env-color: #f6ad55; }
.env-production  { --env-color: #48bb78; }
.env-other       { --env-color: #4299e1; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    color: #e53e3e;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
    font-size: 2rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 2rem;
}

.status {
    display: inline-block;
    background: var(--env-color, #4299e1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    animation: pulse 2s infinite;
}

.status-icon {
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.link {
    display: inline-block;
    background: #4299e1;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
}

.link-icon {
    margin-right: 0.5rem;
}

.link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.link:hover:before {
    left: 100%;
}

.link:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(237, 242, 247, 0.7);
    border-radius: 10px;
    border-left: 4px solid #4299e1;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.info-icon {
    margin-right: 0.5rem;
    color: #4299e1;
    width: 16px;
}

.info-value {
    color: #718096;
    font-family: 'Courier New', monospace;
}

.version {
    margin-top: 2rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

.features {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 10px;
    text-align: left;
}

.features h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-icon {
    margin-right: 0.5rem;
    color: #4299e1;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #718096;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    margin-right: 0.5rem;
    color: #48bb78;
    width: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem;
    }

    .logo {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

.loading-spinner {
    display: none;
    margin: 0 auto;
    margin-top: 1rem;
}

.spinner {
    animation: spin 2s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
