{{showFile "templates/section/head.tmpl"}}
    <style>
        :root {
            --bg-main: #0b0d12;
            --bg-panel: #11151b;
            --bg-card: #161b22;
            --border: #2a3140;
            --border-soft: #222833;
            --text-main: #e5e7eb;
            --text-muted: #9ca3af;
            --text-soft: #6b7280;
            --accent: #a78bfa;
            --accent-strong: #8b5cf6;
            --code-bg: #0d1117;
            --inline-code-bg: #1b2130;
        }

        body {
            background:
                radial-gradient(circle at top, rgba(139, 92, 246, 0.08), transparent 30%),
                var(--bg-main);
            color: var(--text-main);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.75;
        }

        .note-shell {
            max-width: 980px;
            margin: 0 auto;
            padding: 32px 20px 60px;
        }

        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-muted);
            text-decoration: none;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        .back-link:hover {
            color: white;
            border-color: var(--accent-strong);
            background: #1a2030;
        }

        .obsidian-content {
            background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 40px 32px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
        }

        .note-header {
            border-bottom: 1px solid var(--border-soft);
            padding-bottom: 20px;
            margin-bottom: 28px;
        }

        .note-label {
            display: inline-block;
            color: var(--accent);
            background: rgba(167, 139, 250, 0.08);
            border: 1px solid rgba(167, 139, 250, 0.18);
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 14px;
        }

        .note-title {
            color: #f5f3ff;
            font-size: clamp(2.2rem, 5vw, 3.6rem);
            font-weight: 800;
            line-height: 1.1;
            margin: 0;
            letter-spacing: -0.03em;
        }

        .note-body {
            color: var(--text-main);
            font-size: 1.02rem;
        }

        .note-body h1,
        .note-body h2,
        .note-body h3,
        .note-body h4,
        .note-body h5,
        .note-body h6 {
            scroll-margin-top: 24px;
        }

        .note-body h1 {
            color: #f5f3ff;
            font-size: 2.1rem;
            font-weight: 800;
            margin-top: 2.6rem;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .note-body h2 {
            color: var(--accent);
            font-size: 1.45rem;
            font-weight: 700;
            margin-top: 2.4rem;
            margin-bottom: 0.9rem;
            padding-bottom: 0.55rem;
            border-bottom: 1px solid var(--border-soft);
        }

        .note-body h3 {
            color: #d1d5db;
            font-size: 1.1rem;
            font-weight: 700;
            margin-top: 1.8rem;
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .note-body p {
            margin-bottom: 1.15rem;
            color: #d1d5db;
        }

        .note-body strong {
            color: white;
            font-weight: 700;
        }

        .note-body em {
            color: #ddd6fe;
        }

        .note-body a {
            color: #c4b5fd;
            text-decoration: none;
            border-bottom: 1px solid rgba(196, 181, 253, 0.35);
            transition: color 0.2s ease, border-color 0.2s ease;
        }

        .note-body a:hover {
            color: white;
            border-color: rgba(255, 255, 255, 0.55);
        }

        .note-body hr {
            border: 0;
            border-top: 1px solid var(--border);
            margin: 2.6rem 0;
        }

        .note-body ul,
        .note-body ol {
            margin: 1rem 0 1.3rem;
            padding-left: 1.4rem;
        }

        .note-body ul {
            list-style: none;
            padding-left: 0;
        }

        .note-body ul li {
            position: relative;
            padding-left: 1.4rem;
            margin-bottom: 0.6rem;
            color: #d1d5db;
        }

        .note-body ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.72em;
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--accent);
            box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
            transform: translateY(-50%);
        }

        .note-body ol li {
            margin-bottom: 0.55rem;
        }

        .note-body blockquote {
            margin: 1.6rem 0;
            padding: 1rem 1.1rem 1rem 1.2rem;
            border-left: 4px solid var(--accent-strong);
            background: rgba(167, 139, 250, 0.06);
            border-radius: 0 14px 14px 0;
            color: #ddd6fe;
        }

        .note-body pre {
            background-color: var(--code-bg);
            padding: 1.2rem 1.25rem;
            border-radius: 16px;
            border: 1px solid var(--border);
            overflow-x: auto;
            margin: 1.5rem 0;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
        }

        .note-body code {
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.94rem;
            color: #e5e7eb;
        }

        .note-body p code,
        .note-body li code,
        .note-body td code,
        .note-body blockquote code {
            background: var(--inline-code-bg);
            border: 1px solid #30384a;
            padding: 0.18rem 0.42rem;
            border-radius: 8px;
            color: #ddd6fe;
        }

        .note-body pre code {
            background: transparent;
            border: none;
            padding: 0;
            border-radius: 0;
            color: #e5e7eb;
        }

        .note-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.8rem 0;
            font-size: 0.96rem;
            overflow: hidden;
            border-radius: 16px;
            border-style: hidden;
            box-shadow: 0 0 0 1px var(--border);
        }

        .note-body th {
            text-align: left;
            padding: 14px 16px;
            background: #1b2230;
            color: var(--accent);
            font-weight: 700;
            border-bottom: 1px solid var(--border);
        }

        .note-body td {
            padding: 14px 16px;
            border-top: 1px solid var(--border-soft);
            color: #d1d5db;
            background: #141922;
        }

        .note-body img {
            max-width: 100%;
            border-radius: 18px;
            border: 1px solid var(--border);
            margin: 1.5rem 0;
        }

        @media (max-width: 768px) {
            .note-shell {
                padding: 20px 14px 40px;
            }

            .obsidian-content {
                padding: 24px 18px;
                border-radius: 18px;
            }

            .topbar {
                flex-direction: column;
                align-items: stretch;
            }

            .back-link {
                justify-content: center;
            }
        }
    </style>

<body>
    <div class="note-shell">
        <div class="topbar">
            <a href="/list_notes" class="back-link">← Înapoi la listă</a>
        </div>

        <article class="obsidian-content">
            <header class="note-header">
                <div class="note-label">Notiță</div>
                <h1 class="note-title">{{.Titlu}}</h1>
            </header>

            <section class="note-body">
                {{.HTML}}
            </section>
        </article>
    </div>
</body>
</html>