/* =====================================================
   Nexora SEO Tools - Premium Stylesheet v2.0
   Developed by Mr Arslan CEO
   https://www.codester.com/mrdigitalceo
   ===================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --gradient: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37,99,235,.08), rgba(139,92,246,.08));
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 14px rgba(15,23,42,.06);
    --shadow-md: 0 8px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 16px 40px rgba(37,99,235,.14);
    --shadow-xl: 0 24px 60px rgba(37,99,235,.18);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --dark-bg: #0b1220;
    --dark-surface: #131c30;
    --dark-card: #182238;
    --dark-text: #e2e8f0;
    --dark-text-muted: #94a3b8;
    --dark-border: #233048;
    --dark-nav: #0b1220;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--background);
    transition: background .3s ease, color .3s ease;
    direction: ltr;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] { direction: rtl; text-align: right; font-family: 'Inter', 'Tahoma', sans-serif; }
main { flex: 1; }

body.dark-mode {
    --background: var(--dark-bg);
    --surface: var(--dark-surface);
    --text: var(--dark-text);
    --text-muted: var(--dark-text-muted);
    --border: var(--dark-border);
}
body.dark-mode .navbar,
body.dark-mode .stats-container,
body.dark-mode .tools-category,
body.dark-mode .footer,
body.dark-mode .tool-card,
body.dark-mode .hero-search-container,
body.dark-mode .dropdown-menu,
body.dark-mode .notification,
body.dark-mode .blog-card,
body.dark-mode .category-card,
body.dark-mode .tool-page-card,
body.dark-mode .comment-item,
body.dark-mode .page-content,
body.dark-mode .feature-card,
body.dark-mode .newsletter-card {
    background: var(--dark-surface);
    color: var(--dark-text);
    border-color: var(--dark-border);
}
body.dark-mode .navbar { background: rgba(11,18,32,.92); }
body.dark-mode .stat-item { background: var(--dark-card); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.2rem; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ===== NAVBAR (premium) ===== */
.navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(15,23,42,.05);
    position: sticky; top: 0; z-index: 1000;
    padding: .9rem 0;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled { box-shadow: 0 6px 20px rgba(15,23,42,.06); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.2rem; font-weight: 800;
}
.logo img { height: 38px; width: auto; }
.logo span {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.5px;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
    color: var(--text); font-weight: 500; position: relative;
    padding: .5rem .1rem; font-size: .95rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-links > li > a::after {
    content:''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--gradient); transition: width .3s; border-radius: 2px;
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; }

.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: .5rem 0; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .25s ease; z-index: 1100;
    border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { padding: 0; }
.dropdown-menu a { display: block; padding: .65rem 1rem; color: var(--text); font-size: .92rem; }
.dropdown-menu a:hover { background: var(--background); color: var(--primary); padding-left: 1.2rem; }
.flag-icon { width: 22px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.language-dropdown .dropdown-menu li { display: flex; align-items: center; gap: .5rem; padding: .4rem 1rem; cursor: pointer; }
.language-dropdown .dropdown-menu li:hover { background: var(--background); }
.language-dropdown .dropdown-menu li a { padding: .3rem 0; flex: 1; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--text); }

/* ===== HERO ===== */
.hero {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.18), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(139,92,246,.16), transparent 60%),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    padding: 4.5rem 0 3rem; text-align: center;
    position: relative; overflow: hidden;
}
body.dark-mode .hero {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.22), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(139,92,246,.18), transparent 60%),
        linear-gradient(180deg, #131c30 0%, #0b1220 100%);
}
.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    font-weight: 800; margin-bottom: .9rem;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px; line-height: 1.1;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 780px; margin: 0 auto 2rem; }

.hero-search-container {
    max-width: 800px; margin: 0 auto 2.5rem;
    background: #fff; padding: 1.8rem; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(99,102,241,.08);
}
.hero-search-container h2 { font-size: 1.35rem; margin-bottom: 1rem; font-weight: 700; }
.hero-search-form { display: flex; gap: .5rem; position: relative; }
.hero-search-input {
    flex: 1; padding: 1rem 1.2rem; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 1rem; outline: none;
    background: var(--background); color: var(--text);
    transition: all .2s; font-family: inherit;
}
.hero-search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
body.dark-mode .hero-search-input:focus { background: var(--dark-card); }
.hero-search-submit {
    padding: 0 1.6rem; background: var(--gradient); color: #fff; border: 0;
    border-radius: var(--radius); cursor: pointer; font-size: 1rem; font-weight: 600;
    transition: transform .15s, box-shadow .2s;
    min-width: 60px;
}
.hero-search-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.search-results-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-xl);
    max-height: 460px; overflow-y: auto; z-index: 200; display: none;
    text-align: left; border: 1px solid var(--border);
}
body.dark-mode .search-results-dropdown { background: var(--dark-card); }
.search-results-dropdown a {
    display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border); color: var(--text);
    transition: all .15s;
}
.search-results-dropdown a:last-child { border-bottom: 0; }
.search-results-dropdown a:hover { background: var(--background); padding-left: 1.4rem; }
.search-results-dropdown .res-icon { width: 36px; height: 36px; background: var(--gradient-soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-results-dropdown .res-icon img,
.search-results-dropdown .res-icon svg { width: 22px; height: 22px; }
.search-results-dropdown mark { background: rgba(245,158,11,.25); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-results-dropdown .res-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Stats */
.stats-container { margin-top: 2rem; }
.stats-heading { color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1000px; margin: 0 auto 2rem; }
.stat-item {
    background: #fff; padding: 1.3rem .8rem; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
    border: 1px solid rgba(99,102,241,.06);
}
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-number {
    font-size: 1.7rem; font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.featured-on { border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 1.4rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.featured-on span { color: var(--text-muted); font-size: .82rem; font-weight: 700; letter-spacing: 1.5px; }
.featured-logos { display: flex; gap: 1.5rem; align-items: center; }
.featured-logos img { height: 28px; opacity: .75; filter: grayscale(.4); transition: all .25s; }
.featured-logos img:hover { opacity: 1; filter: none; transform: translateY(-2px); }

/* ===== TOOLS SECTION ===== */
.tools-section { padding: 3rem 0; }
.tools-category {
    background: #fff; border-radius: var(--radius-xl); padding: 1.9rem; margin-bottom: 1.6rem;
    box-shadow: var(--shadow); border: 1px solid rgba(15,23,42,.04);
    transition: box-shadow .25s;
}
.tools-category:hover { box-shadow: var(--shadow-md); }
.tools-category h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .65rem; }
.tools-category h2::before { content: ''; display: block; width: 5px; height: 28px; background: var(--gradient); border-radius: 3px; }
.tools-category h2 a { color: var(--primary); font-size: .85rem; font-weight: 600; margin-left: auto; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.tool-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1.5rem 1rem; gap: .75rem;
    background: var(--background); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    transition: all .25s ease; color: var(--text);
    min-height: 150px; position: relative; overflow: hidden;
}
.tool-card::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient); opacity: 0;
    transition: opacity .25s; z-index: 0;
}
.tool-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 16px 32px rgba(37,99,235,.15); background: #fff; }
body.dark-mode .tool-card { background: rgba(255,255,255,.02); }
body.dark-mode .tool-card:hover { background: var(--dark-card); }
.tool-card > * { position: relative; z-index: 1; }
.tool-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--gradient-soft); border-radius: 14px; transition: transform .25s; }
.tool-card:hover .tool-icon { transform: scale(1.08); }
.tool-icon img, .tool-icon svg { width: 34px; height: 34px; }
.tool-card h3 { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.tool-card .badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.tool-card .badge-mini { font-size: .65rem; padding: 2px 7px; border-radius: 20px; font-weight: 700; }
.badge-mini.featured { background: rgba(245,158,11,.15); color: #b45309; }
.badge-mini.trending { background: rgba(239,68,68,.15); color: #b91c1c; }
.badge-mini.new { background: rgba(16,185,129,.15); color: #047857; }

/* ===== TOOL PAGE ===== */
.tool-page { padding: 2.5rem 0; }
.tool-header { text-align: center; margin-bottom: 2rem; }
.tool-header .tool-icon-lg {
    width: 88px; height: 88px; margin: 0 auto 1rem;
    background: var(--gradient); border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 32px rgba(99,102,241,.3);
}
.tool-header .tool-icon-lg img,
.tool-header .tool-icon-lg svg { width: 48px; height: 48px; filter: brightness(0) invert(1); }
.tool-header h1 { font-size: 2.1rem; margin-bottom: .5rem; font-weight: 800; }
.tool-header p { color: var(--text-muted); max-width: 720px; margin: 0 auto; }
.tool-page-card {
    background: #fff; padding: 2.2rem; border-radius: var(--radius-xl);
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
    border: 1px solid rgba(15,23,42,.04);
}
.tool-page-card label { font-weight: 600; display: block; margin-bottom: .5rem; }
.tool-page-card textarea,
.tool-page-card input[type=text],
.tool-page-card input[type=number],
.tool-page-card input[type=url],
.tool-page-card input[type=email],
.tool-page-card input[type=password],
.tool-page-card select {
    width: 100%; padding: .85rem 1rem; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 1rem; margin-bottom: 1rem;
    background: var(--background); color: var(--text);
    font-family: inherit; transition: all .2s;
}
.tool-page-card textarea { min-height: 200px; resize: vertical; }
.tool-page-card textarea:focus,
.tool-page-card input:focus,
.tool-page-card select:focus { border-color: var(--primary); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
body.dark-mode .tool-page-card input:focus,
body.dark-mode .tool-page-card textarea:focus,
body.dark-mode .tool-page-card select:focus { background: var(--dark-card); }

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.5rem; border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer;
    font-size: .95rem; transition: all .2s ease; font-family: inherit;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(99,102,241,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(99,102,241,.35); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--background); border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-error { background: var(--error); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb { background: transparent; padding: 1rem 0; font-size: .9rem; color: var(--text-muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumb .sep { color: var(--text-muted); }

/* Related tools */
.related-tools { margin-top: 2.5rem; }
.related-tools h3 { margin-bottom: 1.2rem; font-size: 1.3rem; font-weight: 700; }

/* Categories cards */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; padding: 1rem 0 3rem; }
.category-card {
    background: #fff; border-radius: var(--radius-xl); padding: 1.8rem;
    text-align: center; border: 1px solid var(--border);
    transition: all .25s; color: var(--text); position: relative; overflow: hidden;
}
.category-card::before {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 100%; height: 100%; background: var(--gradient-soft);
    border-radius: 50%; opacity: 0; transition: opacity .3s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.category-card:hover::before { opacity: 1; }
.category-card > * { position: relative; z-index: 1; }
.category-card .cat-icon { width: 70px; height: 70px; margin: 0 auto .9rem; border-radius: 16px; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.category-card:hover .cat-icon { transform: scale(1.1); }
.category-card .cat-icon img,
.category-card .cat-icon svg { width: 40px; height: 40px; }
.category-card h3 { font-size: 1.15rem; margin-bottom: .3rem; font-weight: 700; }
.category-card small { color: var(--text-muted); font-weight: 500; }

/* ===== BLOG ===== */
.blog-hero { padding: 3rem 0 1rem; }
.blog-hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: .5rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.blog-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; }
.blog-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; align-items: center; }
.blog-toolbar form { display: flex; gap: .5rem; flex: 1; min-width: 280px; }
.blog-toolbar input { padding: .75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); flex: 1; outline: none; font-family: inherit; }
.blog-toolbar input:focus { border-color: var(--primary); }
.blog-cat-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .45rem .9rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: 50px; color: var(--text); font-size: .85rem; font-weight: 500; transition: all .2s; }
.chip:hover, .chip.active { background: var(--gradient); color: #fff; border-color: transparent; }

.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.6rem; padding: 1rem 0 2rem; }
.blog-card { background: #fff; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); transition: all .25s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); }
.blog-card .thumb { width: 100%; aspect-ratio: 16/9; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.4rem; overflow: hidden; position: relative; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .cat-pill { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--primary); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.blog-card .body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .body h3 { margin-bottom: .5rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.blog-card .body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; flex: 1; }
.blog-card .body .meta { display: flex; gap: 1rem; color: var(--text-muted); font-size: .8rem; flex-wrap: wrap; }

/* Blog detail (premium magazine) */
.blog-detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; padding: 2.5rem 0; }
@media (max-width: 992px) { .blog-detail-wrap { grid-template-columns: 1fr; } }
.blog-detail { max-width: 100%; }
.blog-detail .post-meta { color: var(--text-muted); margin: 1.2rem 0; display: flex; gap: 1.3rem; flex-wrap: wrap; font-size: .9rem; }
.blog-detail h1 { font-size: 2.4rem; margin-bottom: 1rem; line-height: 1.2; font-weight: 800; }
.blog-detail .feat-img { border-radius: var(--radius-xl); margin: 1.5rem 0; overflow: hidden; }
.blog-detail .feat-img img { width: 100%; height: auto; }
.blog-detail .content { font-size: 1.07rem; line-height: 1.85; }
.blog-detail .content h2 { margin: 2rem 0 .9rem; font-size: 1.65rem; font-weight: 700; }
.blog-detail .content h3 { margin: 1.6rem 0 .8rem; font-size: 1.3rem; font-weight: 700; }
.blog-detail .content p { margin-bottom: 1.1rem; }
.blog-detail .content blockquote { border-left: 4px solid var(--primary); background: var(--gradient-soft); padding: 1rem 1.5rem; margin: 1.4rem 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.blog-detail .content code { background: rgba(99,102,241,.1); padding: 2px 6px; border-radius: 4px; font-size: .92em; color: var(--primary-dark); }
.blog-detail .content pre { background: #1e293b; color: #e2e8f0; padding: 1.2rem; border-radius: var(--radius); overflow-x: auto; margin: 1.2rem 0; }
.blog-detail .content pre code { background: transparent; color: inherit; padding: 0; }
.blog-detail .content ul, .blog-detail .content ol { margin: 1rem 0 1rem 1.5rem; }
.blog-detail .content img { border-radius: var(--radius); margin: 1rem 0; }

.author-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.4rem; display: flex; gap: 1rem; align-items: center; margin: 2rem 0; }
.author-box .author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.5rem; flex-shrink: 0; }
.author-box .author-info h4 { margin: 0; font-size: 1.05rem; }
.author-box .author-info p { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

.share-bar { display: flex; gap: .5rem; margin: 1.5rem 0; flex-wrap: wrap; }
.share-bar a { width: 40px; height: 40px; border-radius: 50%; background: var(--background); display: flex; align-items: center; justify-content: center; color: var(--text); transition: all .2s; }
.share-bar a:hover { transform: translateY(-3px); }
.share-bar a.facebook:hover { background: #1877F2; color: #fff; }
.share-bar a.twitter:hover { background: #000; color: #fff; }
.share-bar a.linkedin:hover { background: #0077B5; color: #fff; }
.share-bar a.whatsapp:hover { background: #25D366; color: #fff; }
.share-bar a.copy-link:hover { background: var(--primary); color: #fff; }

.tag-cloud { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.tag-cloud .tag { display: inline-block; background: var(--background); color: var(--text); padding: .4rem .85rem; border-radius: 30px; font-size: .82rem; font-weight: 500; transition: all .2s; }
.tag-cloud .tag:hover { background: var(--gradient); color: #fff; }

.blog-sidebar { position: sticky; top: 90px; height: max-content; }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.4rem; margin-bottom: 1.2rem; }
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 1rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.sidebar-widget h4::before { content:''; width: 4px; height: 18px; background: var(--gradient); border-radius: 2px; }
.sidebar-widget .post-mini { display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.sidebar-widget .post-mini:last-child { border-bottom: 0; }
.sidebar-widget .post-mini .num { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); flex-shrink: 0; font-size: .85rem; }
.sidebar-widget .post-mini a { color: var(--text); font-weight: 500; font-size: .9rem; line-height: 1.35; }
.sidebar-widget .post-mini a:hover { color: var(--primary); }

.toc { background: var(--gradient-soft); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.5rem 0; }
.toc h4 { font-size: .95rem; margin-bottom: .6rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.toc ol { list-style: none; counter-reset: toc; padding-left: 0; }
.toc li { counter-increment: toc; padding: .25rem 0; padding-left: 1.5rem; position: relative; font-size: .9rem; }
.toc li::before { content: counter(toc) '.'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.toc li.toc-l3 { padding-left: 2.4rem; font-size: .85rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* ===== COMMENTS ===== */
.comments-section { margin-top: 3rem; padding: 1.8rem; background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); }
.comments-section h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .55rem; }
.comments-section h3 .count { background: var(--gradient); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.comment-form { margin-bottom: 2rem; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 600px) { .comment-form .form-row { grid-template-columns: 1fr; } }
.comment-form input, .comment-form textarea { width: 100%; padding: .8rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--background); font-family: inherit; margin-bottom: .8rem; outline: none; transition: border-color .2s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-list { list-style: none; padding: 0; }
.comment-item { display: flex; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--border); }
.comment-item .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-item .body { flex: 1; }
.comment-item .meta { font-size: .85rem; color: var(--text-muted); margin-bottom: .3rem; }
.comment-item .author { font-weight: 700; color: var(--text); margin-right: .5rem; }
.comment-item .actions { margin-top: .5rem; display: flex; gap: .8rem; font-size: .82rem; }
.comment-item .actions a { color: var(--primary); cursor: pointer; }
.comment-item .replies { margin-left: 3.2rem; }
.admin-badge { background: var(--success); color:#fff; font-size:.7rem; padding:1px 6px; border-radius:4px; vertical-align: middle; }

/* ===== PAGES ===== */
.page-content { background: var(--surface); padding: 2.4rem; border-radius: var(--radius-xl); border: 1px solid var(--border); margin: 2rem 0; }
.page-content h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 1rem; }
.page-content h2 { font-size: 1.5rem; margin: 1.8rem 0 .8rem; }
.page-content h3 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; }
.page-content ul, .page-content ol { margin: 1rem 0 1rem 1.5rem; }

/* ===== NEWSLETTER ===== */
.newsletter-card { background: var(--gradient); color: #fff; padding: 2.2rem; border-radius: var(--radius-xl); text-align: center; margin: 2rem 0; box-shadow: var(--shadow-lg); }
.newsletter-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.newsletter-card p { opacity: .95; margin-bottom: 1.2rem; }
.newsletter-card form { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto; }
.newsletter-card input { flex: 1; padding: .8rem 1rem; border: 0; border-radius: var(--radius); font-family: inherit; outline: none; }
.newsletter-card button { padding: .8rem 1.5rem; background: rgba(0,0,0,.3); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; font-weight: 700; transition: background .2s; font-family: inherit; }
.newsletter-card button:hover { background: rgba(0,0,0,.5); }

/* Notification */
.notification {
    position: fixed; bottom: 24px; right: 24px;
    background: #fff; padding: 1rem 1.4rem; border-radius: var(--radius);
    box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: .8rem;
    z-index: 1500; transform: translateY(20px); opacity: 0;
    transition: all .3s ease; max-width: 360px; min-width: 200px;
    border: 1px solid var(--border);
}
body[dir="rtl"] .notification { right: auto; left: 24px; }
.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { border-left: 4px solid var(--success); }
.notification.error { border-left: 4px solid var(--error); }
.notification.info { border-left: 4px solid var(--info); }

/* Theme toggle & popup search */
.theme-toggle { position: fixed; bottom: 24px; left: 24px; width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff; border: 0; cursor: pointer; font-size: 1.2rem; z-index: 999; box-shadow: var(--shadow-xl); transition: transform .2s; }
.theme-toggle:hover { transform: scale(1.1) rotate(20deg); }
body[dir="rtl"] .theme-toggle { left: auto; right: 24px; }
body[dir="rtl"] .popup-search-container { right: auto; left: 24px; }

.popup-search-container { position: fixed; bottom: 24px; right: 84px; z-index: 998; }
.popup-search-toggle { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff; border: 0; cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow-xl); transition: transform .2s; display: none; }
.popup-search-toggle:hover { transform: scale(1.1); }
.popup-search-box { position: absolute; bottom: 62px; right: 0; width: 340px; background: #fff; border-radius: var(--radius); padding: .8rem; box-shadow: var(--shadow-xl); display: none; }
.popup-search-box.show { display: block; }
.popup-search-form { display: flex; gap: .4rem; }
.popup-search-input { flex: 1; padding: .65rem .9rem; border: 2px solid var(--border); border-radius: var(--radius); outline: none; font-family: inherit; }
.popup-search-submit { padding: 0 1rem; background: var(--gradient); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; }

/* ===== FOOTER (premium) ===== */
.footer { background: #fff; padding: 3.5rem 0 1.6rem; margin-top: 3rem; border-top: 1px solid var(--border); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-section h3 { margin-bottom: 1.1rem; font-size: 1.05rem; font-weight: 700; }
.footer-section p { color: var(--text-muted); line-height: 1.7; font-size: .92rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .55rem; }
.footer-section ul a { color: var(--text-muted); font-size: .92rem; transition: all .2s; }
.footer-section ul a:hover { color: var(--primary); padding-left: 4px; }
body[dir="rtl"] .footer-section ul a:hover { padding-left: 0; padding-right: 4px; }
.footer-section .contact-info li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text-muted); }
.footer-section .contact-info li i { color: var(--primary); width: 18px; }

.social-links { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: var(--background); display: flex; align-items: center; justify-content: center; color: var(--text); transition: all .25s; }
.social-links a:hover { transform: translateY(-3px) scale(1.08); color: #fff; }
.social-links a[data-platform="facebook"]:hover { background: #1877F2; }
.social-links a[data-platform="twitter"]:hover { background: #000; }
.social-links a[data-platform="instagram"]:hover { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF,#515BD4); }
.social-links a[data-platform="youtube"]:hover { background: #FF0000; }
.social-links a[data-platform="linkedin"]:hover { background: #0077B5; }
.social-links a[data-platform="tiktok"]:hover { background: #000; }
.social-links a[data-platform="telegram"]:hover { background: #26A5E4; }
.social-links a[data-platform="whatsapp"]:hover { background: #25D366; }
.social-links a[data-platform="pinterest"]:hover { background: #BD081C; }
.social-links a[data-platform="github"]:hover { background: #181717; }
.social-links a[data-platform="discord"]:hover { background: #5865F2; }

.footer-newsletter { background: var(--background); padding: 1.4rem; border-radius: var(--radius-lg); margin-bottom: 1.5rem; border: 1px solid var(--border); }
body.dark-mode .footer-newsletter { background: var(--dark-card); }
.footer-newsletter form { display: flex; gap: .4rem; margin-top: .8rem; }
.footer-newsletter input { flex: 1; padding: .65rem .9rem; border: 2px solid var(--border); border-radius: var(--radius); outline: none; background: #fff; font-family: inherit; }
body.dark-mode .footer-newsletter input { background: var(--dark-surface); color: var(--dark-text); }
.footer-newsletter button { padding: 0 1.2rem; background: var(--gradient); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; font-weight: 600; }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.4rem; text-align: center; color: var(--text-muted); font-size: .9rem; }
.footer-bottom a { color: var(--primary); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-detail h1 { font-size: 1.9rem; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 68px; right: -100%; height: calc(100vh - 68px);
        width: 300px; background: #fff; flex-direction: column;
        padding: 1.5rem; align-items: flex-start; transition: right .3s;
        box-shadow: var(--shadow-xl); overflow-y: auto;
    }
    body.dark-mode .nav-links { background: var(--dark-surface); }
    .nav-links.open { right: 0; }
    body[dir="rtl"] .nav-links { right: auto; left: -100%; }
    body[dir="rtl"] .nav-links.open { left: 0; }
    .dropdown-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding: .4rem 0 .4rem 1rem; border: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero-search-container { padding: 1.2rem; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .tools-category { padding: 1.3rem; }
    .popup-search-toggle { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .stat-number { font-size: 1.3rem; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-detail h1 { font-size: 1.6rem; }
    .tool-page-card { padding: 1.4rem; }
}

/* Utilities */
.text-center { text-align: center; }
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.d-flex{display:flex}.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.justify-between{justify-content:space-between}
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; display:flex; gap:.6rem; align-items:flex-start; }
.alert-success { background: rgba(16,185,129,.1); color: #047857; border: 1px solid rgba(16,185,129,.25); }
.alert-error { background: rgba(239,68,68,.1); color: #b91c1c; border: 1px solid rgba(239,68,68,.25); }
.alert-info { background: rgba(59,130,246,.1); color: #1d4ed8; border: 1px solid rgba(59,130,246,.25); }
.alert-warning { background: rgba(245,158,11,.1); color: #b45309; border: 1px solid rgba(245,158,11,.25); }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .55rem 1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 500; transition: all .2s; }
.pagination a:hover, .pagination .active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(99,102,241,.25); }
body.dark-mode .pagination a, body.dark-mode .pagination span { background: var(--dark-card); }

/* Ads */
.ad-block { margin: 1.2rem 0; text-align: center; min-height: 90px; }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fadeUp { animation: fadeUp .4s ease both; }

/* RTL improvements */
body[dir="rtl"] .blog-detail .content blockquote { border-left: 0; border-right: 4px solid var(--primary); border-radius: var(--radius) 0 0 var(--radius); }
body[dir="rtl"] .tools-category h2 a { margin-left: 0; margin-right: auto; }
