/* ========================================
   BreakingNews.ie - Article Page Styles
   Vanilla CSS (no frameworks)
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #fdfdfd;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e9e9eb;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #71717a;
    --color-accent: #ff2d1a;
    --color-accent-dark: #bc1000;
    --color-link: #1877f2;
    --color-border: #e4e4e7;
    --color-border-light: #f0f0f2;
    --header-bg: #ffffff;
    --topbar-bg: #1c1917;
    --topbar-text: #a8a29e;
    --share-btn-bg: #f4f4f5;
    --share-btn-hover: #e4e4e7;
    --blockquote-border: #ff2d1a;
    --blockquote-bg: #fef2f2;
    --tag-bg: transparent;
    --tag-hover-bg: #f4f4f5;
    --footer-bg: #1c1917;
    --footer-text: #a8a29e;
    --container-max: 1152px;
    --sidebar-width: 340px;
    --font-display: 'Khand', system-ui, sans-serif;
    --font-body: 'Krub', system-ui, sans-serif;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --bg-tertiary: #3f3f46;
    --text-primary: #f4f4f5;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;
    --color-link: #65a8ff;
    --color-border: #3f3f46;
    --color-border-light: #27272a;
    --header-bg: #1c1917;
    --share-btn-bg: #27272a;
    --share-btn-hover: #3f3f46;
    --blockquote-bg: #271a1a;
    --tag-hover-bg: #27272a;
}

/* Dark mode for comments */
body.dark-mode .comments-section {
    --comments-primary: #ff2d1a;
    --comments-text-primary: #f4f4f5;
    --comments-text-secondary: #a1a1aa;
    --comments-text-muted: #71717a;
    --comments-bg-primary: #18181b;
    --comments-bg-secondary: #27272a;
    --comments-bg-tertiary: #3f3f46;
    --comments-border-color: #3f3f46;
}

/* ========================================
   Global Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   Top Bar
   ======================================== */

.top-bar {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.top-bar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.top-bar__label {
    color: var(--color-accent);
    font-weight: 700;
    white-space: nowrap;
    font-size: 11px;
}

.top-bar__links {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.top-bar__links a {
    color: var(--topbar-text);
    white-space: nowrap;
    transition: color 0.2s;
    font-size: 11px;
}

.top-bar__links a:hover {
    color: #fff;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ========================================
   Dark Mode Toggle
   ======================================== */

.dark-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--topbar-text);
    transition: background-color 0.2s;
    font-family: var(--font-display);
    cursor: pointer;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.dark-toggle__icon {
    display: flex;
    align-items: center;
}

.dark-toggle--sticky {
    color: var(--text-muted);
    padding: 6px;
}

.dark-toggle--sticky:hover {
    background: var(--share-btn-hover);
}

.dark-toggle__label {
    display: inline;
}

/* ========================================
   Site Header
   ======================================== */

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s;
}

.site-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header__logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
}

.logo-text--bold {
    font-weight: 700;
}

.logo-text--sm {
    font-size: 20px;
}

.logo-dot {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.logo-dot--sm {
    font-size: 20px;
}

/* ========================================
   Main Navigation
   ======================================== */

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav__link {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 20px 14px;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
}

.main-nav__link:hover {
    color: var(--color-accent);
}

.main-nav__link--active {
    color: var(--color-accent);
    font-weight: 600;
}

.main-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px 2px 0 0;
}

/* Header Right */
.site-header__right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
}

.header-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========================================
   Sticky Header
   ======================================== */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--header-bg);
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s;
    pointer-events: none;
}

.sticky-header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.sticky-header__logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    flex-shrink: 0;
}

.sticky-header__ticker {
    flex: 1;
    overflow: hidden;
    margin: 0 20px;
    display: block;
}

.sticky-header__ticker-text {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    animation: stickyTickerScroll var(--sticky-ticker-duration, 25s) linear infinite;
}

@keyframes stickyTickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.sticky-header__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* ========================================
   Article Layout
   ======================================== */

.article-layout {
    max-width: var(--container-max);
    margin: 32px auto 0;
    padding: 0 16px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 48px;
}

/* ========================================
   Article
   ======================================== */

.article__category {
    margin-bottom: 12px;
}

.article__category a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
}

.article__category a:hover {
    color: var(--color-accent-dark);
}

.article__title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.article__subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Byline */
.article__byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.byline__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.byline__author {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.byline__date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Image */
.article__hero {
    margin-bottom: 28px;
}

.article__hero img {
    width: 100%;
    border-radius: 6px;
}

.article__hero figcaption {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* ========================================
   Share Toolbar
   ======================================== */

.article__toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.toolbar-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.toolbar-btn:hover {
    background: var(--share-btn-hover);
    color: var(--text-primary);
}

.toolbar-btn--font {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    width: auto;
    padding: 0 10px;
}

.toolbar-sep {
    width: 1px;
    height: 24px;
    background: var(--color-border);
    margin: 0 4px;
}

/* ========================================
   Article Body
   ======================================== */

.article__body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    max-width: 680px;
}

.article__body p {
    margin-bottom: 20px;
}

.article__body a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.article__body a:hover {
    text-decoration: underline;
}

.article__body h2 {
    font-family: var(--font-display);
    font-size: 1.3em;
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.article__body .trigger {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 5px;
    text-decoration-thickness: 3px;
    text-decoration-skip-ink: none;
}

.article__body blockquote {
    border-left: 5px solid var(--blockquote-border);
    background: var(--blockquote-bg);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.article__body blockquote::before {
    content: '\201C';
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--blockquote-border);
    position: absolute;
    top: -8px;
    left: 14px;
    opacity: 0.3;
    line-height: 1;
}

.article__body blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.65;
    font-weight: 500;
}

.article__body blockquote p + p {
    margin-top: 12px;
}

.article__body ul,
.article__body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article__body li {
    margin-bottom: 8px;
}

/* ========================================
   Tags
   ======================================== */

.article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.article__tags-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.article__tag {
    font-size: 13px;
    padding: 4px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--text-secondary);
    background: var(--tag-bg);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.article__tag:hover {
    background: var(--tag-hover-bg);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    align-self: start;
}

.sidebar__heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 16px;
}

.sidebar__heading--trending {
    margin-top: 32px;
}

.sidebar-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-feed__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-feed__link {
    display: flex;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sidebar-feed__link:hover {
    opacity: 0.8;
}

.sidebar-feed__thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.sidebar-feed__headline {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 60px;
}

.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 40px 16px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.footer-logo .logo-text {
    color: #e7e5e4;
}

.footer-logo .logo-dot {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--footer-text);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: #fff;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 13px;
    color: #78716c;
}

/* ========================================
   Article Figures
   ======================================== */

.article__figure {
    margin: 24px 0;
}

.article__figure img {
    width: 100%;
    border-radius: 6px;
}

.article__figure figcaption {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.5;
    font-style: italic;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

/* ========================================
   Lead Paragraph
   ======================================== */

.article__body .lead {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 22px;
}

/* ========================================
   Email Mockup
   ======================================== */

.email-mockup {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    border: 1px solid var(--color-border);
}

.mail-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.mail-control-panel {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
}

.mail-control-panel img {
    width: 20px;
    height: 20px;
    opacity: .6;
}

.mail-sender {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mail-sender-logo {
    width: 40px;
    height: 40px;
    background: #2a9d8f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-sender-logo span {
    color: #fff;
    font-weight: 600;
}

.mail-sender-text p {
    margin: 0;
}

.mail-sender-text p:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.mail-sender-text p:last-child {
    font-size: .85rem;
    color: var(--text-secondary);
}

.mail-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.mail-text p {
    margin: 0 0 12px !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
}

.mail-text p:last-child {
    margin-bottom: 0 !important;
}

.mail-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.mail-actions span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: .9rem;
}

.mail-actions img {
    width: 16px;
    height: 16px;
    opacity: .6;
}

body.dark-mode .mail-control-panel img,
body.dark-mode .mail-actions img {
    filter: brightness(0) invert(1);
}

/* ========================================
   CTA + Quiz
   ======================================== */

.cta-section {
    margin: 32px 0;
}

.cta-section--primary {
    padding: 48px;
    background: linear-gradient(135deg, #fef2f2 0%, #f6f6f6 100%);
    border: 1px solid #e8e6e1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.cta-section--primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, #bb1919 100%);
    opacity: 0.03;
    transform: rotate(-15deg);
}

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

.quiz-section .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-section .quiz-header {
    transition: all 0.3s ease;
}

.quiz-section .quiz-header.hidden {
    display: none;
}

.quiz-section .quiz-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: inherit;
    text-align: left;
}

.quiz-section .quiz-step {
    display: none;
}

.quiz-section .quiz-step.active {
    display: block;
}

.quiz-section .quiz-question {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quiz-section .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-section .quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.quiz-section .quiz-option:hover {
    background: #fff;
    border-color: #fff;
    transform: translateX(4px);
}

.quiz-section .quiz-option input {
    accent-color: #dc3545;
    width: 18px;
    height: 18px;
}

.quiz-section .quiz-option:has(input:checked) {
    background: #fff;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.quiz-section .quiz-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.quiz-section .quiz-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.quiz-section .quiz-dot[data-dot="1"]::after { content: "1"; }
.quiz-section .quiz-dot[data-dot="2"]::after { content: "2"; }
.quiz-section .quiz-dot[data-dot="3"]::after { content: "3"; }

.quiz-section .quiz-dot.active {
    background: #fff;
    border-color: #fff;
    color: #dc3545;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.quiz-section .quiz-dot.completed {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
    color: #dc3545;
}

.quiz-section .quiz-result {
    text-align: center;
}

.quiz-section .quiz-result-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #dc3545;
}

.quiz-section .quiz-result img {
    max-width: 220px;
    margin: 1rem auto;
}

.quiz-section .quiz-timer {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.quiz-section .quiz-order-btn {
    display: inline-block;
    background: linear-gradient(90deg, #dc3545, #ff6b6b, #e63946, #dc3545);
    background-size: 300% 100%;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: gradientShift 3s ease infinite;
}

.quiz-section .quiz-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5);
}

.quiz-section .quiz-stock {
    margin-top: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Quiz dark mode */
body.dark-mode .cta-section--primary {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15) 0%, #222 100%);
    border-color: #333;
}

body.dark-mode .cta-section--primary::before {
    background: linear-gradient(45deg, transparent 30%, #ff4444 100%);
}

body.dark-mode .quiz-section .quiz-option {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: #f0f0f0;
}

body.dark-mode .quiz-section .quiz-option:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .quiz-section .quiz-option:has(input:checked) {
    background: rgba(0, 0, 0, 0.5);
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

body.dark-mode .quiz-section .quiz-result-title {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Quiz responsive */
@media (max-width: 600px) {
    .cta-section--primary { padding: 32px 24px; }
    .quiz-section .cta-content { padding: 1rem; }
    .quiz-section .quiz-title { font-size: 1.2rem; }
    .quiz-section .quiz-question { font-size: 1rem; }
    .quiz-section .quiz-option { padding: 0.75rem; font-size: 0.95rem; }
    .quiz-section .quiz-progress { padding: 0.75rem; gap: 0.75rem; }
    .quiz-section .quiz-dot { width: 28px; height: 28px; font-size: 0.8rem; }
    .quiz-section .quiz-result-title { font-size: 1.1rem; padding: 0.5rem 1rem; }
    .quiz-section .quiz-result img { max-width: 180px; }
    .quiz-section .quiz-timer { font-size: 1.5rem; }
    .quiz-section .quiz-order-btn { padding: 0.85rem 1.5rem; font-size: 1rem; }
}

@media (max-width: 400px) {
    .quiz-section .quiz-title { font-size: 1.1rem; }
    .quiz-section .quiz-option { padding: 0.6rem; font-size: 0.9rem; gap: 0.5rem; }
    .quiz-section .quiz-dot { width: 24px; height: 24px; font-size: 0.75rem; }
}

/* Keitaro hidden inputs */
.keitaro-hidden-input,
.product-hidden-input {
    display: none;
}

/* ========================================
   Comments Section Override
   ======================================== */

.comments-section {
    margin-top: 40px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1023px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .site-header__inner {
        height: 56px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-dot {
        font-size: 22px;
    }

    .article-layout {
        padding: 0 12px 40px;
        margin-top: 20px;
    }

    .article__title {
        font-size: 30px;
        line-height: 1.2;
    }

    .article__subtitle {
        font-size: 16px;
    }

    .article__body {
        font-size: 16px;
    }

    .toolbar-btn {
        width: 40px;
        height: 40px;
    }

    .sticky-header__ticker {
        display: block;
    }

    .sticky-header__logo {
        display: none;
    }

    .sticky-header__actions {
        display: none !important;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-nav {
        gap: 12px 20px;
    }
}

@media (max-width: 480px) {
    .article__title {
        font-size: 26px;
    }

    .article__toolbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article__tags {
        gap: 6px;
    }

    .article__tag {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* ==================== Custom Lists (checkmarks & numbered) ==================== */

.list {
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.list li .check {
    width: 24px;
    height: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.list li .check::before {
    content: '\2713';
}

.list li .list-num {
    width: 24px;
    height: 24px;
    background: var(--color-link);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==================== Doctor Speech Block ==================== */

.doctor-speech {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.doctor-speech::before {
    content: '\1F48A';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ffffffb8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

body.dark-mode .doctor-speech {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

/* ==================== Note Block ==================== */

.note {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

body.dark-mode .note {
    background: linear-gradient(135deg, #422006 0%, #451a03 100%);
    border-color: #f59e0b;
}

/* ==================== Social Proof Alert ==================== */

.custom-social-proof {
    bottom: 20px;
    display: none;
    font-family: var(--font-body), Inter, sans-serif;
    left: 10px;
    position: fixed;
    z-index: 9999999999999 !important;
}

.custom-notification {
    background-color: var(--bg-primary, #fff);
    border: 0;
    border-radius: 6px;
    box-shadow: 2px 2px 10px 2px rgba(11,10,10,0.2);
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 400;
    position: relative;
    text-align: left;
    width: auto;
    z-index: 99999;
    padding: 5px;
    display: block;
}

.custom-notification, #notify-customer, #notify-state {
    white-space: nowrap;
}

.custom-notification-container {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.custom-notification-image-wrapper {
    width: 60px;
}

.custom-notification-image-wrapper img {
    border-radius: 6px 0 0 6px;
    display: block;
    margin: 0 auto;
    max-width: 45px;
    overflow: hidden;
    width: 100%;
    padding: 7px;
}

.custom-notification-content-wrapper {
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary, gray);
    height: 100%;
    margin: 0;
    padding-left: 5px;
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.custom-notification-content {
    font-family: inherit !important;
    font-size: 14px;
    line-height: 16px;
    padding: 0 !important;
    margin-bottom: 0;
    margin-top: 0 !important;
}

.custom-notification-content small {
    display: block !important;
    font-size: 12px !important;
    margin-top: 3px !important;
    opacity: .8;
}

.custom-close {
    cursor: pointer;
    height: 12px;
    opacity: 0;
    position: absolute;
    right: 8px;
    top: 8px;
    transform: rotate(45deg);
    transition: .2s ease-in-out;
    width: 12px;
    z-index: 5555555;
}

.custom-close:before {
    height: 2px;
    left: 0;
    top: 5px;
    width: 100%;
}

.custom-close:after, .custom-close:before {
    background-color: gray;
    content: "";
    display: block;
    position: absolute;
}

.custom-close:after {
    height: 100%;
    left: 5px;
    top: 0;
    width: 2px;
}

.custom-social-proof .custom-notification:hover .custom-close {
    opacity: 1;
}

@media (max-width: 768px) {
    .custom-notification, #notify-customer, #notify-state {
        white-space: normal;
    }
}
