/* ============================================================
   SECTIONS.CSS — Jiggle Callout, White House, Take Action,
                  Politician of the Month, Footer
   ============================================================ */

/* ---- Jiggling Comic Callout ---- */
.jiggle-callout {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
  transform: rotate(-3deg);
  animation: jiggle 0.4s ease-in-out infinite alternate;
  max-width: 160px;
  text-align: center;
}

.jiggle-bubble {
  background: var(--color-red);
  border: 3px solid #000;
  border-radius: 18px;
  padding: 14px 16px 18px;
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  text-transform: uppercase;
}

/* Tail of speech bubble */
.jiggle-bubble::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 28px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 6px solid transparent;
  border-top: 18px solid #000;
}

.jiggle-bubble::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 5px solid transparent;
  border-top: 16px solid var(--color-red);
  z-index: 1;
}

@keyframes jiggle {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg); }
}

/* ---- From the White House / Press Releases ---- */
.news-section {
  background: var(--color-parchment-dark);
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news-column h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-feed {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-feed::-webkit-scrollbar {
  width: 5px;
}
.news-feed::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 3px;
}

.news-card {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid var(--color-red);
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-card h3 a {
  color: #222;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--color-red);
}

.news-card p {
  font-size: 0.875rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card .news-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 8px;
}

.news-card .read-more {
  font-size: 0.85rem;
  color: var(--color-red);
  font-weight: 600;
}

/* ---- Take Action ---- */
.take-action {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}

.take-action .section-title {
  color: var(--color-white);
}

.action-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.action-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 32px 24px;
  flex: 1 1 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.action-card .icon {
  font-size: 2.4rem;
  line-height: 1;
}

.action-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.action-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

.action-card .btn-red {
  margin-top: auto;
}

/* ---- Politician of the Month ---- */
.potm {
  background: var(--color-parchment);
  padding: 64px 0;
}

.potm .section-title {
  color: var(--color-red);
}

.potm-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.potm-photo {
  flex-shrink: 0;
  width: 200px;
  height: 250px;
  object-fit: cover;
  border: 4px solid var(--color-red);
  box-shadow: 4px 4px 0 var(--color-gold);
  border-radius: 4px;
  background: #ccc;
}

.potm-photo.img-placeholder {
  width: 200px;
  height: 250px;
  flex-shrink: 0;
}

.potm-info {
  flex: 1;
}

.potm-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-red);
  text-transform: uppercase;
}

.potm-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 6px 0 16px;
  font-style: italic;
}

.potm-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 24px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

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

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

.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--color-gold);
  text-decoration: none;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .red-text {
  color: var(--color-red);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-top: 4px;
}

.footer-bottom {
  background: rgba(0,0,0,0.25);
  text-align: center;
  padding: 14px 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* Responsive */
@media (max-width: 1023px) {
  .news-grid { grid-template-columns: 1fr; }
  .action-card { max-width: 100%; }
}

@media (max-width: 639px) {
  .jiggle-callout { top: 74px; right: 10px; max-width: 130px; }
  .jiggle-bubble { font-size: 0.8rem; padding: 10px 12px 14px; }
  .potm-card { flex-direction: column; align-items: center; }
  .potm-photo, .potm-photo.img-placeholder { width: 100%; height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .action-cards { flex-direction: column; align-items: center; }
}
