/* 
  Modern CSS for Soft Hub
  Color Palette based on mockup
*/

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-gradient: linear-gradient(135deg, #f0f4fd 0%, #fef5f9 100%);
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: rgba(226, 232, 240, 0.8);
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
  min-height: 100vh;
  line-height: 1.5;
  /* Subtle background image or pattern could go here */
}

a {
  text-decoration: none !important;
  color: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.w-100 {
  width: 100%;
  margin-top: auto;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.tag-free {
  background-color: #dcfce7;
  color: #166534;
}

.tag-trial {
  background-color: #fef3c7;
  color: #92400e;
}

.tag-premium {
  background-color: #ede9fe;
  color: #6b21a8;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.app-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.app-icon.small,
.app-icon-placeholder.small {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mt-4 {
  margin-top: 24px;
}

/* Header */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #1e1e1e;
  letter-spacing: -0.5px;
}

.search-bar {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.search-bar input:focus {
  background-color: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-link:hover {
  color: var(--text-main);
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 20px;
  font-size: 22px;
}

.mobile-actions i {
  cursor: pointer;
}

.mobile-menu-toggle {
  font-size: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 101;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Offcanvas Menu */
.offcanvas-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offcanvas-overlay.active {
  display: block;
  opacity: 1;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.offcanvas-menu.active {
  transform: translateX(320px);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.offcanvas-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.offcanvas-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 18px;
}

.offcanvas-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.offcanvas-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.offcanvas-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
}

.offcanvas-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.offcanvas-nav a:hover,
.offcanvas-nav a.active {
  background: #f0f7ff;
  color: var(--primary);
}

.offcanvas-nav a i {
  width: 20px;
  color: var(--text-muted);
}

.offcanvas-nav a:hover i,
.offcanvas-nav a.active i {
  color: var(--primary);
}

.offcanvas-auth {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.offcanvas-user-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offcanvas-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.offcanvas-user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.offcanvas-user-role {
  font-size: 13px;
  color: var(--text-muted);
}

.offcanvas-user-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offcanvas-user-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.offcanvas-user-menu a:hover {
  background: white;
  color: var(--text-main);
}

.offcanvas-user-menu a i {
  width: 20px;
}

.offcanvas-logout {
  color: #ef4444 !important;
}

.offcanvas-logout:hover {
  background: #fef2f2 !important;
}

.offcanvas-login-btn {
  width: 100%;
  padding: 14px;
  justify-content: center;
}

/* Hide offcanvas on desktop */
@media (min-width: 769px) {
  .offcanvas-overlay,
  .offcanvas-menu {
    display: none !important;
  }
  .latest-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
}

/* Layout */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

/* Dashboard Layout - Separate from main layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
  gap: 32px;
  padding-top: 40px;
  align-items: start;
}

/* Dashboard specific styles - isolated to prevent conflicts */
.dashboard-layout .side-column {
  flex: 0 0 250px;
}

.dashboard-layout .main-column {
  flex: 1;
}

.dashboard-layout .sidebar-widget {
  background: white !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--border-color) !important;
}

.dashboard-layout .sidebar-widget ul {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

.dashboard-layout .sidebar-widget ul li a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.dashboard-layout .sidebar-widget ul li a:hover,
.dashboard-layout .sidebar-widget ul li a.active {
  color: var(--primary);
  background: #f8fafc;
}

.dashboard-layout .sidebar-widget ul li a.active {
  font-weight: 600;
  border-left: 3px solid var(--primary);
  background: #f8fafc;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-content {
  flex: 1;
  z-index: 10;
}

.hero-content .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-content .subtitle {
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 16px;
}

.hero-content .desc {
  font-size: 14px;
  color: #475569;
  margin-bottom: 24px;
  max-width: 400px;
}

.app-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-download {
  background-color: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 12px 24px;
  font-size: 15px;
}

.btn-download:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.stats .rating {
  color: #d97706;
}

.stats .downloads {
  color: #059669;
}

.hero-image {
  flex: 1;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.hero-image-placeholder {
  width: 250px;
  height: 160px;
  background: linear-gradient(to right bottom, #1e1b4b, #312e81);
  border-radius: 16px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px solid #1e1e1e;
}

.hero-image-placeholder .A-logo {
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(to top right, #c026d3, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sections Common */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: white;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.view-all:hover {
  background: #f8fafc;
}

/* Grids */
.top-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* App Cards */
.app-card {
  background: var(--bg-card);
  border: 1px solid white;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.app-details {
  display: grid;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.app-details .rating {
  color: #d97706;
  font-weight: 600;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid white;
  text-decoration: none !important;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: white;
}

.category-card .icon-wrapper {
  font-size: 32px;
}

.category-card p {
  font-size: 13px;
  font-weight: 600;
}

/* Sidebar - Main site styles */
.main-layout .side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.main-layout .sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid white;
}

.main-layout .sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.main-layout .mini-app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-layout .mini-app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.2s;
  background: white;
  border: 1px solid var(--border-color);
}

.main-layout .mini-app-item:hover {
  background: #f8fafc;
}

.main-layout .mini-app-item.border-highlight {
  border-left: 3px solid var(--primary);
}

.main-layout .mini-app-item.bg-light {
  background: #f8fafc;
  border-color: transparent;
}

.main-layout .mini-app-info {
  flex: 1;
}

.main-layout .mini-app-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.main-layout .mini-app-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Ads Areas */
.ad-banner {
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px dashed #cbd5e1;
  position: relative;
  overflow: hidden;
}

.ad-label {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  font-weight: 700;
}

.horizontal-ad {
  width: 100%;
  min-height: 120px;
  background: linear-gradient(to right, #1e3a8a, #312e81);
  color: white;
  border: none;
  padding: 24px;
}

.ad-inner-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ad-inner-banner h4 {
  font-size: 16px;
  font-weight: 800;
}

.ad-inner-banner p {
  font-size: 14px;
  opacity: 0.9;
}

.ads-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vertical-ad {
  min-height: 250px;
  background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
  color: white;
  border: none;
  text-align: center;
  padding: 24px 16px;
}

.vertical-ad.skyscaper-1 {
  background: linear-gradient(180deg, #4c1d95 0%, #2e1065 100%);
}

.vertical-ad h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.social-icons {
  display: flex;
  gap: 16px;
  font-size: 18px;
  color: #475569;
}

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

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

/* Articles & Blog */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

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

.article-img-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content {
  padding: 20px;
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  color: var(--primary-hover);
}
.nav-links {
  background-color: transparent;
}

/* Responsive */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top-downloads-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .main-layout .side-column {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ads-sidebar-grid {
    grid-template-columns: 1fr;
  }

  .main-layout .sidebar-widget,
  .main-layout .ads-sidebar-grid,
  .dashboard-layout .sidebar-widget {
    flex: 1;
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .app-meta{
    justify-content: center;
  }
  .nav-links {
    background-color: #fff;
  }
  .section-header {
    display: flex;
  }
  .auth-buttons {
    align-items: start;
  }

  .nav-links,
  .auth-buttons {
    display: none;
  }
  .footer-links{
    display: grid;
    gap: 10px;
  }

  .mobile-actions {
    display: flex;
    margin-left: auto;
  }

  .logo {
    font-size: 19px;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 16px;
  }

  .search-bar {
    order: 3;
    min-width: 100% !important;
    margin-top: 4px;
    display: none !important;
  }

  .search-bar.show-mobile-search {
    display: flex !important;
    animation: slideDown 0.3s ease-out forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-layout {
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .dashboard-layout .side-column {
    flex: 1;
  }

  .dashboard-layout .sidebar-widget {
    min-width: auto;
    padding: 16px;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .top-downloads-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .main-layout .side-column {
    flex-direction: column;
    gap: 16px;
  }

  .main-layout .sidebar-widget {
    min-width: auto;
    padding: 16px;
  }

  .footer-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* Search Results Page Styles */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.no-results h3 {
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
}

.no-results p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Search Tips Widget */
.sidebar-widget ul li {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.sidebar-widget ul li i {
  color: var(--primary);
  margin-right: 8px;
}

/* Popular Searches Links */
.mini-app-info a {
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s ease;
}

.mini-app-info a:hover {
  color: var(--primary);
}

/* Search Results Count */
.section-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.section-header p strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Enhanced Search Bar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 16px;
  min-width: 200px;
  max-width: 400px;
  transition: all 0.2s ease;
}

.search-bar:hover {
  border-color: var(--primary);
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-bar i {
  color: var(--text-muted);
  margin-right: 12px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  box-shadow: none;
}

.search-bar input:focus {
  box-shadow: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Search Results Grid Enhancements */
.top-downloads-grid .app-card {
  transition: all 0.2s ease;
}

.top-downloads-grid .app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Software Detail Page Responsive Enhancements */
@media (max-width: 768px) {
  .software-header-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 24px !important;
    gap: 20px !important;
  }
  
  .software-header-card h1 {
    font-size: 26px !important;
  }
  
  .software-stats-row {
    justify-content: center !important;
    gap: 12px 20px !important;
  }
  
  .software-actions-row {
    justify-content: center !important;
  }
  
  .software-actions-row > div {
    justify-content: center !important;
  }

  #content-overview, #content-reviews {
    padding: 24px 16px !important;
  }

  .rich-content img {
    max-width: 100% !important;
    height: auto !important;
  }
}
