/* SilverSky Tech - Main Theme Stylesheet */

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 15.5px;
  direction: rtl;
  text-align: right;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
}

.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.social-icon:hover {
  color: var(--primary);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(17, 24, 39, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-branding .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -2px;
}

.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navigation .nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu .current-menu-item > a {
  color: var(--primary);
  background: var(--badge-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle .moon-icon {
  display: none;
}
.theme-toggle .sun-icon {
  display: block;
}
[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}
[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

/* ==========================================================================
   Hero Bento Grid
   ========================================================================== */
.hero-bento-section {
  padding-top: 28px;
  margin-bottom: 36px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 18px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-main {
  grid-row: span 2;
}

.bento-thumb-wrap, .bento-thumb-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-img {
  transform: scale(1.04);
}

.tech-pattern-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
}

.bento-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  color: #ffffff;
}

.category-pill {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
}

.category-pill:hover {
  opacity: 0.9;
}

.bento-main .bento-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 10px;
}

.bento-sub .bento-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.bento-title a {
  color: #ffffff;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Category Pills Filter Bar
   ========================================================================== */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  overflow-x: auto;
}

.filter-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

.filter-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.filter-pill {
  white-space: nowrap;
  padding: 6px 14px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Content Layout (Articles Feed + Sidebar)
   ========================================================================== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-bottom: 60px;
}

.feed-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.feed-title {
  font-size: 20px;
  font-weight: 800;
  position: relative;
}

.feed-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img {
  transform: scale(1.05);
}

.card-placeholder-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
  color: var(--primary);
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.meta-date, .meta-readtime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.author-avatar-sm {
  border-radius: 50%;
}

.card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
}

.card-read-link:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Sidebar Styling
   ========================================================================== */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

.telegram-widget {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.widget-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tg-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-widget h4 {
  font-size: 16px;
  font-weight: 800;
}

.telegram-widget p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-block {
  width: 100%;
}

.widget-cat-list li {
  margin-bottom: 8px;
}

.widget-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.widget-cat-list a:hover {
  background: var(--badge-bg);
  color: var(--primary);
}

.cat-count {
  font-size: 12px;
  padding: 2px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
}

.widget-popular-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-post-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.mini-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-post-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.mini-post-title:hover {
  color: var(--primary);
}

.mini-post-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */
.breadcrumbs-container {
  padding: 20px 0 10px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--text-secondary);
  font-weight: 600;
}

.single-article-wrap {
  margin-top: 10px;
}

.single-article-header {
  margin-bottom: 24px;
}

.single-article-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  margin: 14px 0 20px;
}

.single-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-md {
  border-radius: 50%;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-label {
  font-size: 11px;
  color: var(--text-muted);
}

.author-details .author-name {
  font-size: 14px;
  font-weight: 700;
}

.meta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.single-featured-thumb {
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-thumb-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-bottom: 60px;
}

.article-entry-content {
  font-size: 17px;
  line-height: 2.0;
  color: var(--text-primary);
}

.article-entry-content p {
  margin-bottom: 24px;
}

.article-entry-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.article-entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
}

.article-entry-content blockquote {
  border-right: 4px solid var(--primary);
  background: var(--bg-subtle);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: normal;
  color: var(--text-secondary);
}

/* Code Blocks & Highlighting */
.article-entry-content pre {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

.article-entry-content code {
  font-family: var(--font-code);
  font-size: 14px;
}

.article-entry-content p code {
  background: var(--bg-subtle);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  direction: ltr;
  display: inline-block;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Article Tags */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.tags-title {
  font-weight: 700;
  font-size: 14px;
}

.tags-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 13px;
  padding: 4px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.tag-pill:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Social Share Bar */
.social-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.share-title {
  font-weight: 700;
  font-size: 14px;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.share-tg { background: #0088cc; }
.share-tw { background: #0f1419; }
.share-li { background: #0a66c2; }

/* Author Bio Card */
.author-bio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.author-bio-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.author-bio-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.author-bio-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Related Posts */
.related-posts-section {
  margin-bottom: 40px;
}

.related-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.related-thumb-link {
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
  overflow: hidden;
}

.related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info {
  padding: 14px;
}

.related-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
}

.related-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Page & 404 Styles
   ========================================================================== */
.page-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 60px;
}

.page-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.archive-header-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.archive-header-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.archive-title {
  font-size: 22px;
  font-weight: 800;
}

.error-404-wrap {
  text-align: center;
  padding: 80px 20px;
}

.error-glitch-text {
  font-size: 96px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.footer-brand .brand-subtitle {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-newsletter-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
}

.newsletter-input-group input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
}

.search-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.search-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  padding: 24px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li {
  margin-bottom: 12px;
}

.mobile-nav-list a {
  display: block;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.mobile-nav-list a:hover {
  background: var(--badge-bg);
  color: var(--primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-main {
    grid-row: auto;
    height: 320px;
  }
  .bento-sub {
    height: 220px;
  }
  .content-layout, .single-content-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .single-article-title {
    font-size: 24px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
