<!DOCTYPE html>
<html lang="pt">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ code }} - {{ status }} | IG Radio</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap" rel="stylesheet">
    <style>
        .error-container {
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
        }
        .error-code {
            font-size: 10rem;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            opacity: 0.8;
        }
        .error-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            color: #fff;
        }
        .error-msg {
            color: var(--text-muted);
            font-size: 1.2rem;
            margin-bottom: 40px;
            max-width: 500px;
        }
        .error-visual {
            position: absolute;
            z-index: -1;
            width: 100%;
            height: 100%;
            overflow: hidden;
            top: 0;
            left: 0;
        }
        .error-glow {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 0, 127, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    </style>
</head>
<body>
    <nav class="top-nav">
        <a href="/" class="top-nav-logo">
            <img src="/static/images/logo.png" alt="IG Radio" style="height: 50px;">
        </a>
        <ul class="top-nav-links">
            <li><a href="/" class="nav-link">Início</a></li>
            <li><a href="/blog" class="nav-link">Notícias</a></li>
        </ul>
        <button class="mobile-menu-btn">☰</button>
    </nav>

    <!-- ── Mobile Overlay ───────────────────────────────── -->
    <div class="mobile-overlay" id="mobileOverlay">
        <a href="/" class="nav-link" onclick="toggleMobileMenu()">Início</a>
        <a href="/blog" class="nav-link" onclick="toggleMobileMenu()">Notícias</a>
    </div>

    <div class="error-visual">
        <div class="error-glow"></div>
    </div>

    <div class="error-container">
        <div class="error-code">{{ code }}</div>
        <h1 class="error-title">{{ status }}</h1>
        <p class="error-msg">{{ message }}</p>
        <div style="display: flex; gap: 20px;">
            <a href="/" class="btn primary">Voltar ao Início</a>
            <a href="/blog" class="btn secondary">Ver Notícias</a>
        </div>
    </div>
    <script src="/static/js/script.js"></script>
</body>
</html>
