/* RPC News - Static clone styles */
:root {
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #1e73be;
  --green-start: #19bf89;
  --green-end: #41d29d;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--contrast);
  background: var(--base-2);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  padding: 8px 16px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--base-3);
  border-bottom: 1px solid var(--base);
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.main-title a {
  font-size: 25px;
  font-weight: 700;
  color: var(--contrast);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 0 20px;
  line-height: 60px;
  color: var(--contrast);
  text-decoration: none;
  font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
}

/* Layout */
.site-content {
  display: flex;
  gap: 20px;
  max-width: var(--container);
  margin: 20px auto;
  padding: 0 20px;
}

.content-area {
  flex: 0 0 70%;
  max-width: 70%;
}

.sidebar {
  flex: 0 0 30%;
  max-width: 30%;
}

/* Article */
.inside-article {
  background: var(--base-3);
  padding: 40px;
}

.entry-title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.entry-meta {
  font-size: 85%;
  color: var(--contrast-2);
  margin-bottom: 2em;
}

.entry-meta a {
  color: var(--contrast-2);
  text-decoration: none;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: 35px;
  font-weight: 400;
  line-height: 1.2;
  margin: 1.5em 0 20px;
}

.text-center {
  text-align: center;
}

.text-medium {
  font-size: 20px;
}

.text-small {
  font-size: 13px;
}

/* Movie CTA Buttons */
.movie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(90deg, var(--green-start), var(--green-end));
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 700;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(25, 191, 137, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulseGlow 1.5s infinite;
}

.movie-btn:hover {
  transform: scale(1.02);
  color: #fff !important;
}

.arrow-circle {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  flex-shrink: 0;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(65, 210, 157, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(65, 210, 157, 1);
  }
}

/* FAQ Accordion */
.faq-section {
  margin: 2em 0;
}

.faq-item {
  border: 1px solid var(--base);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--base-3);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--base-2);
  border: 0;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--contrast);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--base);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 16px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--contrast-2);
}

/* Entry footer */
.entry-footer {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--base);
  font-size: 85%;
  color: var(--contrast-2);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5em;
  gap: 16px;
}

.post-nav a {
  text-decoration: none;
  font-size: 15px;
}

/* Sidebar widgets */
.widget {
  background: var(--base-3);
  padding: 40px;
  margin-bottom: 20px;
}

.widget h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.search-form {
  display: flex;
  gap: 0;
}

.search-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--base);
  background: var(--base-2);
  font-size: 15px;
  border-radius: 0;
}

.search-form button {
  padding: 10px 20px;
  background: #55555e;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.recent-posts {
  list-style: none;
}

.recent-posts li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--base);
}

.recent-posts li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-posts a {
  text-decoration: none;
  color: var(--contrast);
  font-size: 15px;
}

.recent-posts a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: 20px;
}

.footer-widgets {
  background: var(--base-3);
  padding: 40px 0;
  border-top: 1px solid var(--base);
}

.footer-widgets .container {
  font-size: 14px;
  line-height: 1.7;
  color: var(--contrast-2);
}

.site-info {
  background: var(--base-3);
  border-top: 1px solid var(--base);
  padding: 20px 0;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-menu a {
  text-decoration: none;
  font-size: 14px;
  color: var(--contrast-2);
}

.copyright-bar {
  text-align: right;
  font-size: 14px;
  color: var(--contrast-2);
}

/* Comment form */
.comments-area {
  background: var(--base-3);
  padding: 40px;
  margin-top: 20px;
}

.comment-reply-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 12px;
  border: 1px solid var(--base);
  background: var(--base-2);
  font-family: inherit;
  font-size: 15px;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .submit {
  background: #55555e;
  color: #fff;
  border: 0;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 15px;
}

/* App download cards */
.app-card {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.app-header {
  background: #edf7f5;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-header img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-header h2,
.app-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.app-tag,
.badge {
  display: inline-block;
  margin-top: 10px;
  background: #c6f0d6;
  color: #006b3c;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.app-stats {
  display: flex;
  justify-content: space-around;
  padding: 18px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--contrast-2);
}

.download-btn {
  display: block;
  width: 80%;
  margin: 20px auto;
  text-align: center;
  background: #14c7a2;
  color: #fff !important;
  text-decoration: none !important;
  padding: 18px;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 700;
  animation: pulseBtn 1.5s infinite;
  transition: transform 0.3s, box-shadow 0.3s;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(20, 199, 162, 0.7);
  color: #fff !important;
}

@keyframes pulseBtn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(20, 199, 162, 0.5);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(20, 199, 162, 1);
  }
}

.spacer {
  height: 30px;
}

.featured-image {
  margin: 2em 0;
  border-radius: 12px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  border-radius: 12px;
}

.see-too-list {
  margin: 1em 0 1.5em 2em;
}

.see-too-list li {
  margin-bottom: 8px;
}

/* Download redirect page */
.download-page {
  max-width: 600px;
  margin: 30px auto;
  padding: 40px;
  background: #fff;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.download-page .app-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  margin: 0 auto 15px;
  object-fit: cover;
}

.download-page h2 {
  margin: 10px 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.loader-dots {
  margin: 20px 0;
}

.loader-dots span {
  width: 14px;
  height: 14px;
  background: #1fc3ad;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  animation: bounce 1.2s infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.download-page h3 {
  font-size: 28px;
  margin-top: 25px;
  font-weight: 700;
}

.download-page > p {
  color: #6b7280;
  font-size: 18px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  margin: 25px 0;
}

.progress {
  width: 0%;
  height: 100%;
  background: #18c7a3;
  border-radius: 20px;
  animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

.store-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 18px 35px;
  background: #18c7a3;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 700;
  animation: glow 1.5s infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(24, 199, 163, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(24, 199, 163, 1);
  }
}

.download-page .features {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 15px;
}

.download-page .small-text {
  margin-top: 25px;
  color: #6b7280;
}

.download-page hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 25px 0;
}

.content-area-full {
  flex: 1 1 100%;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .inside-header {
    flex-wrap: wrap;
    padding: 20px 30px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    line-height: 48px;
    border-top: 1px solid var(--base);
  }

  .site-content {
    flex-direction: column;
  }

  .content-area,
  .sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .inside-article,
  .widget,
  .comments-area {
    padding: 30px;
  }

  .entry-title {
    font-size: 32px;
  }

  .entry-content h2 {
    font-size: 26px;
  }

  .post-nav {
    flex-direction: column;
  }

  .footer-bar,
  .copyright-bar {
    text-align: center;
    justify-content: center;
  }
}
