/*
Theme Name: Castle Mod APK Cinema Studio
Theme URI: https://castlemodapks.com
Author: Castle Mod QA Studio Team
Author URI: https://castlemodapks.com
Description: Ultimate Cinema Dark Mode Theme for Castle Mod APK - VIP Unlocked, No Ads, 4K Ultra HD Movies, Live Cricket Streaming, Smart TV & Firestick Support. SaaS-Grade UI, Zero Emojis, Auto Legal Pages.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: castle-app-theme
*/

/* ==========================================================================
   RESET & CINEMA DARK THEME BASE (ZERO WHITE CONTAINER OVERRIDE)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  background-color: #060813 !important;
  color: #cbd5e1 !important;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper, .site-main, main, .main-content {
  background: transparent !important;
  color: #cbd5e1 !important;
}

.article-card {
  background: #0b1021 !important;
  border-radius: 18px !important;
  padding: 35px 40px !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid #1e2747 !important;
  color: #cbd5e1 !important;
  max-width: 1140px;
  margin: 30px auto;
}

@media (max-width: 768px) {
  .article-card {
    padding: 20px 16px !important;
    border-radius: 12px !important;
    margin: 15px auto;
  }
}

/* ==========================================================================
   TYPOGRAPHY & HIGH-CONTRAST HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-top: 35px;
  margin-bottom: 16px;
}

h1 {
  font-size: 36px;
  letter-spacing: -0.8px;
  line-height: 1.25;
}

h2 {
  font-size: 27px;
  border-bottom: 2px solid #1e2747;
  padding-bottom: 12px;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #e50914, #ff2a4b);
}

h3 {
  font-size: 21px;
  color: #f1f5f9 !important;
}

h4 {
  font-size: 17px;
}

p {
  color: #cbd5e1 !important;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

strong, b {
  color: #ffffff !important;
  font-weight: 700;
}

a {
  color: #ff2a4b;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #e50914;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

code {
  background: #04060f !important;
  color: #00f5d4 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  border: 1px solid #1e2747 !important;
}

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

/* ==========================================================================
   HEADER & CINEMA NAVBAR
   ========================================================================== */
.site-header {
  background: rgba(6, 8, 19, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1e2747;
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.castle-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.4);
  border: 1.5px solid #e50914;
}

.site-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: -0.5px;
  margin: 0;
}

.site-title span {
  color: #e50914;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-navigation a {
  color: #94a3b8 !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.main-navigation a:hover {
  color: #ffffff !important;
  text-shadow: none;
}

.header-cta-btn {
  background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 24px;
  text-decoration: none !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.55);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 900px) {
  .main-navigation ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-cta-btn {
    display: none;
  }
  .main-navigation.is-active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #070a18;
    padding: 20px 24px;
    border-bottom: 1px solid #1e2747;
    gap: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  }
}

/* ==========================================================================
   HERO APP BOX & CINEMA METRICS
   ========================================================================== */
.hero-app-box {
  background: linear-gradient(145deg, #0e142a 0%, #070a16 100%);
  border-radius: 20px;
  padding: 35px 35px 30px 35px;
  margin-bottom: 35px;
  border: 1px solid #1e2747;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-app-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e50914 0%, #ff2a4b 50%, #00f5d4 100%);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff2a4b;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a4b;
  box-shadow: 0 0 8px #ff2a4b;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-content-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

@media (max-width: 820px) {
  .hero-content-flex {
    flex-direction: column-reverse;
  }
}

.hero-squircle-icon {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.35);
  border: 2px solid rgba(229, 9, 20, 0.5);
  background: #080c1d;
  overflow: hidden;
}

.hero-squircle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pro-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #fde047 0%, #eab308 100%);
  color: #070914;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 1.2px;
}

/* Download CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
}

.hero-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none !important;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hero-download-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 38px rgba(229, 9, 20, 0.65);
}

.hero-download-mirror {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(22, 30, 56, 0.8);
  color: #cbd5e1 !important;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none !important;
  border: 1px solid #1e2747;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-download-mirror:hover {
  transform: translateY(-2px);
  border-color: #00f5d4;
  color: #ffffff !important;
}

/* App Specs Grid */
.app-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #1e2747;
}

@media (max-width: 820px) {
  .app-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-cell {
  background: #060914;
  border: 1px solid #1e2747;
  border-radius: 10px;
  padding: 12px 16px;
}

.spec-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.spec-val {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 800;
}

/* ==========================================================================
   4 KEY FEATURE CYBER CARDS (Ultra-Premium Glassmorphism)
   ========================================================================== */
.key-features-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 30px 0 45px 0;
}

.kf-card {
  background: linear-gradient(145deg, rgba(16, 22, 44, 0.9) 0%, rgba(9, 13, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.kf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
}

.kf-card-red {
  border-top: 3px solid #e50914 !important;
}

.kf-card-red:hover {
  border-color: #e50914 !important;
  box-shadow: 0 16px 40px -8px rgba(229, 9, 20, 0.3) !important;
}

.kf-card-gold {
  border-top: 3px solid #fde047 !important;
}

.kf-card-gold:hover {
  border-color: #fde047 !important;
  box-shadow: 0 16px 40px -8px rgba(253, 224, 71, 0.25) !important;
}

.kf-card-teal {
  border-top: 3px solid #00f5d4 !important;
}

.kf-card-teal:hover {
  border-color: #00f5d4 !important;
  box-shadow: 0 16px 40px -8px rgba(0, 245, 212, 0.25) !important;
}

.kf-card-blue {
  border-top: 3px solid #38bdf8 !important;
}

.kf-card-blue:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 16px 40px -8px rgba(56, 189, 248, 0.25) !important;
}

.kf-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.kf-card:hover .kf-card-icon {
  transform: scale(1.08);
}

.kf-card h4 {
  font-size: 17px;
  color: #ffffff;
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.kf-card p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   IMAGE CONTAINERS & DIAGRAMS
   ========================================================================== */
.castle-figure {
  margin: 35px 0;
  text-align: center;
}

.castle-img-responsive {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1.5px solid #1e2747;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  display: block;
  margin: 0 auto;
}

.castle-figcaption {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
  font-style: italic;
}

/* ==========================================================================
   24-ITEM GENERAL CAPABILITIES CHECKLIST
   ========================================================================== */
.castle-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 25px 0 35px 0;
}

.castle-check-item {
  background: #090e21;
  border: 1px solid #1e2747;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.castle-check-item:hover {
  transform: translateY(-2px);
  border-color: #e50914;
}

.castle-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.15);
  border: 1.5px solid #e50914;
  color: #ff2a4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   TABLES: COMPARISON & AUDIT
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 25px 0 35px 0;
  border-radius: 14px;
  border: 1px solid #1e2747;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cinema-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
  background: #070a16;
}

.cinema-table th {
  background: #0f152d;
  color: #ffffff;
  padding: 16px 18px;
  font-weight: 800;
  border-bottom: 2px solid #1e2747;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cinema-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #141c38;
  color: #cbd5e1;
}

.cinema-table tr:hover td {
  background: rgba(229, 9, 20, 0.04);
}

.cinema-table td.highlight-col {
  background: rgba(229, 9, 20, 0.08);
  color: #ffffff;
  font-weight: 700;
}

.check-yes {
  color: #10b981;
  font-weight: 800;
}

.check-no {
  color: #ef4444;
  font-weight: 800;
}

/* ==========================================================================
   TROUBLESHOOTING & FAQS ACCORDION
   ========================================================================== */
.troubleshoot-card {
  background: #090e21;
  border: 1px solid #1e2747;
  border-left: 4px solid #e50914;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}

.troubleshoot-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.faq-card {
  background: #090e21;
  border: 1px solid #1e2747;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: #e50914;
}

.faq-q {
  font-size: 17px;
  color: #ffffff;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.faq-a {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   E-E-A-T AUTHOR & TESTING LAB BOX
   ========================================================================== */
.eeat-author-box {
  background: linear-gradient(135deg, #0f1632 0%, #080c1d 100%);
  border: 1.5px solid #1e2747;
  border-radius: 18px;
  padding: 28px;
  margin: 45px 0 25px 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

@media (max-width: 640px) {
  .eeat-author-box {
    flex-direction: column;
    text-align: center;
  }
}

.eeat-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #ff2a4b);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* ==========================================================================
   FOOTER & 4 USEFUL BACKLINKS
   ========================================================================== */
.site-footer {
  background: #04060e;
  border-top: 1px solid #1e2747;
  padding: 50px 24px 30px 24px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ff2a4b;
  text-decoration: none;
}

.footer-useful-tag {
  display: inline-block;
  background: rgba(229, 9, 20, 0.12);
  color: #ff2a4b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.footer-bottom {
  border-top: 1px solid #141c38;
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
