/* Software Detail Page Styles - EXACTLY like original OldVersion.com */

.softwares {
  margin-bottom: 10px;
}

.softwares .title {
  margin-bottom: 15px;
}

.softwares .title h1.logo {
  float: left;
  margin: 6px 13px 0px 3px;
}

.softwares .title h1.logo a {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
}

.softwares .title h2 {
  color: #00548f;
  font-size: 14px;
  margin: 7px 0px 5px 0px;
  float: left;
}

.softwares .title h2 a {
  color: #00548f;
}

.softwares .title h2 span {
  color: #4c4c4c;
  font-size: 90%;
  margin-bottom: 5px;
  display: block;
  font-weight: normal;
}

.softwares .title h2 span a {
  color: #4c4c4c;
}

.softwares h3.heading1 {
  background: #4c4c4c;
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
  height: 28px;
  font-weight: normal;
  line-height: 28px;
  padding-left: 10px;
}

.softwares h3.heading1 span {
  color: #ffe718;
  font-weight: bold;
}

h3.heading1 {
  background: #4c4c4c;
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
  height: 28px;
  font-weight: normal;
  line-height: 28px;
  padding-left: 10px;
}

h3.heading1 span {
  color: #ffe718;
  font-weight: bold;
}

.softwares .title .button1.flL {
  margin-right: 23px;
}

.softwares .title ul {
  float: right;
  margin: 5px 0px 0px 20px;
  list-style: none;
  padding: 0;
  width: 355px;
  text-align: center;
}

.softwares .title ul li {
  display: inline-block;
  margin-right: 23px;
}

.softwares .title ul li.twitterlike {
  margin-right: 0;
}

.softwares .title ul li.twitterlike .twitter-share-link {
  display: inline-block;
  background: #000 url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/shared/images/twitter.png') no-repeat 4px center;
  background-size: 12px 12px;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px 4px 20px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.2;
  border: 1px solid #333;
}

.softwares .title ul li.twitterlike .twitter-share-link:hover {
  background: #333 url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/shared/images/twitter.png') no-repeat 4px center;
  background-size: 12px 12px;
  color: #fff;
  text-decoration: none;
}

.softwares .description p {
  color: #2a2a2a;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 15px;
}

/* Software Meta-data */
.softwares .meta-data h3 {
  color: #2a2a2a;
  font-size: 14px;
  margin-bottom: 12px;
}

.softwares .meta-data h3 span.underline {
  display: block;
  font-size: 80%;
  color: #4c4c4c;
  font-weight: normal;
}

.softwares .meta-data h1 {
  color: #2a2a2a;
  font-size: 14px;
  margin-bottom: 12px;
}

.softwares .meta-data h1 span {
  display: block;
  font-size: 80%;
  color: #4c4c4c;
  font-weight: normal;
}

.softwares .meta-data ul li {
  padding-bottom: 5px;
  margin-bottom: 5px;
  color: #4c4c4c;
  font-size: 11px;
  border-bottom: 1px solid #c0c0c0;
  line-height: 14px;
}

.softwares .meta-data ul li.last {
  border: 0px;
}

.softwares .meta-data ul li span {
  color: #6ca000;
  font-weight: normal;
}

/* OS badges in meta-data should use their own gradient styles, not inherit span color */
.softwares .meta-data ul li span.os-badge {
  margin-top: 2px;
  margin-bottom: 2px;
  display: inline-block;
  vertical-align: middle;
  /* Gradient styles from base.css will apply */
}

.softwares .meta-data ul li span a {
  color: #3e4e9c;
  font-weight: bold;
}

.softwares .meta-data a.software {
  color: #00548f;
}

.softwares .meta-data ul li span a:hover {
  color: #292929;
}

/* Rating */
span.rating {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/rating.d3deac3caf19.png') no-repeat left bottom;
  height: 14px;
  width: 78px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

span.rating span {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/rating.d3deac3caf19.png') no-repeat left top;
  height: 14px;
  display: inline-block;
  text-indent: -999em;
}

/* Tested */
span.tested {
  font-size: 12px;
  color: #4c4c4c;
  display: block;
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/tested.31a7cbfdf277.png') no-repeat left center;
  padding-left: 18px;
  font-weight: normal;
  line-height: 18px;
}

.softwares .column {
  width: 355px;
  margin-bottom: 10px;
}

/* Software Info Section */
.softwares .software-info {
  margin-bottom: 15px;
}

.softwares .software-info .column {
  width: 355px;
  margin-bottom: 10px;
}

.softwares .software-info .meta-data {
  width: 355px;
  margin-bottom: 10px;
}

.softwares .software-info .meta-data ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.softwares .software-info .download-count {
  color: #4c4c4c;
  font-size: 12px;
  margin: 5px 0;
}

.softwares .software-info .heading2.large h1 {
  margin-bottom: 0;
}

.softwares .software-info .download-count {
  margin-top: 0;
  color: #76a611;
}

.softwares .download-boxes {
  clear: both;
  margin-bottom: 15px;
}

.softwares .download-boxes h3.heading1 {
  font-style: italic;
  margin-bottom: 2px;
}

.softwares .download-boxes h3.heading1 span {
  color: #fff;
}

.softwares .download-boxes h3.heading1 span.inner {
  color: #ffe718;
  font-weight: normal;
}

/* Box2 - Download boxes */
.box2 {
  border: 1px solid #c0c0c0;
  padding: 1px;
  background: #fff;
}

.box2 .inner {
  background: #e7f6c7;
  padding: 10px;
}

.box2:hover .inner {
  background: #fffabf;
}

.box2 a.button4, .box2 input.button4 {
  display: block;
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/button4-bg.png') no-repeat 0 0;
  width: 222px;
  height: 38px;
  line-height: 38px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 0 0 0 13px;
  position: relative;
  border: none;
  cursor: pointer;
  text-align: left;
  margin-bottom: 6px;
  text-decoration: none;
}

.box2 a.button4:hover, .box2 input.button4:hover {
  background-position: 0 -40px;
  text-decoration: none;
}

.box2 dl {
  margin-bottom: 5px;
}

.box2 h3 {
  color: #3e4e9c;
  font-size: 14px;
  margin-bottom: 10px;
}

.box2 h3 a {
  color: #3e4e9c;
}

.box2 dl dt {
  font-size: 12px;
  font-weight: bold;
  color: #4c4c4c;
  line-height: 16px;
  display: inline;
}

.box2 dl dd {
  color: #4c4c4c;
  font-size: 12px;
  line-height: 16px;
  margin-right: 10px;
  display: inline;
}

/* OS badges in download box - gradient styles from base.css will apply */

/* Box3 - Upload/Request boxes */
.box3 {
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  padding: 10px;
  margin-bottom: 10px;
}

.box3 .section1 {
  width: 335px;
}

.box3 .section1 img {
  float: left;
  margin-right: 10px;
}

.box3 .section1 h3 {
  color: #292929;
  font-size: 11px;
  font-weight: normal;
  margin-bottom: 5px;
}

.box3 .section1 a {
  display: block;
  color: #3e4e9c;
  font-weight: bold;
  font-size: 17px;
}

.box3 .section1 a:hover {
  color: #292929;
}

/* Table1 - Version table */
.table1 {
  width: 100%;
  border: 1px solid #c0c0c0;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.table1 th {
  background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  height: 24px;
  font-size: 12px;
  color: #292929;
  line-height: 24px;
  padding: 0 6px;
  font-weight: normal;
  text-align: left;
  border: 1px solid #c0c0c0;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.table1 th:hover {
  background: linear-gradient(to bottom, #e8e8e8, #d8d8d8);
}

.table1 th span {
  display: inline-block;
  padding-right: 10px;
}

.table1 th span.asc {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/asc-arrow.4fc650cc0c9f.png') no-repeat right center;
  padding-right: 10px;
}

.table1 th span.dsc {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/dsc-arrow.9d0838faad86.png') no-repeat right center;
  padding-right: 10px;
}

.table1 td {
  padding: 6px 10px;
  text-align: left;
  border: 1px solid #c0c0c0;
}

.table1 td a {
  color: #00548f;
  font-weight: bold;
}

.table1 td {
  color: #4c4c4c;
  font-size: 11px;
}

.table1 td.version {
  font-size: 12px;
}

.table1 .version {
  width: 40%;
  cursor: pointer;
}

.table1 .rdate {
  width: 16%;
  cursor: pointer;
}

.table1 .alC {
  cursor: pointer;
}

.table1 td.version a {
  font-weight: bold;
  color: #3e4e9c;
}

.table1 td a:hover {
  color: #292929;
}

.table1 tr.alt td {
  background: #f2f6f8;
}

/* List7 - Other software */
.list7 {
  margin-bottom: 20px;
}

.list7 li {
  float: left;
  margin: 0px 7px 7px 0px;
  background: #ebebeb;
  border-bottom: 2px solid #d5d4d4;
  height: 22px;
  line-height: 22px;
  font-size: 12px;
}

.list7 li a {
  float: left;
  display: block;
  line-height: 22px;
  padding: 0px 10px;
  color: #3e4e9c;
  text-decoration: none;
  font-weight: bold;
}

.list7 li:hover {
  border-color: #e7daab;
}

.list7 li:hover a {
  background: #fff2be;
  text-decoration: none;
}

/* Comments */
.comments {
  margin-bottom: 58px;
  padding-top: 9px;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #292929;
  padding: 0 10px;
  margin-top: 0;
  margin-bottom: 14px;
}

.breadcrumbs p {
  color: #fff;
  font-size: 12px;
  line-height: 28px;
  font-weight: bold;
}

.breadcrumbs p a {
  color: #fff;
}

.breadcrumbs p span {
  color: #ffe718;
}

.breadcrumbs p a span {
  color: #fff;
}

/* Button1 - Get Updates Button */
.button1 {
  background: url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/classic/images/button1.c81a8fbccdbc.gif') no-repeat 0 0;
  height: 24px;
  display: inline-block;
  padding: 0 10px;
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.button1:hover {
  color: #fff;
  text-decoration: none;
}

.button1 .css3 {
  display: block;
  padding: 0 5px;
  text-shadow: 2px 2px 2px #666;
  padding-left: 12px;
}

/* RSS Button - Full text on desktop, compact on mobile */
.button1 .rss-full-text {
  display: block;
}

.button1 .rss-compact-text {
  display: none;
}

/* Download Box - Mobile version hidden on desktop */
.software-info .download-box-mobile {
  display: none;
}

/* Latest Version Box - Mobile version hidden on desktop */
.software-info .latest-version-box-mobile {
  display: none;
}

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

.flL {
  float: left;
}

.flR {
  float: right;
}

.alC {
  text-align: center;
}

/* Version Detail Page Specific Styles */

/* Heading2 - Software Info */
.heading2 {
  margin-bottom: 30px;
}

.heading2 img {
  float: left;
  margin-right: 5px;
  width: 32px;
  height: 32px;
}

.heading2 h3 {
  color: #073b76;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1em;
}

.heading2 h3 a {
  color: #073b76;
}

.heading2 h1 {
  color: #073b76;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1em;
}

.heading2 h1 a {
  color: #073b76;
}

.heading2 p.downloads {
  display: block;
  color: #76a611;
  font-size: 12px;
}

.heading2.large h1 {
  font-size: 18px;
}

/* Screenshots */
.screenshots {
  margin-bottom: 20px;
}

.screenshots ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.screenshots ul li {
  height: 60px;
  width: 80px;
  float: left;
  margin-right: 10px;
  border: 4px solid #ebebeb;
  font-size: 10px;
  cursor: pointer;
  text-align: center;
}

.screenshots ul li:hover {
  border: 4px solid #7b7b7b;
}

.screenshots ul li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshots ul li div.b-software-screenshot__data {
  height: 50px;
  font-size: 10px;
  width: 80px;
  text-align: center;
  cursor: pointer;
  padding-top: 10px;
}

/* Changelog */
.changelog {
  color: #4C4C4C;
  font-size: 12px;
  margin-bottom: 10px;
  display: block;
}

.ovchangelog ul {
  margin: 0 0 20px 14px;
  list-style: disc;
}

.ovchangelog li {
  line-height: 1.2em;
  font-size: 12px;
  margin-bottom: 5px;
}

/* Leaderboard Ad */
.ad-block.ad-leaderboard {
  margin: 20px 0;
  text-align: center;
  height: auto;
  width: auto;
}

/* Disqus Comments */
.disqus {
  margin-top: 20px;
}

.disqus img {
  margin-bottom: 15px;
}

/* Popup Styles */
.popup {
  position: absolute;
  padding: 18px 90px 25px 19px;
  background: #FFF;
  left: 20%;
  top: 20%;
  width: 730px;
  display: none;
  border: 1px solid #ccc;
  z-index: 1000;
}

.popup a.close-btn {
  display: block;
  cursor: pointer;
  position: absolute;
  top: -15px;
  right: -15px;
  text-decoration: none;
  width: 39px;
  height: 39px;
  background: #ccc;
  border: 1px solid #999;
  text-align: center;
  line-height: 37px;
  font-weight: bold;
  color: #000;
}

.popup a.close-btn:hover {
  text-decoration: none;
}

.popup h2 {
  font-size: 18px;
  font-weight: bold;
  line-height: 24px;
  color: #000;
  margin-bottom: 10px;
}

.popup h2 a {
  color: #00548f;
}

.popup h2 span {
  color: #6ca000;
}

.popup p {
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 20px;
  color: #212121;
}

.popup p a {
  color: #00548f;
  font-weight: bold;
}

/* Hidden Items */
.hiddenitem {
  display: none;
}

/* Version Links */
.versionsetlink {
  cursor: pointer;
  color: #00548f;
  text-decoration: none;
}

.versionsetlink:hover {
  color: #292929;
  text-decoration: underline;
}

/* Meta Data List */
.meta-data ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-data ul li {
  padding-bottom: 5px;
  margin-bottom: 5px;
  color: #4c4c4c;
  font-size: 11px;
  border-bottom: 1px solid #c0c0c0;
  line-height: 14px;
}

.meta-data ul li.last {
  border: 0px;
}

.meta-data ul li span {
  color: #6ca000;
  font-weight: normal;
}

/* OS badges in meta-data should use their own colors, not inherit span color */
.meta-data ul li span.os-badge {
  margin-top: 2px;
  margin-bottom: 2px;
  display: inline-block;
  vertical-align: middle;
  color: white; /* Override parent span color - default to white */
  /* Gradient styles from base.css will apply */
}

/* OS-specific badge colors in meta-data - override parent span color */
.meta-data ul li span.os-badge.windows,
.meta-data ul li span.os-badge.mac,
.meta-data ul li span.os-badge.macos,
.meta-data ul li span.os-badge.dos,
.meta-data ul li span.os-badge.android,
.meta-data ul li span.os-badge.ios {
  color: white;
}

.meta-data ul li span.os-badge.linux {
  color: #000000;
}

.meta-data ul li span a {
  color: #3e4e9c;
  font-weight: bold;
}

.meta-data ul li span a:hover {
  color: #292929;
}

/* Social Media Buttons */
.facebooklike {
  margin-right: 0;
}

.twitterlike {
  margin-right: 0;
}

.twitterlike .twitter-share-button {
  display: inline-block;
  background: #000 url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/shared/images/twitter.png') no-repeat 4px center;
  background-size: 12px 12px;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px 4px 20px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.2;
  border: 1px solid #333;
}

.twitterlike .twitter-share-button:hover {
  background: #333 url('https://oldversion-prod-storage.nyc3.digitaloceanspaces.com/app_assets/themes/shared/images/twitter.png') no-repeat 4px center;
  background-size: 12px 12px;
  color: #fff;
  text-decoration: none;
}

/* Clear both */
.clear {
  clear: both;
}

/* ================================================================
   Responsive Adjustments for Software Detail Page
   All changes preserve desktop layout (1200px+)
   ================================================================ */

/* Tablet and below (991px and below) */
@media (max-width: 991px) {
  /* Download boxes - stack on tablet */
  .softwares .download-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .softwares .download-boxes .column {
    width: 100% !important;
  }
  
  /* Software info columns - stack */
  .softwares .software-info .column,
  .softwares .software-info .meta-data {
    width: 100%;
  }
  
  /* Title sections - adjust layout */
  .softwares .title ul {
    float: none;
    width: 100%;
    margin: 10px 0 0 0;
  }
}

/* Mobile Large and below (767px and below) */
@media (max-width: 767px) {
  /* RSS Button - Show compact version on mobile */
  /* Mobile RSS Button - Show only "RSS" text, positioned to the right of background icon */
  .button1 .rss-full-text {
    display: none !important;
  }
  
  .button1 .rss-compact-text {
    display: block !important;
    padding: 0 5px 0 28px !important;
    line-height: 24px !important;
    margin: 0 !important;
    height: 24px;
  }
  
  .button1.flL {
    width: auto;
    min-width: auto;
    background-size: auto 24px;
    background-repeat: repeat-x;
    display: flex;
    align-items: center;
    padding: 0 10px;
  }
  
  /* Download boxes - full width buttons */
  .box2 a.button4,
  .box2 input.button4 {
    width: 100%;
    max-width: 222px;
    margin: 0 auto 6px auto;
  }
  
  /* Screenshots - adjust layout with fixed height cropping on mobile */
  .screenshots ul li {
    width: calc(50% - 5px);
    max-width: 100px;
    height: 100px !important;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  
  .screenshots ul li:nth-child(2n) {
    margin-right: 0;
  }
  
  .screenshots ul li img {
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Title - stack elements */
  .softwares .title h1.logo,
  .softwares .title h2 {
    float: none;
    margin: 0 0 10px 0;
  }
  
  /* Meta data - full width */
  .softwares .meta-data {
    width: 100%;
  }
  
  /* Heading2 large - icon to left, text stacked vertically on mobile */
  .software-info .heading2.large {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  
  .software-info .heading2.large img {
    float: none !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
  }
  
  .software-info .heading2.large .heading2-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .software-info .heading2.large h1,
  .software-info .heading2.large p.downloads,
  .software-info .heading2.large p.download-count {
    margin: 0 !important;
  }
  
  /* Download box - hide original on mobile, show mobile version */
  .software-info .column.flR.meta-data .box2 {
    display: none !important;
  }
  
  .software-info .download-box-mobile {
    display: block;
    margin-bottom: 15px;
  }
  
  /* Latest Version Box - show mobile version, hide original in download-boxes */
  .software-info .latest-version-box-mobile {
    display: block;
    margin-bottom: 15px;
  }
  
  .softwares .download-boxes .column.flL:first-child {
    display: none !important;
  }
  
  /* Version Selection Table - remove Size column and constrain width on mobile */
  .softwares .table1 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    overflow-x: visible !important;
    display: table !important;
    box-sizing: border-box;
    table-layout: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    -webkit-overflow-scrolling: auto !important;
  }
  
  /* Hide Size column header and cells on mobile */
  .softwares .table1 thead tr th.alC,
  .softwares .table1 thead tr th#sizesort,
  .softwares .table1 tbody tr.versiontr td:nth-child(3),
  .softwares .table1 tbody tr td:nth-child(3) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  
  /* Make empty state cell span full width visually */
  .softwares .table1 tbody tr.versiontr td[colspan="3"] {
    display: table-cell !important;
    width: 100%;
  }
  
  /* Ensure parent containers don't create scroll */
  .softwares {
    overflow-x: visible;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile (575px and below) */
@media (max-width: 575px) {
  /* Screenshots - single column with fixed height cropping */
  .screenshots ul li {
    width: 100px;
    height: 100px !important;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .screenshots ul li img {
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Download boxes - adjust padding */
  .box2 .inner {
    padding: 8px;
  }
  
  .box2 h3 {
    font-size: 13px;
  }
  
  /* Version Selection Table - ensure Size column is hidden and table fits on small mobile */
  .softwares .table1 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    overflow-x: visible !important;
    display: table !important;
    box-sizing: border-box;
    table-layout: auto;
  }
  
  .softwares .table1 thead tr th.alC,
  .softwares .table1 tbody tr td:nth-child(3) {
    display: none !important;
  }
  
}
