/* -------------------------------------------
   Import Inter Font
-------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* -------------------------------------------
   Color Variables (Light + Dark)
-------------------------------------------- */
:root {
    --bg-body: radial-gradient(circle at top, #f2f6ff 0, #f7f8fc 45%, #ffffff 100%);
    --text-color: #161925;
    --heading-color: #111827;
    --accent-color: #1a73e8;
    --accent-soft: #e3efff;
    --border-color: #dde3f0;
    --muted-text: #6b7280;
    --card-bg: #ffffff;
    --card-border: rgba(209, 213, 219, 0.6);
    --highlight-bg: #f9fafb;
    --highlight-border: #e5e7eb;
}

/* Dark mode overrides */
body.dark {
    --bg-body: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
    --text-color: #e5e7eb;
    --heading-color: #ffffff;
    --accent-color: #4dabf7;
    --accent-soft: #1e293b;
    --border-color: #334155;
    --muted-text: #9ca3af;
    --card-bg: #020617;
    --card-border: rgba(148, 163, 184, 0.2);
    --highlight-bg: #111827;
    --highlight-border: #1f2937;
}

/* Smooth transitions */
body, main, header, section, .theme-toggle {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* -------------------------------------------
   Layout
-------------------------------------------- */
.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

/* -------------------------------------------
   Header
-------------------------------------------- */
header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-top: 50px;
}

/* Header row: badge + dark mode button */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header-top > * {
    flex-shrink: 0;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.subtitle {
    font-size: 1rem;
    color: var(--muted-text);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: var(--accent-soft);
    color: var(--accent-color);
    font-weight: 500;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
}

@media (max-width: 480px) {
    .badge-dot {
        width: 10px;  
       
    }
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* BADGE */
.badge {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    flex: 1;
}

/* Badge dot (desktop + tablets) */
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    display: inline-block;
    margin-right: 6px;
}

/* Only very small mobile screens */
@media (max-width: 480px) {
    .badge-dot {
        width: 10px;
        height: 10px;
    }
}

.theme-toggle {
    background: var(--accent-soft);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    padding: 5px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: #ffffff;
}

#theme-icon {
    font-size: 1rem;
}


/* -------------------------------------------
   Main Content Box
-------------------------------------------- */
main {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--card-border);
}

/* -------------------------------------------
   Typography
-------------------------------------------- */
h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 12px;
    margin-top: 30px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text-color);
}

ul {
    margin: 8px 0 14px 24px;
}

li {
    font-size: 1rem;
    margin-bottom: 6px;
}

/* -------------------------------------------
   Highlight Box
-------------------------------------------- */
.highlight-box {
    border-radius: 14px;
    background: var(--highlight-bg);
    padding: 16px;
    border: 1px solid var(--highlight-border);
    margin-top: 10px;
}

.keyword {
    color: var(--accent-color);
    font-weight: 600;
}

/* -------------------------------------------
   Inline Tag
-------------------------------------------- */
.inline-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-text);
    margin-bottom: 6px;
}

/* -------------------------------------------
   Opinion Section
-------------------------------------------- */
.opinion {
    border-top: 1px dashed var(--border-color);
    padding-top: 22px;
    margin-top: 32px;
}

/* -------------------------------------------
   Responsive
-------------------------------------------- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 22px;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .theme-toggle {
        padding: 3px 9px;
        font-size: 0.9rem;
    }

    #theme-icon {
        font-size: 1.1rem;
    }
}
