/*
 * Landing page styles (templates/landing.html).
 *
 * XSPAN-6064 dropped 'unsafe-inline' from style-src on every path outside
 * /api/docs/, /api/redoc/, /api/schema/ and /admin/, so this must stay an
 * external stylesheet — moving it back into a <style> block would get it
 * blocked by CSP and render the page unstyled.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 300;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.status.healthy {
    background: #e8f5e8;
    color: #27ae60;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.link-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.link-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.link-card .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.link-card .description {
    font-size: 0.9rem;
    color: #6c757d;
}

.version-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.env-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.env-development {
    background: #fff3cd;
    color: #856404;
}

.env-production {
    background: #d1ecf1;
    color: #0c5460;
}

.debug-warning {
    color: #e74c3c;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem;
        margin: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .links {
        grid-template-columns: 1fr;
    }
}
