/* eDoktor Design System v3 — Visual Polish */

html { box-sizing: border-box; overflow-x: hidden; }
*, *::before, *::after { box-sizing: inherit; }

:root {
    --cta: #3b82f6;
    --cta-dark: #2563eb;
    --cta-light: #eff6ff;
    --cta-glow: rgba(59,130,246,0.25);
    --teal: #14b8a6;
    --teal-dark: #0d9488;
    --teal-light: #f0fdfa;
    --red: #ef4444;
    --red-light: #fef2f2;
    --orange: #f59e0b;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1e293b;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);
}

body {
    font-family: var(--font) !important;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0; padding: 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

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

/* ========== GLOBAL H1 ========== */
h1 {
    font-size: clamp(46px, 5.5vw, 64px);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.1;
    letter-spacing: -1.5px;
}
@media (max-width: 768px) {
    h1 { font-size: 42px; letter-spacing: -1px; }
}
@media (max-width: 480px) {
    h1 { font-size: 36px; }
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6, #14b8a6) !important;
    color: #fff !important;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 4px 16px var(--cta-glow);
    border: none; cursor: pointer;
    font-family: var(--font);
    line-height: 1.4;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #0d9488) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--cta-glow);
    color: #fff !important;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cta) !important;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--cta) !important;
    font-weight: 600; font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s;
    background: transparent !important;
    cursor: pointer; font-family: var(--font);
}
.btn-outline:hover {
    background: rgba(59,130,246,0.08) !important;
    transform: translateY(-2px);
    color: var(--cta) !important;
}

/* ========== ARTICLE CARD ========== */
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    border: none;
}
.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.article-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}
.article-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.article-card:hover .article-card-image img { transform: scale(1.08); }

.article-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category badges — colored per category */
.article-card-category {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-decoration: none !important;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--cta-light);
    color: var(--cta) !important;
    width: fit-content;
}
.article-card-category:hover { opacity: 0.8; }

.article-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900) !important;
    line-height: 1.4;
    margin: 0 0 8px;
}
.article-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.article-card h3 a:hover { color: var(--cta) !important; }

.article-card-excerpt {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-400);
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}
.article-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.article-card-author a, .article-card-footer a, .list-card-meta a, .card-meta a { color: inherit; text-decoration: none; transition: color 0.2s; }.article-card-author a:hover, .article-card-footer a:hover, .list-card-meta a:hover, .card-meta a:hover { color: var(--primary); }
.article-card-author img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

/* ========== AD SLOT ========== */
.ad-slot {
    text-align: center;
    margin: 28px 0;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ad-slot--sidebar { margin: 0 0 20px; }
.ad-slot--inline {
    margin: 32px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.ad-slot-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-300);
    margin-bottom: 8px;
    font-weight: 500;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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