/* ============================================================
   GET INTO PC — Final Custom CSS (Complete)
   ============================================================ */

/* ===== BACKGROUND ===== */
/* ===== BACKGROUND ===== */
/* ===== BACKGROUND ===== */
html, body {
  background: #1a1a1a url('../images/bg-texture.jpg') repeat fixed !important;
}
body.cbgi #page, #page {
  background: transparent !important;
  background-image: none !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
#page-ext  { background: transparent !important; background-image: none !important; max-width: 1200px !important; margin: 0 auto !important; }
#main      { background: #fff !important; background-image: none !important; }
#main-ext  { background: transparent !important; background-image: none !important; }

/* ===== LOGO ===== */
#logo { font: bold 395% Verdana, Arial, sans-serif !important; letter-spacing: -2px !important; float: none !important; }
#site-title .headline { float: none !important; border: 0 !important; margin: 20px 0 !important; padding: 0 !important; }
div .post-tags { display: none; }

/* ===== POST CARD (Home Page) ===== */
.post { border: 2px solid !important; margin: 0 0 40px !important; padding: 15px !important; text-align: justify !important; }
.hentry { position: relative !important; }
.hentry h2.title { margin: 0 !important; padding: 0 46px 5px 0 !important; font-size: 170% !important; font-weight: bold !important; letter-spacing: -1px !important; line-height: normal !important; }
.hentry h2.title a { color: #6e8c03 !important; text-decoration: none !important; text-shadow: 0px 1px 1px #fff !important; }
.hentry h2.title a:hover { color: #4a6300 !important; }
.hentry .post-thumb { border: 5px solid #f2f2f2 !important; border-radius: 5px !important; box-shadow: 0 1px 0 rgba(0,0,0,.25) !important; }
.hentry.thumb-left .post-thumb { float: left !important; margin-right: 10px !important; }
.hentry .post-thumb img { display: block !important; }
.hentry.thumb-left .post-details { min-height: 140px !important; }
.hentry .post-details { overflow: hidden !important; }
.hentry .post-content p { line-height: 150% !important; }
.more-link { display: inline-block !important; border-radius: 5px !important; background: #eee !important; padding: 0 5px 1px !important; text-decoration: none !important; text-transform: uppercase !important; font-size: 11px !important; color: #999 !important; }
.more-link:hover { background: #333 !important; color: #fff !important; }

/* ===== DATE BAR (Home Page Posts) ===== */
.post-std { overflow: hidden !important; margin: 2px 0 5px !important; display: block !important; }
.post-std .ext { display: none !important; }
.post-std .post-date { float: left !important; background: none !important; padding: 0 !important; }
.post-std .post-date .ext {
  display: inline-block !important; float: none !important;
  background: #2d2d2d !important; background-image: none !important;
  color: #fff !important; font-weight: bold !important;
  text-transform: uppercase !important; font-size: 11px !important;
  padding: 6px 14px !important; border-radius: 3px !important;
  height: auto !important; line-height: 1.5 !important;
}
.post-std .post-info {
  display: block !important; overflow: hidden !important;
  background: #ebebeb !important; background-image: none !important;
  height: 30px !important; line-height: 30px !important;
  padding: 0 20px 0 8px !important;
  color: #888 !important; text-shadow: 1px 1px 0 #fff !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%) !important;
}
.post-std .post-info a { color: #777 !important; font-weight: bold !important; text-decoration: none !important; }

/* ===== BREADCRUMBS (Old Style - Single Post) ===== */
.breadcrumbs { padding: 10px 0; margin: 5px 0; color: #999; font-size: 12px; }
.breadcrumbs a { display: inline-block; background: #eee; text-decoration: none; color: #999; padding: 1px 5px 2px; border-radius: 5px; }
.breadcrumbs a:hover { background: #333; color: #fff; }
.breadcrumbs span.sep { color: #ccc; margin: 0 3px; }

/* ===== BREADCRUMBS (New Style - Original Site Match) ===== */
#breadcrumbs {
  padding: 10px 0 !important;
  margin: 5px 0 !important;
  color: #999 !important;
  font-size: 12px !important;
}
#breadcrumbs a {
  display: inline-block !important;
  background: #eee !important;
  text-decoration: none !important;
  color: #999 !important;
  padding: 1px 5px 2px !important;
  border-radius: 5px !important;
}
#breadcrumbs a:hover {
  background: #333 !important;
  color: #fff !important;
}
#breadcrumbs .breadcrumb_last strong {
  color: #6e8c03 !important;
  font-weight: bold !important;
}

/* ===== SINGLE POST PAGE - Match Original Style ===== */
.single .post-single-content,
.single-post .post-single-content {
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
}
.post-single-content img { max-width: 100% !important; height: auto !important; }

/* H1 Title - Bigger like original */
.single .hentry h1.title,
.single-post .hentry h1.title {
  font-size: 250% !important;
  font-weight: bold !important;
  letter-spacing: -0.04em !important;
  margin: 0.25em 0 0.5em !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  color: #333 !important;
}

/* Single post content typography */
.single .post-content p,
.single-post .post-content p {
  line-height: 1.6 !important;
  margin: 0.75em 0 !important;
  font-size: 13px !important;
}

.single .post-content h2,
.single-post .post-content h2 {
  font-size: 200% !important;
  font-weight: normal !important;
  letter-spacing: -0.03em !important;
  margin: 0.75em 0 0.25em !important;
  padding: 0 !important;
  color: #333 !important;
}

.single .post-content h3,
.single-post .post-content h3 {
  font-size: 160% !important;
  font-weight: normal !important;
  margin: 0.75em 0 0.25em !important;
}

.single .post-content ul,
.single-post .post-content ul {
  list-style-type: disc !important;
  margin: 0 0 10px 20px !important;
  line-height: 1.6 !important;
}

.single .post-content ul li,
.single-post .post-content ul li {
  margin-bottom: 5px !important;
}

/* ===== SCREENSHOT IMAGES - Properly Contained ===== */
.post-screenshot-img,
.post-content img.aligncenter,
.post-content p img {
  display: block !important;
  margin: 15px auto !important;
  width: 100% !important;
  max-width: 700px !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 1px solid #ddd !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  box-sizing: border-box !important;
}

/* Container for images - prevent overflow */
.post-content p {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Ensure post content stays within bounds */
.post-content,
.post-single-content {
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
}

/* ===== POST META & EXTRAS ===== */
.post-last-updated { color: #6e8c03; font-size: 13px; font-weight: bold; padding: 6px 10px; background: #f0fff0; border-left: 3px solid #6e8c03; margin: 10px 0; }
#comments { display: none; }

/* Related Posts */
.yarpp-related {
  margin: 20px 0 !important;
}
.yarpp-related h3 {
  font-size: 140% !important;
  margin-bottom: 10px !important;
}
.yarpp-related ol {
  margin: 0 0 10px 20px !important;
}
.yarpp-related ol li {
  margin: 5px 0 !important;
}
.yarpp-related a {
  color: #6e8c03 !important;
  text-decoration: none !important;
}
.yarpp-related a:hover {
  text-decoration: underline !important;
}

/* Last Updated styling */
.single .post-content h3 font[color="green"],
.single-post .post-content h3 font[color="green"] {
  font-size: 14px !important;
}
.date.updated {
  color: #6e8c03 !important;
}

/* ===== DOWNLOAD BUTTON ===== */
.btn { border: none; background: #2196F3; padding: 14px 28px; color: white !important; font-size: 16px; cursor: pointer; display: inline-block; border-radius: 5px; font-weight: bold; margin-top: 15px; width: 450px; max-width: 100%; text-decoration: none !important; text-align: center; transition: 0.3s; }
.btn:hover { background: #4CAF50 !important; color: white !important; }
.download-password { display: block; font-size: 16px; font-weight: bold; color: #e53935; margin-top: 8px; text-align: center; }

/* ===== INTERSTITIAL ===== */
.adblock-warning { background: #fff8dc; border: 2px solid #f5a623; border-radius: 4px; padding: 18px 20px; margin: 15px 0; font-size: 13px; line-height: 1.8; color: #444; }
.adblock-warning strong.title { display: block; font-size: 15px; font-weight: bold; color: #c0392b; margin-bottom: 8px; }
.download-coming-box { text-align: center; background: #f9fff0; border: 2px solid #6e8c03; border-radius: 4px; padding: 20px; margin: 15px 0; }
#countdown { font-size: 28px; font-weight: bold; color: #6e8c03; }
.btn-download-now { display: none; }
.btn-download-now.show { display: inline-block; }

/* ===== ALERTS ===== */
.alert { padding: 10px 15px; border-radius: 3px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert-error   { background: #ffebee; border: 1px solid #ef9a9a; color: #c62828; }
.alert-warning { background: #fff8e1; border: 1px solid #ffe082; color: #f57f17; }

/* ============================================================
   SIDEBAR RIGHT FIX
   ============================================================ */
#mask-1, #mask-2, #mask-3 {
  display: block !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  overflow: visible !important;
}

html body #main #main-ext {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  min-height: 700px !important;
  gap: 20px !important;
}

html body #main #main-ext #primary-content {
  order: 1 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 340px) !important;
  min-width: 0 !important;
  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

html body #main #main-ext #sidebar {
  order: 2 !important;
  flex: 0 0 320px !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  display: block !important;
  visibility: visible !important;
  box-sizing: border-box !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Logo */
  #logo { font-size: 220% !important; }
  
  /* Home page post cards */
  .hentry h2.title { font-size: 130% !important; }
  .hentry .post-thumb { width: 80px !important; height: 80px !important; }
  .hentry .post-thumb img { width: 80px !important; height: 80px !important; }
  
  /* Single post H1 */
  .single .hentry h1.title,
  .single-post .hentry h1.title {
    font-size: 180% !important;
  }
  
  /* Button */
  .btn { width: 100% !important; }
  
  /* Screenshots full width on mobile */
  .post-screenshot-img,
  .post-content img.aligncenter,
  .post-content p img {
    max-width: 100% !important;
  }
  
  /* Sidebar stack below content */
  html body #main #main-ext { flex-direction: column !important; }
  html body #main #main-ext #primary-content { max-width: 100% !important; width: 100% !important; }
  html body #main #main-ext #sidebar { width: 100% !important; max-width: 100% !important; min-width: auto !important; flex: 1 1 100% !important; }
}

/* ============================================================
   FINAL: BACKGROUND + SOCIAL ICONS (Original Match)
   ============================================================ */

/* Background image - full site coverage */
html, body {
  background: #1a1a1a url('../images/bg-texture.jpg') repeat fixed !important;
}
html body.cbgi #page,
html body #page {
  background: transparent !important;
  background-image: none !important;
}

/* Page extension - covers full screen */
html body #page {
  position: relative !important;
  min-height: 100% !important;
}

/* Social Icons - Original sprite (vertical layout) */
.media {
  position: absolute !important;
  bottom: 20px !important;
  right: 10px !important;
  z-index: 5 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.media li {
  float: right !important;
  margin-right: 5px !important;
  list-style: none !important;
}

.media .icon {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  background: transparent url('https://getintopcs.cc/assets/images/mystique/socialize.jpg') no-repeat center top !important;
  text-indent: -9999px !important;
}

.media .icon span {
  display: none !important;
}

/* Vertical sprite positions (matches original mystique_media_icons.png layout) */
.media .facebook .icon {
  background-position: center 0 !important;
}
.media .twitter .icon {
  background-position: center -63px !important;
}
.media .rss .icon {
  background-position: center -126px !important;
}


/* ===== MOBILE HAMBURGER ===== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  #page, #page-ext, #main, #main-ext {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  #header, .page-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
  }
  #mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 22px;
    background: none; border: none;
    cursor: pointer; padding: 0;
    float: right; margin: 10px;
  }
  #mobile-menu-toggle span {
    display: block; width: 100%; height: 3px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s;
  }
  #mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
  #mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  #mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  #menu-header-menu {
    display: none !important;
    flex-direction: column;
    width: 100%;
  }
  #menu-header-menu.mobile-open {
    display: flex !important;
  }
  #menu-header-menu li { width: 100%; }
  #menu-header-menu li a { display: block; padding: 10px 15px; border-bottom: 1px solid #333; color: #fff; }
  ul.media {
    display: none !important;
  }
}