/****************************************************************** 
 * Classic Theme - Layout
 * EXACTLY matching the original OldVersion.com structure
 ******************************************************************/

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #000000;
  background-color: #ffffff;
}

/* Container - Fixed 978px width like original */
#container {
  width: 100%;
  max-width: 978px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
}

/* Header Structure - EXACTLY like original */
#header {
  background: #ffffff;
  border-bottom: 1px solid #cccccc;
  position: relative;
  z-index: 100;
  overflow: visible; /* Allow nav to overflow */
}

/* Main Header Area */
#header .main-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #00548f;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Logo Section */
.logo {
  flex: 0 0 auto;
}

.logo h1 {
  font-size: 28px;
  font-weight: bold;
  color: #00548f;
  margin: 0;
  line-height: 1;
}

.logo h1 a {
  color: #00548f;
  text-decoration: none;
}

.logo .tagline {
  font-size: 12px;
  color: #666666;
  margin-top: 2px;
  font-style: italic;
}

/* Search Section */
#search-form {
  flex: 1;
  margin: 0 30px;
  max-width: 400px;
  position: relative;
  overflow: visible;
  height: auto;
  min-height: 0;
}

#search-form form {
  width: 395px;
  position: relative;
}

.search-container {
  display: flex;
  align-items: center;
  background: #fff;
  border: 3px solid #d5d5d5;
  border-radius: 8px;
  padding: 5px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #666666;
  font-size: 16px;
  z-index: 1;
}

#search-form input[type="text"] {
  flex: 1;
  height: 30px;
  border: none;
  background: none;
  font-size: 14px;
  color: #4e4e4e;
  padding: 0 10px 0 35px;
  outline: none;
}

#search-form input[type="submit"] {
  background: #00548f;
  border: 1px solid #00548f;
  color: #fff;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 5px;
}

#search-form input[type="submit"]:hover {
  background: #003d6b;
  border-color: #003d6b;
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 3px solid #d5d5d5;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
  background: #f0f0f0;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.result-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.result-type-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: bold;
  margin-right: 5px;
  border-radius: 4px;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
  text-transform: uppercase;
}

.result-type-badge.software {
  background: linear-gradient(to bottom, #ff6b6b 0%, #ee5a6f 50%, #c92a2a 100%);
  border: 1px solid #c92a2a;
  color: white;
}

.result-type-badge.version {
  background: linear-gradient(to bottom, #4dd0e1 0%, #26c6da 50%, #00acc1 100%);
  border: 1px solid #00acc1;
  color: white;
}

.result-type-badge:hover {
  opacity: 0.9;
  text-decoration: none;
  cursor: default;
}

.result-name {
  font-weight: bold;
  color: #4e4e4e;
  flex: 1;
}

.search-highlight {
  background: #fffacd;
  font-weight: bold;
}

.result-version {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.result-meta {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.result-vendor {
  color: #666;
}

.search-view-more {
  padding: 10px 15px;
  text-align: center;
  border-top: 2px solid #d5d5d5;
  background: #f9f9f9;
}

.search-view-more a {
  color: #00548f;
  text-decoration: none;
  font-weight: bold;
}

.search-view-more a:hover {
  text-decoration: underline;
}

.search-loading,
.search-empty,
.search-error {
  padding: 20px;
  text-align: center;
  color: #666;
}

.search-error {
  color: #d32f2f;
}

/* User Area */
.user-area {
  flex: 0 0 auto;
  text-align: right;
}

.user-area span {
  color: #4e4e4e;
  font-size: 14px;
  margin-right: 5px;
}

.user-area a {
  color: #00548f;
  font-size: 14px;
  text-decoration: none;
  margin: 0 2px;
}

.user-area a:hover {
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  margin-top: 5px;
  display: flex;
  gap: 8px;
}

.social-icons a {
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.7;
}

.social-icons img {
  display: block;
}

/* Main Navigation - Dark gray bar like original */
#main-navigation {
  background: #292929;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

/* Hide mobile OS categories on desktop */
.mobile-os-categories {
  display: none;
}

/* Hide mobile search and user auth on desktop */
.mobile-search-form,
.mobile-user-auth {
  display: none;
}

/* OS Tabs */
#main-navigation .os-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Navigation Dividers */
.os-tabs .divider,
.right-nav .divider {
  width: 3px;
  height: 32px;
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/divider.8d6e68de96ae.gif');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 0 10px;
  list-style: none;
}

#main-navigation .os-tabs li {
  margin: 0;
  padding: 0;
}

#main-navigation .os-tabs li a {
  display: flex;
  align-items: center;
  height: 32px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  background: #292929;
  padding: 0 15px;
}

#main-navigation .os-tabs li a:hover,
#main-navigation .os-tabs li a.active {
  background: #00548f;
  color: #ffffff;
}

/* Right Navigation */
#main-navigation .right-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

#main-navigation .right-nav li {
  margin: 0;
  padding: 0;
}

#main-navigation .right-nav li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
}

#main-navigation .right-nav li a:hover {
  color: #cccccc;
}

#main-navigation .right-nav li a.upload-btn {
  color: #ffe718;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  background: none;
  border: none;
  margin: 0;
}

#main-navigation .right-nav li a.upload-btn:before {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/upload-bg.3ec23775fa73.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 4px;
  display: inline-block;
}

#main-navigation .right-nav li a.upload-btn:hover {
  color: #cccccc;
}

/* Content Area */
#content {
  background: #ffffff;
  min-height: 500px;
  padding-top: 15px;
}

#content .wrapper {
  width: 978px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 25px;
  box-sizing: border-box;
}

/* Full-width heading section */
#content .heading {
  padding-left: 4px;
  margin-bottom: 11px;
}

/* Main Content - flexible to fill remaining space */
#main {
  flex: 1;
  box-sizing: border-box;
}

/* Sidebar - 223px like original */
#sidebar {
  width: 223px;
  flex: 0 0 223px;
  margin-bottom: 160px;
  box-sizing: border-box;
}

/* Heading Section */
.heading {
  margin-bottom: 11px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.heading h2 {
  font-size: 16px;
  color: #767676;
  font-weight: normal;
  font-style: italic;
  line-height: 22px;
  margin: 0;
  flex: 1;
}

.heading h2 .inner {
  color: #2a2a2a;
}

.heading h2 .query-text {
  color: #009933;
}

.stats {
  flex: 0 0 auto;
}

.stats p {
  color: #767676;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.stats p img {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 7px;
}

.stats p .inner {
  color: #292929;
  display: inline-block;
  font-weight: normal;
}

/* Sidebar Widgets - Override default styles for exact original match */
.widget {
  background: #ffffff;
  border: none;
  margin-bottom: 12px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}

.widget .content {
  padding: 0;
}

/* Footer - EXACTLY like original */
#footer {
  background: #00548f;
  position: relative;
}

#footer .wrapper {
  padding: 10px;
  position: relative;
}

#footer p {
  color: #d9e9f4;
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 20px;
  clear: left;
}

#footer .logo {
  float: left;
  width: 260px;
}

#footer .logo h1 a {
  position: relative;
  width: 262px;
  height: 0px;
  padding-top: 35px;
  display: block;
  overflow: hidden;
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/logo_blue_background.jpg') no-repeat top left;
}

#footer .logo span.facebook {
  display: block;
  margin-top: 15px;
  width: 150px;
}

/* Footer Navigation - EXACTLY like original */
#footer #footer-navigation {
  text-align: left;
}

#footer #footer-navigation ul {
  padding-left: 0;
}

#footer #footer-navigation ul li {
  display: inline;
  color: #fff;
  padding-right: 6px;
  margin-right: 3px;
}

#footer #footer-navigation ul li.copyright,
#footer #footer-navigation ul li.last {
  background: none;
}

#footer #footer-navigation ul li a {
  color: #fff;
}

/* Footer Sections - EXACTLY like original */
#footer .section {
  float: left;
  margin: 0px 25px 15px 0px;
  overflow: hidden;
}

#footer .section.last {
  margin: 0px 25px 15px 10px;
  width: 220px;
}

#footer .section h2 {
  color: #abd4f0;
  font-size: 120%;
  margin-bottom: 10px;
  font-weight: normal;
}

/* Footer Social Icons - EXACTLY like original */
#footer ul.sociable {
  margin: 0px;
  padding: 0px;
}

#footer ul.sociable li {
  list-style: none;
  float: left;
  margin-right: 4px;
}

#footer ul.sociable li a {
  display: block;
  width: 46px;
  height: 48px;
  text-decoration: none;
}

#footer ul.sociable li a:hover {
  text-decoration: none;
}

#footer ul.sociable li a.rss {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat left top;
}

#footer ul.sociable li a.rss:hover {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat left bottom;
}

#footer ul.sociable li a.facebook {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat -47px top;
}

#footer ul.sociable li a.facebook:hover {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat -47px bottom;
}

#footer ul.sociable li a.twitter {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat -97px top;
}

#footer ul.sociable li a.twitter:hover {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat -97px bottom;
}

#footer ul.sociable li a.youtube {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat right top;
}

#footer ul.sociable li a.youtube:hover {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/sociable.89d2e66fac05.gif') no-repeat right bottom;
}

#footer img.image {
  position: absolute;
  top: -180px;
  right: 0px;
  float: right;
  width: 150px;
  height: 273px;
}

/* Clear floats */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* ================================================================
   Responsive Layout Adjustments
   All changes preserve desktop layout (1200px+)
   ================================================================ */

/* Tablet and below (991px and below) */
@media (max-width: 991px) {
  /* Container adjustments */
  #container {
    width: 100%;
    padding: 0 10px;
  }
  
  /* Content wrapper - stack sidebar below main */
  #content .wrapper {
    width: 100% !important;
    max-width: 100%;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
  }
  
  #main {
    width: 100%;
  }
  
  #sidebar {
    width: 100%;
    margin-bottom: 40px;
  }
  
  /* Heading section - stack stats below heading on tablet */
  .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .stats {
    width: 100%;
  }
  
  /* Hide stats on tablet and below */
  .heading .stats {
    display: none !important;
  }
  
  /* Fix heading text overflow */
  .heading h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .category-section {
    width: 100%;
  }
}

/* Mobile Large and below (767px and below) */
@media (max-width: 767px) {
  /* Header - show hamburger, keep logo and search in row */
  #header .main-header {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 10px 15px 10px 50px;
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .logo {
    flex: 1;
    min-width: 0;
  }
  
  .logo h1 {
    font-size: 20px;
    line-height: 1.2;
  }
  
  .logo .tagline {
    font-size: 10px;
  }
  
  /* Search form - hide on mobile, show in menu if needed */
  #search-form {
    display: none;
  }
  
  /* User area - hide on mobile */
  .user-area {
    display: none;
  }
  
  /* Main Navigation - hide completely on mobile by default */
  #main-navigation {
    background: #292929;
    width: 100%;
    position: fixed !important; /* Use fixed instead of absolute */
    top: 62px !important; /* Position below header (header is ~62px) */
    left: 0;
    right: 0;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    display: none !important; /* Override desktop flex display */
    height: auto;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }
  
  /* Show navigation when hamburger menu is open */
  #main-navigation.mobile-nav-open {
    display: block !important;
  }
  
  #main-navigation.mobile-nav-closed {
    display: none !important;
  }
  
  #main-navigation.mobile-nav-open {
    max-height: 600px;
    overflow-y: auto;
  }
  
  #main-navigation.mobile-nav-closed {
    max-height: 0;
    overflow: hidden;
  }
  
  /* Hide desktop os-tabs on mobile */
  #main-navigation .os-tabs {
    display: none;
  }
  
  /* Hide right nav on mobile */
  #main-navigation .right-nav {
    display: none;
  }
  
  /* Show mobile OS categories on mobile */
  #main-navigation .mobile-os-categories {
    display: flex;
  }
  
  /* Show mobile search form on mobile */
  #main-navigation .mobile-search-form {
    display: block;
  }
  
  /* Show mobile user auth on mobile */
  #main-navigation .mobile-user-auth {
    display: block;
  }
  
  /* Mobile OS Categories - styled like sidebar buttons */
  #main-navigation .mobile-os-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 15px;
    gap: 8px;
  }
  
  #main-navigation .mobile-os-categories a {
    display: block;
    width: 221px;
    height: 49px;
    position: relative;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    text-decoration: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 0;
    line-height: 49px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #292929;
    text-transform: uppercase;
    text-indent: -9999px;
    box-sizing: border-box;
  }
  
  #main-navigation .mobile-os-categories a.windows {
    background-image: url("../classic/images/menu_windows.fdd38f560942.jpg");
  }
  
  #main-navigation .mobile-os-categories a.mac {
    background-image: url("../classic/images/menu_mac.fd7288cd9e23.jpg");
  }
  
  #main-navigation .mobile-os-categories a.linux {
    background-image: url("../classic/images/menu_linux.14e86331d360.jpg");
  }
  
  #main-navigation .mobile-os-categories a.games {
    background-image: url("../classic/images/menu_games.3513677bddf5.jpg");
  }
  
  #main-navigation .mobile-os-categories a.android {
    background-image: url("../classic/images/menu_android.e3d949ff99fd.png");
  }
  
  #main-navigation .mobile-os-categories a:hover {
    border-color: #000;
    text-decoration: none;
  }
  
  #main-navigation .mobile-os-categories a.active {
    background-position: 0 -51px;
    border-color: #0095ff;
  }
  
  /* Mobile Search Form */
  #main-navigation .mobile-search-form {
    padding: 15px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
  }
  
  #main-navigation .mobile-search-form .search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 3px solid #d5d5d5;
    border-radius: 8px;
    padding: 5px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  
  #main-navigation .mobile-search-form .search-icon {
    position: absolute;
    left: 12px;
    color: #666666;
    font-size: 16px;
    z-index: 1;
  }
  
  #main-navigation .mobile-search-form input[type="text"] {
    flex: 1;
    height: 30px;
    border: none;
    background: none;
    font-size: 14px;
    color: #4e4e4e;
    padding: 0 10px 0 35px;
    outline: none;
    min-width: 0;
  }
  
  #main-navigation .mobile-search-form input[type="submit"] {
    background: #00548f;
    border: 1px solid #00548f;
    color: #fff;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
    white-space: nowrap;
  }
  
  #main-navigation .mobile-search-form input[type="submit"]:hover {
    background: #003d6b;
    border-color: #003d6b;
  }
  
  /* Mobile User Authentication */
  #main-navigation .mobile-user-auth {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    text-align: center;
    font-size: 14px;
  }
  
  #main-navigation .mobile-user-auth .welcome-text {
    color: #292929;
    font-weight: bold;
    margin-right: 8px;
  }
  
  #main-navigation .mobile-user-auth a {
    color: #00548f;
    text-decoration: none;
    font-weight: bold;
  }
  
  #main-navigation .mobile-user-auth a:hover {
    text-decoration: underline;
  }
  
  #main-navigation .mobile-user-auth .divider-text {
    margin: 0 8px;
    color: #666;
  }
  
  /* Content area */
  #content {
    padding-top: 10px;
  }
  
  #content .wrapper {
    gap: 10px;
  }
  
  #content .heading {
    padding-left: 0;
    margin-bottom: 15px;
  }
  
  /* Hide stats on mobile */
  .heading .stats {
    display: none !important;
  }
  
  /* Fix heading text overflow on mobile */
  .heading h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Footer - stack columns */
  #footer .wrapper {
    padding: 15px 10px;
  }
  
  /* Footer - better mobile layout */
  #footer .wrapper {
    display: flex;
    flex-direction: column;
  }
  
  #footer .section {
    float: none;
    width: 100%;
    margin: 0 0 25px 0;
  }
  
  #footer .section.last {
    margin: 0 0 25px 0;
    width: 100%;
  }
  
  #footer .section h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  #footer .section ul.list2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #footer .section ul.list2 li {
    margin: 0;
    padding: 0;
  }
  
  #footer .section ul.list2 li a {
    color: #d9e9f4;
    text-decoration: none;
    font-size: 12px;
    display: block;
    padding: 4px 0;
  }
  
  #footer .section ul.list2 li a:hover {
    text-decoration: underline;
  }
  
  #footer .logo {
    float: none;
    width: 100%;
    margin-bottom: 20px;
    order: -1;
  }
  
  #footer img.image {
    position: static;
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 150px;
    width: 150px;
    height: 273px;
  }
  
  #footer #footer-navigation {
    text-align: center;
  }
  
  #footer #footer-navigation ul li {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 0;
  }
}

/* Mobile (575px and below) */
@media (max-width: 575px) {
  /* Container - reduce padding on small screens */
  #container {
    padding: 0 5px;
  }
  
  /* Header - reduce padding */
  #header .main-header {
    padding: 10px 5px;
  }
  
  .logo h1 {
    font-size: 20px;
  }
  
  .logo .tagline {
    font-size: 11px;
  }
  
  /* Search form - adjust button size */
  #search-form input[type="submit"] {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  /* Navigation - reduce padding */
  #main-navigation {
    padding: 8px 5px;
  }
  
  #main-navigation .os-tabs li a,
  #main-navigation .right-nav li a {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  /* Content - reduce padding */
  #content {
    padding-top: 5px;
  }
  
  #content .heading {
    margin-bottom: 10px;
  }
  
  .heading h2 {
    font-size: 14px;
  }
  
  .stats p {
    font-size: 14px;
  }
  
  /* Footer - reduce padding */
  #footer .wrapper {
    padding: 10px 5px;
  }
  
  #footer p {
    font-size: 12px;
  }
}

/* Search Results Page */
.content-header {
  padding: 20px;
  background: #f9f9f9;
  border-bottom: 2px solid #d5d5d5;
  margin-bottom: 20px;
}

.content-header h1 {
  margin: 0 0 10px 0;
  color: #4e4e4e;
}

.search-query-display {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

.result-count {
  margin: 5px 0;
  color: #888;
  font-size: 12px;
}

.search-page-content {
  display: flex;
  gap: 20px;
  padding: 0 20px 20px;
}

/* Filters Sidebar */
.search-filters {
  flex: 0 0 250px;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.search-filters h2 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #4e4e4e;
  border-bottom: 2px solid #d5d5d5;
  padding-bottom: 10px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: bold;
  color: #666;
}

.filter-checkbox {
  display: block;
  padding: 8px 0;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  margin-right: 8px;
}

.filter-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-size: 14px;
}

.filter-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-apply-filters,
.btn-clear-filters {
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.btn-apply-filters {
  background: #00548f;
  color: white;
  border: none;
  cursor: pointer;
}

.btn-apply-filters:hover {
  background: #003d6b;
}

.btn-clear-filters {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #d5d5d5;
}

.btn-clear-filters:hover {
  background: #e0e0e0;
}

/* Search Results Main Area */
.search-results {
  flex: 1;
}

.search-error-message {
  padding: 20px;
  background: #ffebee;
  border: 2px solid #d32f2f;
  border-radius: 8px;
  color: #d32f2f;
}

.search-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.search-empty-state ul {
  text-align: left;
  display: inline-block;
  margin-top: 10px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-result-card {
  background: white;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

.search-result-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.result-title {
  margin: 0;
  flex: 1;
}

.result-title a {
  color: #00548f;
  text-decoration: none;
  font-size: 18px;
}

.result-title a:hover {
  text-decoration: underline;
}

.result-version-badge {
  font-size: 12px;
  color: #666;
  font-weight: normal;
  margin-left: 8px;
}

.result-vendor {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

.result-description {
  margin: 10px 0;
  color: #4e4e4e;
  line-height: 1.5;
}

.result-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.btn-view-details {
  color: #00548f;
  text-decoration: none;
  font-weight: bold;
}

.btn-view-details:hover {
  text-decoration: underline;
}

/* Pagination */
.search-pagination {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  border-top: 2px solid #d5d5d5;
}

.pagination-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background: #00548f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.pagination-link:hover {
  background: #003d6b;
}

.pagination-info {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  color: #666;
}

/* Responsive: Mobile */
@media (max-width: 767px) {
  .search-page-content {
    flex-direction: column;
  }

  .search-filters {
    position: static;
    flex: 1;
  }
}