/* === SmartDeskDojo Article Base Styles === */
:root {
    --bg: #09090b;
    --surface: #18181b;
    --text: #f4f4f5;
    --subtext: #d4d4d8;
    --accent1: #00f2fe;
    --accent2: #4facfe;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

h1, h2, h3, h4, th {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

header {
    background: var(--surface);
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header a {
    color: var(--subtext);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.2s;
}

header a:hover { color: var(--accent1); }

.hero {
    width: 100%;
    height: 450px;
    background: linear-gradient(to bottom, rgba(9,9,11,0.2), var(--bg)), var(--hero-image) center/cover;
}

main {
    max-width: 800px;
    margin: -100px auto 40px;
    padding: 50px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin-top: 0;
    letter-spacing: -1px;
    line-height: 1.1;
    background: -webkit-linear-gradient(0deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    margin-top: 50px;
    padding-bottom: 10px;
    font-weight: 800;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    letter-spacing: 1px;
}

h3 { color: var(--accent1); margin-top: 30px; }

p { font-size: 1.05em; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent1);
    font-weight: 800;
    letter-spacing: 1px;
}

td { color: var(--subtext); }
td:first-child { color: var(--text); font-weight: 600; }

/* Pros/Cons */
.pros-cons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pros, .cons {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    border-radius: 8px;
}

.pros { background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); }
.cons { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.2); }

.pros h4 {
    color: #34d399;
    margin-top: 0;
    border-bottom: 1px solid rgba(16,185,129,0.2);
    padding-bottom: 10px;
}

.cons h4 {
    color: #f87171;
    margin-top: 0;
    border-bottom: 1px solid rgba(239,68,68,0.2);
    padding-bottom: 10px;
}

.pros ul, .cons ul { color: var(--subtext); padding-left: 20px; margin-bottom: 0; }
.pros li, .cons li { margin-bottom: 8px; }

/* Feature block */
.feature-block {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-left: 4px solid var(--accent2);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Calculator promo */
.calc-promo {
    background: linear-gradient(135deg, rgba(0,242,254,0.08), rgba(79,172,254,0.08));
    border: 1px solid rgba(0,242,254,0.25);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.calc-promo h3 { margin-top: 0; font-size: 1.3em; }

/* Buy buttons */
a.buy-btn {
    display: inline-block;
    text-align: center;
    background: transparent;
    border: 2px solid var(--accent1);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1.1em;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
    margin-top: 15px;
}

a.buy-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* Article images */
.article-img {
    width: 100%;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.article-img-caption {
    text-align: center;
    color: var(--subtext);
    font-size: 0.82em;
    margin-top: -15px;
    margin-bottom: 30px;
    font-style: italic;
}

/* === Search Bar === */
#dojo-search { position: relative; min-width: 240px; max-width: 320px; width: 100%; }
.ds-wrap {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.2s;
}
.ds-wrap:focus-within { border-color: var(--accent1); box-shadow: 0 0 12px rgba(0,242,254,0.12); }
.ds-icon { color: var(--subtext); flex-shrink: 0; opacity: 0.6; }
.ds-input {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    outline: none;
}
.ds-input::placeholder { color: rgba(212,212,216,0.4); }
.ds-clear {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--subtext);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.ds-clear:hover { opacity: 1; color: var(--accent1); }
.ds-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid rgba(0,242,254,0.2);
    border-radius: 10px;
    max-height: 340px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.ds-item {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s;
    cursor: pointer;
}
.ds-item:last-child { border-bottom: none; }
.ds-item:hover, .ds-sel { background: rgba(0,242,254,0.06); }
.ds-sel { border-left: 3px solid var(--accent1); padding-left: 13px; }
.ds-t {
    display: block;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.ds-item:hover .ds-t, .ds-sel .ds-t { color: var(--accent1); }
.ds-d {
    display: block;
    color: var(--subtext);
    font-size: 0.8em;
    line-height: 1.4;
}
.ds-none { padding: 20px; text-align: center; color: var(--subtext); font-size: 0.85em; }
.ds-drop mark {
    background: rgba(0,242,254,0.2);
    color: var(--accent1);
    padding: 0 2px;
    border-radius: 2px;
}

/* === Responsive === */
@media (max-width: 768px) {
    nav { padding: 15px 15px !important; justify-content: center !important; }
    nav > a:first-child { font-size: 1.1em !important; margin-bottom: 10px; width: 100%; justify-content: center; }
    nav > a:first-child img { height: 32px !important; }
    nav > div { width: 100%; justify-content: center; gap: 15px !important; }
    header { padding: 60px 15px !important; }
    h1.hero-title, h1 { font-size: 2.2em !important; line-height: 1.2 !important; }
    h2.section-title { font-size: 1.6em !important; }
    p.subtitle, p.desc { font-size: 1em !important; }
    .trust-badges { gap: 10px !important; flex-wrap: wrap; }
    .badge { padding: 6px 12px !important; font-size: 0.75em !important; }
    main { padding: 0 15px !important; margin: 30px auto !important; }
    .calc-promo { padding: 25px 15px !important; }
    .author-box { flex-direction: column; text-align: center; }
    .pros-cons { flex-direction: column; }
    th, td { padding: 12px 10px !important; font-size: 0.85em; }
    .btn-table { padding: 8px 12px !important; font-size: 0.8em !important; }
    #dojo-search { min-width: 0; max-width: none; width: 100%; order: 3; margin-top: 8px; }
}

@media (max-width: 480px) {
    nav > a:first-child span { font-size: 0.9em !important; }
    h1.hero-title { font-size: 1.8em !important; }
}
