/* ============================================
   NBL :: HS — Gitea Custom Theme
   Matches homepage dark minimal aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&family=Outfit:wght@200;300;400;500;600&display=swap');

/* ---- Override accent/primary colors ---- */
:root {
    --color-primary: #4a9eff !important;
    --color-primary-dark-1: #3d8ae6 !important;
    --color-primary-light-1: #6db3ff !important;
    --color-primary-alpha-10: rgba(74, 158, 255, 0.1) !important;
    --color-primary-alpha-20: rgba(74, 158, 255, 0.2) !important;
    --color-primary-alpha-40: rgba(74, 158, 255, 0.4) !important;
}

/* ---- Landing page overhaul ---- */

/* Hide the default Gitea feature showcase on the landing page */
.landing .hero h2,
.landing .hero .desc,
.landing .features,
.landing .hero .octicon {
    display: none !important;
}

/* Restyle the hero/landing section */
.landing .hero,
.page-content.home {
    background: #0d0d0d !important;
    background-image:
        linear-gradient(rgba(74, 158, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.02) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
}

/* Hide the big Gitea logo on landing */
.landing .hero img,
.landing .hero svg {
    display: none !important;
}

/* Style the app name on landing */
.landing .hero h1 {
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-weight: 200 !important;
    font-size: 2.5rem !important;
    color: #e8e8e8 !important;
    letter-spacing: 0.02em !important;
}

/* ---- Navbar ---- */
.ui.secondary.pointing.menu,
.navbar,
#navbar,
nav.navbar {
    background: #0d0d0d !important;
    border-bottom: 1px solid #1e1e1e !important;
}

/* ---- Body & page backgrounds ---- */
body {
    background: #0d0d0d !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.page-content,
.full.height {
    background: #0d0d0d !important;
}

/* ---- Repository list cards ---- */
.repository-item,
.repo-list-item {
    border-color: #1e1e1e !important;
}

.repository-item:hover,
.repo-list-item:hover {
    border-color: #2a2a2a !important;
}

/* ---- Buttons ---- */
.ui.primary.button,
.ui.button.primary {
    background: transparent !important;
    border: 1px solid #4a9eff !important;
    color: #4a9eff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
}

.ui.primary.button:hover,
.ui.button.primary:hover {
    background: rgba(74, 158, 255, 0.08) !important;
    border-color: #4a9eff !important;
    color: #4a9eff !important;
}

/* ---- Login form ---- */
.user.signin .ui.form,
.user.signup .ui.form {
    background: #151515 !important;
    border: 1px solid #1e1e1e !important;
    border-radius: 4px !important;
}

.user.signin .ui.form input,
.user.signup .ui.form input {
    background: #0d0d0d !important;
    border: 1px solid #1e1e1e !important;
    color: #e8e8e8 !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
}

.user.signin .ui.form input:focus,
.user.signup .ui.form input:focus {
    border-color: #4a9eff !important;
    box-shadow: 0 0 0 1px rgba(74, 158, 255, 0.15) !important;
}

.user.signin .ui.form label,
.user.signup .ui.form label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #707070 !important;
}

/* ---- Code/monospace elements ---- */
code, pre, .code-area, .CodeMirror {
    font-family: 'JetBrains Mono', monospace !important;
}

/* ---- Links ---- */
a {
    color: #4a9eff !important;
}

a:hover {
    color: #6db3ff !important;
}

/* ---- Segment/card backgrounds (dark theme override) ---- */
.ui.segment {
    background: #151515 !important;
    border-color: #1e1e1e !important;
}

/* ---- Footer ---- */
footer, .footer {
    background: #0d0d0d !important;
    border-top: 1px solid #1e1e1e !important;
}

footer a,
.footer a {
    color: #454545 !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #1e1e1e;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}
