/* ============================================================
   SEO Kent - Premium Theme v2
   Modern, Animated, SEO Agency Style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent2: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --section-py: 5rem;
    --container-max: 1200px;
    --container-narrow: 800px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--container-narrow); }

.text-accent { color: var(--accent); }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.muted { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: var(--font);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}
.btn--primary:hover { box-shadow: 0 8px 25px rgba(99,102,241,0.5); color: var(--white); }
.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--ghost {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ─── Header ─── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0.75rem 0;
}
.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.header.scrolled .nav__logo { color: var(--gray-900); }
.nav__logo:hover { color: var(--white); transform: scale(1.02); }
.header.scrolled .nav__logo:hover { color: var(--primary); }
.nav__logo-icon {
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav__menu { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}
.header.scrolled .nav__link { color: var(--gray-600); }
.nav__link:hover, .nav__link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}
.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav__link--muted { color: rgba(255,255,255,0.5); }
.header.scrolled .nav__link--muted { color: var(--gray-400); }

.nav__dropdown { position: relative; }
.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 240px;
    display: none;
    z-index: 100;
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gray-700);
    font-size: 0.85rem;
    border-radius: 8px;
    transition: var(--transition);
}
.nav__dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__user { display: flex; align-items: center; gap: 0.5rem; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.header.scrolled .nav__toggle span { background: var(--gray-700); }

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gray-900);
    overflow: hidden;
    padding: 6rem 0 4rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}
.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero__stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero__stat { text-align: center; }
.hero__stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__stat span { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Floating particles ─── */
.hero__particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
}
.hero__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: particle 15s linear infinite;
}
@keyframes particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ─── Section ─── */
.section { padding: var(--section-py) 0; position: relative; }
.section--alt { background: var(--gray-50); }
.section--gradient {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}
.section__header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.section__header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section__footer { text-align: center; margin-top: 3rem; }

/* ─── Page Header ─── */
.page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; position: relative; }
.page-header p { color: rgba(255,255,255,0.7); position: relative; }
.breadcrumb { margin-top: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); position: relative; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }

/* ─── Tools Grid ─── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-4px);
    color: var(--text);
}
.tool-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
}
.tool-card h2, .tool-card h3 { margin-bottom: 0.5rem; }
.tool-card p { color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.tool-card__features { margin-bottom: 1.5rem; font-size: 0.9rem; }
.tool-card__features li { padding: 0.3rem 0; color: var(--gray-600); }

/* ─── Posts Grid ─── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.post-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.post-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.05); }
.post-card__content { padding: 1.5rem; }
.post-card__content h2, .post-card__content h3 { margin-bottom: 0.5rem; }
.post-card__content h2 a, .post-card__content h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: var(--transition);
}
.post-card__content h2 a:hover, .post-card__content h3 a:hover { color: var(--primary); }
.post-card__content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.post-card__category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── News Grid ─── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}
.news-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.news-card__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--danger), #f97316);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.news-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.news-card h3 a { color: var(--gray-900); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-card__date { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Services Grid ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* ─── CTA ─── */
.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-box h2 { color: var(--white); margin-bottom: 0.5rem; font-size: 2.5rem; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.1rem; }

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    font-family: var(--font);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.15);
}

/* ─── Content + Sidebar ─── */
.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.sidebar__widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar__widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.sidebar__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar__list li:last-child { border-bottom: none; }
.sidebar__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: var(--transition);
}
.sidebar__list a:hover { color: var(--primary); transform: translateX(4px); }

.search-form { display: flex; }
.search-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px 0 0 50px;
    font-size: 0.9rem;
    font-family: var(--font);
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button {
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
}

/* ─── Article ─── */
.article__header {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.article__header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.article__category {
    display: inline-block;
    background: rgba(99,102,241,0.2);
    color: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99,102,241,0.3);
}
.article__title { font-size: 2.5rem; color: var(--white); margin-bottom: 1rem; position: relative; }
.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    position: relative;
}
.article__author { display: flex; align-items: center; gap: 0.5rem; }
.article__author-avatar { width: 32px; height: 32px; border-radius: 50%; }
.article__featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 1.5rem;
    position: relative;
}
.article__featured-image img { width: 100%; max-height: 500px; object-fit: cover; }

.article__body { padding: 3rem 0 5rem; }
.article__content {
    font-size: 1.1rem;
    line-height: 1.9;
}
.article__content h2 {
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    font-size: 1.75rem;
}
.article__content h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.article__content p { margin-bottom: 1.25rem; }
.article__content ul, .article__content ol { margin: 1.25rem 0; padding-left: 1.5rem; }
.article__content li { margin-bottom: 0.5rem; }
.article__content li { list-style: disc; }
.article__content ol li { list-style: decimal; }
.article__content code {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
}
.article__content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article__content pre code { background: none; padding: 0; color: inherit; }
.article__content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.05rem;
}
.article__content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article__content a { color: var(--primary); font-weight: 500; }
.article__content a:hover { text-decoration: underline; }

.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}
.tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
}
.tag:hover { background: var(--primary-light); color: var(--primary); }

.article__share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.article__share a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 50px;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
}
.article__share a:hover { background: var(--primary); color: var(--white); }

.article__related { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid var(--border); }
.article__related h2 { margin-bottom: 1.5rem; }

/* ─── Comments ─── */
.article__comments { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid var(--border); }
.article__comments h2 { margin-bottom: 1.5rem; }
.comments-list { margin-bottom: 2rem; }
.comment {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.comment:hover { border-color: var(--primary-light); }
.comment__header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.comment__date { color: var(--text-muted); font-size: 0.8rem; }
.comment__body { font-size: 0.95rem; line-height: 1.7; }

.comment-form h3 { margin-bottom: 1rem; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.comment-form textarea:focus { outline: none; border-color: var(--primary); }

/* ─── Pagination ─── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.pagination__link {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.pagination__link:hover { background: var(--gray-50); color: var(--primary); border-color: var(--primary); }
.pagination__link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group--inline { display: flex; align-items: center; gap: 0.5rem; }
.form-help { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

.input-group { display: flex; }
.input-group__addon {
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    display: flex;
    align-items: center;
}
.input-group__input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0;
    font-size: 0.95rem;
    font-family: var(--font);
}
.input-group__input:focus { outline: none; border-color: var(--primary); }
.input-group--lg .input-group__addon,
.input-group--lg .input-group__input { padding: 1rem 1.25rem; font-size: 1rem; }
.input-group--lg .btn { border-radius: 0 50px 50px 0; }

.tool-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* ─── Auth ─── */
.auth-section { padding: 6rem 0 4rem; }
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}
.auth-card h1 { margin-bottom: 0.25rem; font-size: 1.75rem; }
.auth-card > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-form { margin-bottom: 1.5rem; }
.auth-footer { text-align: center; font-size: 0.9rem; color: var(--text-muted); }

/* ─── Flash Messages ─── */
.flash-container { margin-top: 1rem; }
.flash {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    animation: fadeInDown 0.3s ease;
}
.flash--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash--warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.flash--info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.flash__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

/* ─── Audit Result ─── */
.audit-result { max-width: 700px; }
.audit-result__header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.audit-result__header h2 { margin-bottom: 0.25rem; }
.audit-result__header a { color: var(--text-muted); font-size: 0.9rem; }

.audit-score { text-align: center; margin-bottom: 2rem; }
.audit-score__circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}
.audit-score__circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.audit-score__circle--good { background: #d1fae5; color: #065f46; }
.audit-score__circle--warning { background: #fef3c7; color: #92400e; }
.audit-score__circle--danger { background: #fee2e2; color: #991b1b; }
.audit-score__value { font-size: 3rem; font-weight: 800; line-height: 1; }
.audit-score__label { font-size: 0.9rem; opacity: 0.7; }

.audit-issues { margin-bottom: 2rem; }
.audit-issue {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.audit-issue:hover { transform: translateX(4px); }
.audit-issue--error { background: #fee2e2; }
.audit-issue--warning { background: #fef3c7; }
.audit-issue--info { background: #dbeafe; }

.audit-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.audit-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); }
.audit-table td:first-child { font-weight: 600; }
.audit-actions { display: flex; gap: 1rem; margin-top: 2rem; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.info-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.info-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.info-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 4rem; color: var(--text-muted); }

/* ─── Error Page ─── */
.error-page { padding: 6rem 0; text-align: center; }
.error-page__code {
    font-size: 10rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}
.error-page h2 { margin-bottom: 0.5rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }
.error-page__actions { display: flex; gap: 1rem; justify-content: center; }

/* ─── Footer ─── */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent2));
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: inline-block;
    margin-bottom: 0.75rem;
}
.footer__logo:hover { color: var(--white); }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}
.footer__social a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.footer__links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 1rem; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: var(--gray-400); font-size: 0.85rem; }
.footer__links a:hover { color: var(--white); padding-left: 4px; }
.footer__bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ─── Scroll animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--gray-900);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        z-index: 999;
    }
    .nav__menu.active { display: flex; }
    .nav__menu .nav__link { font-size: 1.2rem; color: var(--white); }
    .nav__toggle { display: flex; z-index: 1001; }
    .nav__dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; background: transparent; }

    .hero__title { font-size: 2.5rem; }
    .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
    .hero__stat strong { font-size: 1.75rem; }

    h1 { font-size: 2rem; }
    .section__header h2 { font-size: 1.75rem; }

    .posts-grid { grid-template-columns: 1fr; }
    .content-sidebar { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }

    .article__title { font-size: 1.75rem; }
    .article__meta { gap: 0.75rem; }

    .newsletter-form { flex-direction: column; }

    .hero { min-height: auto; padding: 8rem 0 4rem; }
}
