/*
Theme Name: Puzzles XER
Theme URI: https://indianpornsites.org/
Author: Rebuilt from Wayback reference
Description: A lightweight WordPress theme rebuilt to match the archived Puzzles/ThemeREX based IndianPornSites.org layout from August 2022.
Version: 1.3.1
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: puzzles-xer
*/

:root {
  --accent: #00a0db;
  --green: #13af6a;
  --page: #f0f0f0;
  --text: #000;
  --muted: #777;
  --border: #d2d2d2;
  --star: #ffc800;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Oxygen, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #00bcff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: 1243px;
  max-width: calc(100% - 28px);
  margin: 0 auto;
}

.site-header {
  padding-bottom: 28px;
  background: #fff;
}

.top-line {
  height: 3px;
  background: var(--accent);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0 10px;
}

.logo {
  width: 25%;
  min-width: 230px;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  max-height: 92px;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.logo-text strong {
  font-size: 30px;
  line-height: 1;
}

.logo-text span {
  color: var(--accent);
  font-size: 13px;
}

.header-ad {
  flex: 1;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-ad img {
  display: block;
  max-height: 100px;
  max-width: 100%;
}

.menu-bar {
  min-height: 54px;
  background: linear-gradient(to bottom, #313131 0%, #242424 50%, #131313 50%, #070707 100%);
}

.mainmenu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mainmenu li {
  margin: 0 1px 1px 0;
  text-transform: uppercase;
  font-size: 18px;
}

.mainmenu a {
  display: block;
  height: 54px;
  line-height: 54px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
}

.mainmenu a:hover {
  background: #13af6a;
  text-decoration: none;
}

.breadcrumbs {
  height: 30px;
  line-height: 30px;
  color: #999;
  font-size: 12px;
}

.site-main {
  padding-bottom: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.single-layout { grid-template-columns: minmax(0, 1fr) 270px; }

.without-sidebar {
  display: block;
}

.archive-title {
  margin: 0 0 16px;
  color: #222;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  font-weight: 400;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: stretch;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 650px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}

.post-thumb {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 290 / 210;
  overflow: hidden;
  background: #ddd;
}

.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb img.archive-fallback {
  padding: 65px;
  background: #f4f4f4;
  object-fit: contain;
}

.flag {
  position: absolute;
  z-index: 3;
  top: 45px;
  left: -10px;
  width: 120px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  transform: rotate(-45deg);
}

.post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 20px;
  background: #fff;
}

.post-title {
  margin: 0;
  color: #222;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  text-transform: uppercase;
}

.post-title a {
  color: var(--accent);
}

.review-stars {
  position: relative;
  width: 120px;
  height: 28px;
  margin-top: 5px;
  color: rgba(128, 128, 128, .8);
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 1px;
}

.review-stars .stars-off,
.review-stars .stars-on {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

.review-stars .stars-on {
  color: var(--star);
}

.post-excerpt {
  margin: 12px 0 8px;
  text-align: left;
  color: #000;
  font-size: 16px;
  line-height: 24px;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.post-actions .more-link { order: -1; }

.more-link,
.visit-link,
.button {
  display: inline-block;
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 3px;
  background: var(--accent);
  color: #f9eeee !important;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.post-actions .more-link,
.post-actions .visit-link {
  min-height: 48px;
  padding: 12px;
  font-size: 16px;
  line-height: 24px;
}

.visit-link {
  background: var(--green);
}

.archive-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  clear: both;
  padding: 44px 16px 54px;
  color: #666;
}

.archive-pagination .pagination-status { font-size: 14px; }
.archive-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.archive-pagination .page-numbers { margin: 0; }
.archive-pagination a.page-numbers,
.archive-pagination span.page-numbers.current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #666;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.archive-pagination span.page-numbers.current,
.archive-pagination a.page-numbers:hover { background: var(--accent); }
.archive-pagination .page-numbers.dots { display: block; min-width: 14px; padding: 8px 0; text-align: center; }

.sidebar .widget,
.footer-widgets .widget {
  margin-bottom: 20px;
  background: transparent;
}

.review-sidebar {
  align-self: start;
  padding: 10px;
  background: #f7f7f7;
  color: #000;
  font-size: 12px;
  line-height: 1.4;
}

.review-criteria { background: #fff; }

.review-criterion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
}

.criterion-stars { white-space: nowrap; font-size: 20px; line-height: 1; }
.criterion-stars .filled { color: #ffa800; }
.criterion-stars .empty { color: #858585; }

.review-overall {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: #fff;
}

.review-overall strong {
  display: block;
  width: 120px;
  padding: 8px 0;
  background: var(--accent);
  color: #fff;
  font-size: 25px;
  line-height: 30px;
  text-align: center;
}

.review-overall .review-stars { width: 110px; margin: 0; font-size: 20px; }
.review-facts { padding: 10px 12px 0; background: #fff; }
.review-fact-section { padding: 5px 0 10px; border-bottom: 1px solid #e6e6e6; }
.review-fact-section:last-child { border-bottom: 0; }
.review-fact-section h3 { margin: 0 0 12px; font-size: 14px; text-decoration: underline; }
.review-fact-section p { margin: 0 0 10px; }
.review-fact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.review-fact-row a { color: #009bd4; }
.review-author { padding-left: 50%; color: #009bd4; }

.widget-title,
.widgettitle {
  margin: 0 0 12px;
  color: #222;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 400;
}

.sidebar ul,
.footer-widgets ul {
  margin: 0;
  padding-left: 18px;
}

.intro-copy {
  clear: both;
  margin: 24px 0 30px;
  color: #222;
  line-height: 1.6;
}

.intro-copy h2 {
  margin: 18px 0 10px;
  color: #222;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  font-weight: 400;
}

.site-footer {
  background: #1b1b1b;
  color: #c9c9c9;
}

.site-footer .widget-title,
.site-footer .widgettitle { color: #fff; }

.site-footer a { color: #d8d8d8; }

.site-footer a:hover { color: #fff; }

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0;
}

.footer-bottom {
  padding: 15px 0;
  background: #111;
  color: #bcbcbc;
  text-align: center;
  border-top: 1px solid #333;
}

.review-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  min-height: 72px;
  margin-bottom: 12px;
}

.review-item-image img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.review-item h4 {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
}

.review-item h4 a { color: #222; }
.site-footer .review-item h4 a { color: #d8d8d8; }
.review-item .review-stars { margin-top: 0; transform: scale(.75); transform-origin: left top; }
.footer-widgets .menu { list-style: none; padding: 0; }
.footer-widgets .menu li { margin-bottom: 8px; }
.footer-brand img { max-width: 100%; height: auto; }
.entry-content { font-size: 15px; line-height: 1.65; }
.entry-content h2 { font-size: 20px; text-transform: uppercase; }
.entry-content p { margin: 0 0 20px; }
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-top: 24px; }
.contact-form label { display: grid; gap: 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 9px; border: 1px solid #bbb; font: inherit; }
.contact-form .button { width: fit-content; border: 0; cursor: pointer; }
.contact-honeypot { position: absolute; left: -9999px; }
.contact-status { padding: 12px; background: #eaf7ef; }

.single-article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
}

.single-article h1 {
  margin: 0 0 12px;
  color: #222;
  text-transform: uppercase;
  font-weight: 400;
}

.single-meta { margin-bottom: 16px; color: #777; font-size: 12px; }

.single-featured {
  float: left;
  width: 360px;
  max-width: 45%;
  margin: 0 24px 16px 0;
}

@media (max-width: 1259px) {
  .wrap {
    width: 923px;
  }

  .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .mainmenu li {
    font-size: 16px;
  }

  .mainmenu a {
    height: 48px;
    line-height: 48px;
    padding: 0 18px;
  }
}

@media (max-width: 999px) {
  .wrap {
    width: 723px;
  }

  .header-top {
    display: block;
    text-align: center;
  }

  .logo {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
  }

  .header-ad {
    display: none;
  }

  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .content-grid {
    display: block;
  }

  .mainmenu li {
    font-size: 14px;
  }

  .mainmenu a {
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
  }
}

@media (max-width: 679px) {
  body {
    font-size: 12px;
    line-height: 16px;
  }

  .wrap {
    max-width: calc(100% - 18px);
  }

  .posts-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 0; }
  .post-thumb { aspect-ratio: 290 / 210; }
  .post-body { padding: 14px; }

  .post-body,
  .post-excerpt {
    min-height: 0;
    height: auto;
  }

  .mainmenu li {
    width: 100%;
    margin-right: 0;
  }

  .mainmenu a {
    height: 36px;
    line-height: 36px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .single-featured {
    float: none;
    width: 100%;
    max-width: none;
    margin-right: 0;
  }
}
