/*
Theme Name: Marketino
Theme URI: http://localhost/mob/
Author: Local Development
Description: قالب فارسی، راست‌چین و سبک برای مجله بازاریابی و نرم‌افزارهای مارکتینگ با پشتیبانی کامل از Elementor Pro.
Version: 1.0.0
Text Domain: marketino
Requires at least: 6.4
Requires PHP: 8.1
*/

:root {
  --mk-primary: #635bff;
  --mk-primary-dark: #4f46e5;
  --mk-secondary: #06b6d4;
  --mk-accent: #f97316;
  --mk-ink: #111827;
  --mk-muted: #64748b;
  --mk-soft: #f1f5f9;
  --mk-surface: #ffffff;
  --mk-border: #e2e8f0;
  --mk-radius: 22px;
  --mk-shadow: 0 20px 60px rgba(15, 23, 42, .09);
  --mk-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  color: var(--mk-ink);
  background: #fff;
  font-family: Vazirmatn, IRANSansX, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--mk-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.header-row { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--mk-primary), var(--mk-secondary)); box-shadow: 0 10px 24px rgba(99, 91, 255, .24); }
.brand-mark svg { width: 24px; height: 24px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 13px; border-radius: 11px; color: #334155; font-size: 14px; font-weight: 700; transition: .2s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--mk-primary); background: #f0efff; }
.header-action, .mk-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--mk-primary), var(--mk-primary-dark)); font-weight: 800; box-shadow: 0 12px 26px rgba(99, 91, 255, .22); transition: transform .2s ease, box-shadow .2s ease; }
.header-action:hover, .mk-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(99, 91, 255, .3); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--mk-border); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--mk-ink); }

.site-main { min-height: 60vh; }
.marketino-home { overflow: hidden; }
.marketino-home .elementor-section-wrap > .elementor-section, .marketino-home > .elementor > .elementor-section { position: relative; }
.mk-section { padding: 88px 0; }
.mk-section-soft { background: #f8fafc; }
.mk-section-dark { color: #fff; background: #0f172a; }
.mk-section-title { max-width: 690px; margin: 0 auto 38px; text-align: center; }
.mk-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--mk-primary); font-size: 13px; font-weight: 900; }
.mk-eyebrow::before { width: 24px; height: 3px; border-radius: 10px; background: currentColor; content: ""; }
.mk-section-title h2 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 42px); line-height: 1.4; letter-spacing: -.8px; }
.mk-section-title p { margin: 0; color: var(--mk-muted); }

.marketino-hero { isolation: isolate; padding: 82px 0 72px; background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, .14), transparent 30%), radial-gradient(circle at 90% 0%, rgba(99, 91, 255, .18), transparent 34%), #fbfdff; }
.marketino-hero::before { position: absolute; z-index: -1; inset: auto -120px -190px auto; width: 440px; height: 440px; border-radius: 50%; border: 70px solid rgba(99, 91, 255, .04); content: ""; }
.marketino-hero .elementor-container { align-items: center; gap: 36px; }
.marketino-hero .elementor-heading-title { max-width: 650px; margin: 0; font-size: clamp(38px, 5vw, 68px) !important; font-weight: 950 !important; line-height: 1.25 !important; letter-spacing: -1.8px; }
.marketino-hero .elementor-widget-text-editor { max-width: 620px; color: #475569; font-size: 18px; }
.marketino-hero .elementor-button { padding: 16px 28px !important; border-radius: 14px !important; background: linear-gradient(135deg, var(--mk-primary), var(--mk-primary-dark)) !important; box-shadow: 0 15px 34px rgba(99, 91, 255, .28); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #dddafe; border-radius: 999px; color: var(--mk-primary-dark); background: rgba(255,255,255,.8); font-size: 13px; font-weight: 900; }
.hero-kicker::before { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-secondary); box-shadow: 0 0 0 5px rgba(6,182,212,.12); content: ""; }
.hero-visual { position: relative; min-height: 430px; padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 32px; background: linear-gradient(145deg, #141b35, #202b58); box-shadow: 0 40px 90px rgba(15,23,42,.22); overflow: hidden; }
.hero-visual::before { position: absolute; inset: -80px auto auto -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(34,211,238,.12); filter: blur(2px); content: ""; }
.hero-visual__top { position: relative; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.hero-visual__top b { font-size: 18px; }
.hero-visual__dots { display: flex; gap: 6px; direction: ltr; }
.hero-visual__dots i { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.hero-visual__dots i:first-child { background: var(--mk-secondary); }
.hero-chart { position: relative; height: 176px; margin-top: 30px; border-radius: 20px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 1px, transparent 1px 42px), linear-gradient(180deg, rgba(99,91,255,.22), transparent); overflow: hidden; }
.hero-chart svg { position: absolute; inset: 18px 0 0; width: 100%; height: 145px; }
.hero-metrics { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.hero-metric { padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; color: #cbd5e1; background: rgba(255,255,255,.06); }
.hero-metric b { display: block; color: #fff; font-size: 21px; line-height: 1.3; }
.hero-metric span { font-size: 11px; }
.hero-float { position: absolute; left: 18px; bottom: 92px; padding: 11px 14px; border-radius: 14px; color: #14532d; background: #dcfce7; font-size: 12px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.2); transform: rotate(-3deg); }

.stat-strip { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -25px; border: 1px solid var(--mk-border); border-radius: 20px; background: #fff; box-shadow: var(--mk-shadow); overflow: hidden; }
.stat-item { padding: 22px; text-align: center; }
.stat-item + .stat-item { border-inline-start: 1px solid var(--mk-border); }
.stat-item b { display: block; color: var(--mk-primary); font-size: 25px; line-height: 1.3; }
.stat-item span { color: var(--mk-muted); font-size: 13px; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { position: relative; min-height: 196px; padding: 24px; border: 1px solid var(--mk-border); border-radius: var(--mk-radius); background: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.04); overflow: hidden; transition: .25s ease; }
.topic-card:hover { border-color: #c7c4ff; transform: translateY(-6px); box-shadow: var(--mk-shadow); }
.topic-card__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: var(--mk-primary); background: #efefff; font-size: 24px; }
.topic-card h3 { margin: 0 0 7px; font-size: 18px; }
.topic-card p { margin: 0; color: var(--mk-muted); font-size: 13px; line-height: 1.8; }
.topic-card__arrow { position: absolute; left: 22px; bottom: 18px; color: var(--mk-primary); font-size: 20px; }

.featured-layout { display: grid; grid-template-columns: 1.35fr .9fr; gap: 22px; }
.featured-main, .featured-side { border: 1px solid var(--mk-border); border-radius: 26px; background: #fff; overflow: hidden; }
.post-visual { position: relative; display: block; min-height: 260px; padding: 28px; color: #fff; background: linear-gradient(135deg, #111827, #4338ca 62%, #06b6d4); overflow: hidden; }
.post-visual::before, .post-card__visual::before { position: absolute; width: 210px; height: 210px; left: -55px; top: -70px; border: 35px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.post-visual::after, .post-card__visual::after { position: absolute; width: 110px; height: 110px; right: 22px; bottom: -45px; border-radius: 30px; background: rgba(255,255,255,.09); transform: rotate(28deg); content: ""; }
.post-visual__label { position: relative; z-index: 2; display: inline-block; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 800; }
.featured-main__body { padding: 26px 28px 30px; }
.featured-main h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.55; }
.featured-main p { margin: 0 0 18px; color: var(--mk-muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #94a3b8; font-size: 12px; }
.featured-side { padding: 8px 22px; }
.mini-post { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding: 17px 0; }
.mini-post + .mini-post { border-top: 1px solid var(--mk-border); }
.mini-post__number { height: 68px; display: grid; place-items: center; border-radius: 17px; color: var(--mk-primary); background: #f0efff; font-size: 24px; font-weight: 950; }
.mini-post h4 { margin: 0 0 5px; font-size: 15px; line-height: 1.7; }
.mini-post span { color: #94a3b8; font-size: 11px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.055); }
.tool-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.tool-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--mk-primary), var(--mk-secondary)); font-size: 22px; }
.tool-card h3 { margin: 0; font-size: 18px; }
.tool-card p { margin: 0; color: #94a3b8; font-size: 14px; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--mk-border); border-radius: 22px; background: #fff; overflow: hidden; transition: .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--mk-shadow); }
.post-card__visual { position: relative; height: 174px; display: flex; align-items: flex-end; padding: 20px; color: #fff; background: linear-gradient(135deg, #172554, #635bff 65%, #22d3ee); overflow: hidden; }
.post-card:nth-child(3n+2) .post-card__visual { background: linear-gradient(135deg, #3f1d2e, #db2777 65%, #fb923c); }
.post-card:nth-child(3n+3) .post-card__visual { background: linear-gradient(135deg, #0f3d3e, #0f766e 65%, #2dd4bf); }
.post-card__category { position: relative; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11px; font-weight: 800; backdrop-filter: blur(5px); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.post-card h3 { margin: 0 0 9px; font-size: 17px; line-height: 1.75; }
.post-card p { margin: 0 0 18px; color: var(--mk-muted); font-size: 13px; }
.post-card .post-meta { margin-top: auto; }

.newsletter-box { position: relative; padding: 48px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #4f46e5, #635bff 55%, #0891b2); box-shadow: 0 30px 80px rgba(79,70,229,.25); overflow: hidden; }
.newsletter-box::after { position: absolute; width: 320px; height: 320px; left: -80px; bottom: -190px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.newsletter-box__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .9fr; gap: 32px; align-items: center; }
.newsletter-box h2 { margin: 0 0 8px; font-size: clamp(25px, 4vw, 39px); }
.newsletter-box p { margin: 0; color: #e0e7ff; }
.newsletter-form { display: flex; gap: 9px; padding: 7px; border-radius: 16px; background: #fff; }
.newsletter-form input { min-width: 0; flex: 1; padding: 10px 13px; border: 0; outline: 0; color: var(--mk-ink); background: transparent; }
.newsletter-form button { padding: 11px 19px; border: 0; border-radius: 11px; color: #fff; background: #111827; cursor: pointer; font-weight: 800; }

.page-hero { padding: 66px 0; background: linear-gradient(180deg, #f5f7ff, #fff); text-align: center; }
.page-hero h1 { max-width: 850px; margin: 0 auto 12px; font-size: clamp(31px, 5vw, 52px); line-height: 1.45; }
.page-hero p { margin: 0; color: var(--mk-muted); }
.content-area { padding: 60px 0 90px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 7px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--mk-border); border-radius: 11px; background: #fff; }
.pagination .current { color: #fff; border-color: var(--mk-primary); background: var(--mk-primary); }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.article-shell { min-width: 0; }
.article-header { margin-bottom: 30px; }
.article-header h1 { margin: 12px 0 15px; font-size: clamp(32px, 5vw, 56px); line-height: 1.42; letter-spacing: -1px; }
.article-category { display: inline-flex; padding: 6px 12px; border-radius: 999px; color: var(--mk-primary); background: #efefff; font-size: 12px; font-weight: 900; }
.article-cover { min-height: 360px; display: grid; place-items: center; margin-bottom: 34px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #111827, #4f46e5 58%, #06b6d4); overflow: hidden; }
.article-cover span { max-width: 600px; padding: 32px; font-size: clamp(24px,4vw,42px); font-weight: 950; text-align: center; line-height: 1.5; }
.article-content { color: #334155; font-size: 17px; line-height: 2.15; }
.article-content h2, .article-content h3 { color: var(--mk-ink); line-height: 1.55; }
.article-content h2 { margin-top: 48px; font-size: 29px; }
.article-content h3 { margin-top: 34px; font-size: 23px; }
.article-content a { color: var(--mk-primary); text-decoration: underline; text-underline-offset: 4px; }
.article-content blockquote { margin: 34px 0; padding: 22px 24px; border: 0; border-inline-start: 4px solid var(--mk-primary); border-radius: 14px; background: #f8fafc; }
.article-content img { border-radius: 20px; }
.article-sidebar { position: sticky; top: 105px; }
.sidebar-card { margin-bottom: 18px; padding: 23px; border: 1px solid var(--mk-border); border-radius: 20px; background: #fff; }
.sidebar-card h3 { margin: 0 0 14px; font-size: 17px; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li + li { margin-top: 10px; }
.sidebar-card a { color: #475569; font-size: 14px; }
.sidebar-card a:hover { color: var(--mk-primary); }
.article-cta { padding: 25px; border-radius: 20px; color: #fff; background: #111827; }
.article-cta h3 { margin: 0 0 8px; }
.article-cta p { margin: 0 0 16px; color: #94a3b8; font-size: 13px; }

.site-footer { margin-top: 80px; color: #cbd5e1; background: #0b1120; }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 45px; padding: 68px 0 48px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 460px; margin: 18px 0 0; color: #94a3b8; }
.footer-col h3 { margin: 0 0 16px; color: #fff; font-size: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 9px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(148,163,184,.15); color: #64748b; font-size: 13px; text-align: center; }

.empty-state { padding: 50px; border: 1px dashed #cbd5e1; border-radius: 22px; color: var(--mk-muted); background: #f8fafc; text-align: center; }

@media (max-width: 1024px) {
  .main-nav { position: fixed; inset: 79px 16px auto; display: none; padding: 14px; border: 1px solid var(--mk-border); border-radius: 18px; background: #fff; box-shadow: var(--mk-shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: block; margin-inline-start: auto; }
  .header-action { display: none; }
  .topic-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-layout, .single-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}

@media (max-width: 767px) {
  body.admin-bar .site-header { top: 46px; }
  .header-row { min-height: 70px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .marketino-hero { padding: 55px 0 48px; }
  .marketino-hero .elementor-heading-title { font-size: 39px !important; }
  .hero-visual { min-height: 380px; padding: 18px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metric { display: flex; align-items: center; justify-content: space-between; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .stat-item:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--mk-border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--mk-border); }
  .mk-section { padding: 62px 0; }
  .topic-grid, .posts-grid, .tool-grid, .archive-grid { grid-template-columns: 1fr; }
  .featured-main__body { padding: 22px; }
  .newsletter-box { padding: 30px 22px; }
  .newsletter-box__inner { grid-template-columns: 1fr; }
  .newsletter-form { display: block; background: transparent; padding: 0; }
  .newsletter-form input { width: 100%; margin-bottom: 9px; border-radius: 12px; background: #fff; }
  .newsletter-form button { width: 100%; }
  .article-header h1 { font-size: 34px; }
  .article-cover { min-height: 270px; }
  .article-sidebar { display: block; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 50px; }
}

