/*
Theme Name: TodayPK Style
Theme URI: https://todaypk.com/
Author: Tanu
Description: A lightweight WordPress theme inspired by the simple directory-style layout of todaypk.com. Built as a style match for WordPress.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: todaypk-style
*/

:root {
  --theme-blue-1: #29aff8;
  --theme-blue-2: #0d7ed0;
  --theme-blue-3: #0a62aa;
  --text-dark: #1d2c3c;
  --soft-gray: #f2f4f7;
  --line-gray: #d8d8d8;
  --watch-1: #ff7f57;
  --watch-2: #d94a27;
  --download-1: #2aaaf4;
  --download-2: #086fbd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f5f5f5;
  color: var(--text-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: #17324f;
  text-decoration: none;
}

a:hover {
  color: var(--theme-blue-2);
}

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

.site-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 10px 40px;
}

.site-panel {
  background: #fff;
}

.theme-bar {
  background: linear-gradient(to bottom, var(--theme-blue-1), var(--theme-blue-2));
  color: #fff;
  text-align: center;
  border: 1px solid #0a6aaf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}

.theme-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.08) 0,
    rgba(255,255,255,.08) 2px,
    rgba(255,255,255,0) 2px,
    rgba(255,255,255,0) 10px
  );
  pointer-events: none;
}

.site-header {
  margin-top: 18px;
}

.site-title-wrap {
  padding: 18px 12px;
}

.site-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

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

.notice-bar {
  border: 1px solid #d8d8d8;
  border-top: 0;
  background: #fff;
  text-align: center;
  padding: 10px 15px;
  font-size: 15px;
}

.notice-bar strong {
  color: #ef8a00;
}

.notice-bar span {
  color: #d43c27;
  font-weight: 700;
}

.search-panel {
  background: var(--soft-gray);
  border: 1px solid #e2e5e8;
  border-top: 0;
  padding: 28px 20px 30px;
  text-align: center;
}

.search-form {
  max-width: 640px;
  margin: 0 auto;
}

.search-form-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.search-field {
  width: 100%;
  height: 46px;
  border-radius: 24px;
  border: 1px solid #cfd8e3;
  padding: 0 18px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.search-field:focus {
  border-color: #77baf0;
  box-shadow: 0 0 0 3px rgba(38,168,244,.12);
}

.search-submit {
  border: 0;
  background: linear-gradient(to bottom, #1ea6ff, #0878d1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 24px;
  cursor: pointer;
}

.search-submit:hover {
  filter: brightness(.96);
}

.section-block {
  margin-top: 18px;
}

.section-title {
  margin: 0;
  padding: 12px 14px;
  font-size: 24px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.archive-list,
.category-list,
.search-results-list,
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d7dfe8;
  border-top: 0;
  background: #fff;
}

.archive-list li,
.category-list li,
.search-results-list li,
.post-list li {
  position: relative;
  padding: 10px 14px 10px 42px;
  border-bottom: 1px solid #ececec;
}

.archive-list li:last-child,
.category-list li:last-child,
.search-results-list li:last-child,
.post-list li:last-child {
  border-bottom: 0;
}

.archive-list li::before,
.category-list li::before,
.search-results-list li::before,
.post-list li::before {
  content: '📁';
  position: absolute;
  left: 14px;
  top: 9px;
  font-size: 17px;
  line-height: 1;
}

.archive-list a,
.category-list a,
.search-results-list a,
.post-list a {
  color: #23384d;
}

.spacer-panel {
  min-height: 220px;
  background: #f5f7fa;
  border: 1px solid #d7dfe8;
  border-top: 0;
}

.entry-card {
  border: 1px solid #d7dfe8;
  border-top: 0;
  padding: 16px;
  background: #fff;
}

.entry-title {
  margin: 0 0 10px;
  font-size: 28px;
}

.entry-meta {
  color: #5b6d7d;
  font-size: 13px;
  margin-bottom: 12px;
}

.entry-content {
  font-size: 16px;
}

.seo-strip {
  border: 1px solid #d7dfe8;
  border-top: 0;
  background: #fff;
  padding: 10px 14px;
  color: #222;
}

.movie-info-title {
  font-size: 22px;
}

.movie-information-card {
  padding-top: 14px;
}

.movie-poster-wrap {
  margin-bottom: 12px;
}

.movie-poster {
  width: 170px;
  max-width: 100%;
  display: block;
  border: 1px solid #d7dfe8;
}

.movie-meta-lines p {
  margin: 0 0 7px;
  color: #151515;
}

.movie-synopsis-box {
  margin-top: 12px;
  background: #fff8bf;
  padding: 12px 14px;
  border: 1px solid #efe39a;
  color: #222;
}

.movie-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 8px;
}

.movie-cta {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.movie-watch-btn {
  background: linear-gradient(to bottom, var(--watch-1), var(--watch-2));
}

.movie-download-btn {
  background: linear-gradient(to bottom, var(--download-1), var(--download-2));
}

.cta-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.movie-extra-content {
  margin-top: 12px;
}

.site-footer {
  margin-top: 24px;
}

.footer-inner {
  padding: 18px 12px;
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.pagination-wrap {
  border: 1px solid #d7dfe8;
  border-top: 0;
  padding: 14px;
  background: #fff;
}

.pagination-wrap .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #c7d7e7;
  border-radius: 4px;
}

.pagination-wrap .current {
  background: #eaf5ff;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 700px) {
  .site-shell {
    padding: 0 8px 24px;
  }

  .site-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 20px;
  }

  .movie-info-title {
    font-size: 18px;
  }

  .archive-list li,
  .category-list li,
  .search-results-list li,
  .post-list li {
    padding-left: 38px;
  }

  .spacer-panel {
    min-height: 120px;
  }

  .movie-cta {
    width: 100%;
    min-width: 0;
  }
}
