/* ============ SHARED STYLES — Personal Blog (v2, tuzatilgan) ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --accent: #2AABEE;
  --accent-2: #229ED9;
  --accent-soft: rgba(42,171,238,0.12);
  --text: #1c1c1e;
  --text-soft: #8e8e93;
  --border: #e7e7ea;
  --card-bg: #ffffff;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 56px;
  --radius: 14px;
  --radius-sm: 10px;
  /* BITTA shrift manbasi — butun sayt shu orqali ishlaydi */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #121212;
  --bg-soft: #1a1a1a;
  --accent: #2ecb85;
  --accent-2: #1fa668;
  --accent-soft: rgba(46,203,133,0.14);
  --text: #f0f0f0;
  --text-soft: #9a9a9a;
  --border: #2c2c2c;
  --card-bg: #1a1a1a;
}

html { transition: background .2s ease; }
body { transition: background .2s ease, color .2s ease; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s ease; }
img { display: block; max-width: 100%; }

/* Har qanday joydagi oddiy matn ichi link — hover doim ko'rinsin */
.article-body a, .prose a, .p-item a, .ad-card a, p a {
  color: var(--accent);
}
.article-body a:hover, .prose a:hover, .p-item a:hover, p a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ===== APP SHELL — hammasi shu ichida markazlashadi ===== */
.app-shell {
  max-width: 1600px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--border);
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 14px;
}
html[data-theme="dark"] .topbar { background: rgba(18,18,18,0.9); }
.topbar .burger {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-soft); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.topbar .burger:hover { background: var(--accent-soft); }
.topbar .burger svg { width: 20px; height: 20px; stroke: var(--text); }
.topbar .logo {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.topbar .logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.topbar nav {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; flex: 1; -ms-overflow-style: none;
}
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  flex-shrink: 0; font-size: 14px; font-weight: 500;
  color: var(--text-soft); padding: 8px 14px; border-radius: 10px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.topbar nav a.active { color: var(--text); background: var(--bg-soft); font-weight: 600; }
.topbar nav a:hover { color: var(--accent-2); background: var(--accent-soft); }

/* i18n tugmalari — kompakt, doim bitta qatorda */
.i18n-flag-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-soft);
  font-size: 12px; font-weight: 700; cursor: pointer;
  color: var(--text-soft); transition: all .15s;
}
.i18n-flag-btn:hover, .i18n-flag-btn.active {
  border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft);
}

/* Katta ekranda hammasi ko'rinadi, tor ekranda faqat burger + logo qoladi,
   qolgani (nav + tillar) burger ochganda chiqadigan drawer ichiga tushadi */
@media (max-width: 900px) {
  .topbar nav,
  .topbar .i18n-flag-btn { display: none; }
  .topbar { gap: 10px; }
}

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }
.content { flex: 1; min-width: 0; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  width: var(--sidebar-w);
  background: var(--bg); border-right: 1px solid var(--border);
  flex-shrink: 0; transition: width .22s ease;
  overflow: hidden; z-index: 90;
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.sidebar-inner {
  padding: 14px 10px; height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-inner::-webkit-scrollbar { width: 0; }
.side-link {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--text); font-size: 14.5px; font-weight: 500;
  white-space: nowrap; transition: background .15s, color .15s;
}
.side-link:hover { background: var(--bg-soft); color: var(--accent-2); }
.side-link.active { background: var(--accent-soft); color: var(--accent-2); }
.side-link svg {
  width: 22px; height: 22px; flex-shrink: 0;
  stroke: var(--text-soft); stroke-width: 1.8;
  fill: none; transition: stroke .15s;
}
.side-link:hover svg, .side-link.active svg { stroke: var(--accent-2); }
.side-link span { opacity: 1; transition: opacity .15s; overflow: hidden; }
.sidebar.collapsed .side-link span { opacity: 0; width: 0; }
.sidebar.collapsed .side-link { justify-content: center; padding: 11px 0; }
.side-divider { height: 1px; background: var(--border); margin: 10px 6px; }
.side-section-title {
  font-size: 12px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 12px 4px; white-space: nowrap;
  transition: opacity .15s;
}
.sidebar.collapsed .side-section-title { opacity: 0; height: 0; padding: 0; overflow: hidden; }

/* ===== AUTHOR CARD ===== */
.sidebar-author { display: flex; flex-direction: column; align-items: center; padding: 20px 12px 16px; text-align: center; gap: 10px; }
.sidebar.collapsed .sidebar-author { display: none; }
.author-avatar-ring {
  width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
}
.author-avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.author-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.author-bio { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.author-stats { display: flex; gap: 16px; margin-top: 4px; }
.author-stat { display: flex; flex-direction: column; align-items: center; }
.author-stat strong { font-size: 14px; font-weight: 700; color: var(--text); }
.author-stat span { font-size: 11px; color: var(--text-soft); }

.sidebar-social { display: flex; gap: 8px; padding: 8px 12px 4px; flex-wrap: wrap; justify-content: center; }
.sidebar-social a {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, color .15s;
  color: var(--text-soft);
}
.sidebar-social a:hover { background: var(--accent); color: #fff; }
.sidebar-social a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sidebar.collapsed .sidebar-social { display: none; }

/* ===== MAIN CONTENT ===== */
.content {
  padding: 16px 24px;
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 26px;
}
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 36px 16px 24px; }
.footer-bottom { max-width: 1000px; margin: 0 auto; padding: 16px; }

.section-title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.section-title .badge { width: 6px; height: 18px; border-radius: 3px; background: var(--accent); display: inline-block; }
.section-title a.see-all {
  margin-left: auto; font-size: 13px; font-weight: 500;
  color: var(--accent-2); padding: 4px 10px; border-radius: 8px;
  background: var(--accent-soft); transition: background .15s;
}
.section-title a.see-all:hover { background: var(--accent); color: #fff; }

/* ===== SCROLL ARROWS ===== */
.scroll-row-wrap { position: relative; }
.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: background .15s, opacity .15s;
}
.scroll-arrow:hover { background: var(--accent); }
.scroll-arrow:hover svg { stroke: #fff; }
.scroll-arrow svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2.4; }
.scroll-arrow.left { left: -6px; }
.scroll-arrow.right { right: -6px; }
.scroll-arrow.hidden { display: none; }
@media (max-width: 760px) { .scroll-arrow { display: none !important; } }

/* ===== STORIES — endi KVADRAT (aylana emas) ===== */
.stories-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; scroll-behavior: smooth; }
.stories-row::-webkit-scrollbar { display: none; }
.story { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; cursor: pointer; }
.story-ring {
  width: 84px; height: 84px;
  border-radius: 16px; /* kvadrat, yumshoq burchak */
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
}
.story.seen .story-ring { background: var(--border); }
.story-ring img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; border: 2px solid var(--bg); }
.story-name {
  font-size: 12px; font-weight: 500; color: var(--text-soft);
  text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 84px;
}

/* ===== CAROUSEL ===== */
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-card {
  flex-shrink: 0; width: 280px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.carousel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.carousel-card .thumb { width: 100%; height: 150px; object-fit: cover; background: var(--bg-soft); }
.carousel-card .body { padding: 12px 14px 14px; }
.carousel-card .tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.carousel-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.carousel-card:hover h3 { color: var(--accent-2); }
.carousel-card .meta { font-size: 12px; color: var(--text-soft); display: flex; gap: 10px; align-items: center; }

/* ===== NEWS POSTCARDS — float o'rniga GRID, bir xil o'lcham ===== */
.news-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 4px;
}
.n-card {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  display: flex; flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.n-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--accent) !important; }
.n-thumb { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 0; background: var(--bg-soft); margin-bottom: 0; }
.n-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.n-card:hover .n-thumb img { transform: scale(1.05); }
.n-info-mob, .n-card > div:not(.n-thumb) { padding: 12px 14px 14px; }
.n-time { font-size: 12px; color: var(--text-soft); margin-bottom: 6px; }
.n-time .cat { color: var(--accent-2); font-weight: 600; }
.n-time .sep { color: var(--border); margin: 0 4px; }
.n-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.n-card h3 a { color: inherit; }
.n-card:hover h3 { color: var(--accent-2); }

@media screen and (max-width: 720px) {
  .news-row { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}
@media screen and (max-width: 520px) {
  .news-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .n-card {
    flex-direction: row; align-items: stretch;
    border-radius: 0 !important; border: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 0 !important;
  }
  .n-card:hover { transform: none; box-shadow: none; }
  .n-thumb { width: 104px; height: 76px; flex-shrink: 0; aspect-ratio: unset; border-radius: 10px; margin-right: 12px; }
  .n-info-mob, .n-card > div:not(.n-thumb) { padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .n-card h3 { font-size: 13px; -webkit-line-clamp: 3; }
}

/* ===== VIDEO GRID — bir xil o'lchamli kartalar ===== */
.video-grid, .video-grid-full {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}
.vc, .video-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border);
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.vc:hover, .video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.video-thumb, .vc-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--bg-soft); overflow: hidden; }
.video-thumb img, .vc-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-thumb .play svg { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.video-thumb .duration, .vc-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.video-info, .vc-body { padding: 10px 12px 12px; }
.video-info h4, .vc-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-title:hover { color: var(--accent-2); }
.video-info .meta, .vc-meta { font-size: 12px; color: var(--text-soft); }
@media (max-width: 760px) { .video-grid, .video-grid-full { grid-template-columns: repeat(2, 1fr) !important; } }

/* ===== PHOTO GRID ===== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; position: relative; background: var(--bg-soft); transition: transform .15s, box-shadow .15s; }
.photo-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: unset; min-height: 260px; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: flex-end; padding: 12px; transition: background .2s; }
.photo-item:hover .overlay { background: rgba(0,0,0,0.35); }
.photo-item .caption { color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.photo-item:hover .caption { opacity: 1; }
.photo-item:hover { transform: scale(1.01); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* ===== ARTICLES LIST ===== */
.articles-list { display: flex; flex-direction: column; gap: 12px; }
.article-row { display: flex; gap: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; transition: box-shadow .15s, transform .15s, border-color .15s; cursor: pointer; }
.article-row:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--accent); }
.article-row img { width: 120px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.article-row .info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.article-row h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; color: var(--text); transition: color .15s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row:hover h3 { color: var(--accent-2); }
.article-row .meta { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--text-soft); }
.article-row .meta .item { display: flex; align-items: center; gap: 4px; }
.article-row .meta svg { width: 14px; height: 14px; stroke: var(--text-soft); }

/* ===== ADS SLIDER ===== */
.ads-slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; scroll-behavior: smooth; }
.ads-slider::-webkit-scrollbar { display: none; }
.ad-card { flex-shrink: 0; width: 240px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ad-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.ad-card img { width: 100%; height: 140px; object-fit: cover; }
.ad-card .ad-label { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; }
.ad-card .body { padding: 10px 12px 12px; }
.ad-card h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.ad-card:hover h4 { color: var(--accent-2); }
.ad-card p { font-size: 12px; color: var(--text-soft); }

/* ===== FOOTER ===== */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); margin-top: 8px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: 14px; }
.footer-col .logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--accent); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.footer-col .logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer-col p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; max-width: 280px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: var(--text); transition: color .15s; }
.footer-col ul a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.footer-bottom { border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-soft); }
.footer-bottom .legal-links { display: flex; gap: 16px; }
.footer-bottom .legal-links a { color: var(--text-soft); transition: color .15s; }
.footer-bottom .legal-links a:hover { color: var(--accent-2); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(42,171,238,0.4); cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .25s, transform .25s, background .15s; z-index: 150;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-2); }
.back-to-top svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; margin-bottom: 4px; }
.page-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text); }
.page-hero p { font-size: 15px; color: var(--text-soft); line-height: 1.6; max-width: 600px; }

/* ===== CARD GRID (generic) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card .card-body { padding: 14px; }
.card .card-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; color: var(--text); }
.card .card-meta { font-size: 12px; color: var(--text-soft); }

/* ===== ARTICLE PAGE ===== */
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.article-content { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.article-content h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.3; color: var(--text); }
.article-meta-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-meta-bar .tag { font-size: 11px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); font-family: var(--font-sans); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; background: var(--accent-soft); border-radius: 0 10px 10px 0; margin: 20px 0; font-style: italic; color: var(--text-soft); }
.article-body img { border-radius: 10px; margin: 20px 0; width: 100%; }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  font-size: 14px; color: var(--text); font-family: var(--font-sans);
  transition: border-color .15s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

/* ===== INFO BOXES / PROSE ===== */
.info-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-box + .info-box { margin-top: 16px; }
.prose { font-size: 15px; line-height: 1.8; color: var(--text); font-family: var(--font-sans); }
.prose h2 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { margin-bottom: 6px; }
.prose a:hover { text-decoration: underline; }

/* ===== KOMMENT TARTIBI (endi token'lardan foydalanadi) ===== */
.com-order-block { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 16px; }
.com-order-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.com-order-title { font-family: var(--font-sans); font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.com-order-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--accent-2); background-color: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 28px 6px 10px; cursor: pointer; outline: none;
  transition: background-color .15s ease, border-color .15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232AABEE' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.com-order-select:hover { background-color: var(--accent-soft); }
.com-order-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 480px) {
  .com-order-block { justify-content: flex-start; }
  .com-order-title { display: none; }
}

/* ===== BREADCRUMB (token'lardan foydalanadi) ===== */
.article-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 8px 0; font-size: 13px; font-family: var(--font-sans); }
.article-breadcrumb a { color: var(--text-soft); text-decoration: none; padding: 3px 6px; border-radius: 4px; transition: background .12s, color .12s; white-space: nowrap; }
.article-breadcrumb a:hover { background: var(--accent-soft); color: var(--accent-2); }
.article-breadcrumb svg { width: 14px; height: 14px; stroke: var(--border); flex-shrink: 0; margin: 0 -2px; }
.article-breadcrumb span { display: flex; align-items: center; }
.article-breadcrumb .catNameActive { color: var(--accent-2) !important; font-weight: 500; padding: 3px 6px; border-radius: 4px; text-decoration: none; cursor: default; pointer-events: none; }
.article-breadcrumb .catNumData { color: var(--text-soft); font-size: 12px; background: var(--bg-soft); border: 0.5px solid var(--border); border-radius: 10px; padding: 1px 7px; }

/* ===== THEME TOGGLE ===== */
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; position: relative; }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--text-soft); position: absolute; transition: opacity .2s, transform .3s; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ===== MOBIL DRAWER (burger sidebar'ni ochadi + overlay bilan qoraytiradi) ===== */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    width: var(--sidebar-w);
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .overlay {
    position: fixed; inset: 0; top: var(--topbar-h);
    background: rgba(0,0,0,0.4); z-index: 80;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .overlay.show { opacity: 1; pointer-events: auto; }
}

/* Desktopda burger sidebar'ni collapse/expand qiladi (VK-uslub) */
@media (min-width: 901px) {
  .overlay { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item:first-child { grid-column: span 2; }
  .article-row img { width: 96px; height: 72px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .carousel-card { width: 240px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item:first-child { grid-column: span 1; }
  .topbar .logo span.text { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
