/* AnHonestHost Page-Specific Components */

/* ========== Page Header (Interior Pages) ========== */
.anhh-page-header {
  text-align: center;
  padding: 80px 48px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.anhh-page-header .anhh-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ========== Nav Dropdown ========== */
.anhh-nav-has-dropdown { position: relative; }
.anhh-nav-dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--anhh-bg-elevated); border: 1px solid var(--anhh-border-color);
  border-radius: var(--anhh-radius-md); padding: 8px 0; min-width: 200px;
  box-shadow: var(--anhh-shadow-md); z-index: 200;
}
.anhh-nav-has-dropdown:hover .anhh-nav-dropdown,
.anhh-nav-has-dropdown:focus-within .anhh-nav-dropdown { display: block; }
.anhh-nav-dropdown a {
  display: block; padding: 8px 20px; font-size: 14px; color: var(--anhh-text-secondary);
  transition: all 0.15s;
}
.anhh-nav-dropdown a:hover { color: var(--anhh-text-primary); background: var(--anhh-bg-surface); }
/* Small label for dropdown items like "(cPanel)" */
.anhh-nav-dropdown .anhh-label-muted { color: var(--anhh-text-muted); font-size: 12px; margin-left: 4px; }

/* ========== Mobile Nav Toggle ========== */
.anhh-nav-toggle {
  display: none; background: none; border: none; color: var(--anhh-text-primary);
  font-size: 24px; cursor: pointer; padding: 4px 8px;
}
@media (max-width: 768px) {
  .anhh-nav-toggle { display: block; }
  .anhh-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--anhh-bg); border-bottom: 1px solid var(--anhh-border-color);
    flex-direction: column; padding: 16px; gap: 0;
  }
  .anhh-nav-links.anhh-nav-open { display: flex; }
  .anhh-nav-links li { width: 100%; }
  .anhh-nav-links a { display: block; padding: 12px 0; font-size: 16px; }
  .anhh-nav-dropdown { position: static; transform: none; box-shadow: none; border: none; background: transparent; display: none; padding-left: 16px; }
  .anhh-nav-has-dropdown.anhh-dropdown-open .anhh-nav-dropdown { display: block; }
  .anhh-nav-cta { text-align: center; margin-top: 8px; }
}
@media (max-width: 480px) {
  /* When menu is closed on small mobile, hide all nav items except CTA */
  .anhh-nav-links:not(.anhh-nav-open) li:not(:last-child) { display: none; }
}

/* ========== Plan Feature Grid ========== */
.anhh-plan-detail { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.anhh-plan-detail-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.anhh-plan-detail-row span:first-child { color: var(--anhh-text-muted); }
.anhh-plan-detail-row span:last-child { color: var(--anhh-text-primary); font-weight: 500; }

/* ========== CTA Banner ========== */
.anhh-cta-banner {
  background: var(--anhh-accent-dim); border: 1px solid var(--anhh-accent-border);
  border-radius: var(--anhh-radius-lg); padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--anhh-max-width); margin: 0 auto 60px;
}
.anhh-cta-banner p { color: var(--anhh-text-secondary); font-size: 16px; margin: 0; max-width: 600px; }
.anhh-cta-banner strong { color: var(--anhh-text-primary); }
@media (max-width: 768px) {
  .anhh-cta-banner { flex-direction: column; text-align: center; padding: 24px; }
}

/* ========== Timeline (About Page) ========== */
.anhh-timeline { position: relative; padding-left: 32px; margin-top: 40px; }
.anhh-timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px;
  background: var(--anhh-border-color);
}
.anhh-timeline-item { position: relative; padding-bottom: 32px; }
.anhh-timeline-item::before {
  content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--anhh-accent); border: 2px solid var(--anhh-bg);
}
.anhh-timeline-year { font-size: 13px; font-weight: 700; color: var(--anhh-accent); margin-bottom: 4px; }
.anhh-timeline-title { font-size: 16px; font-weight: 600; color: var(--anhh-text-primary); margin-bottom: 4px; }
.anhh-timeline-desc { font-size: 14px; color: var(--anhh-text-secondary); }

/* ========== Contact Grid ========== */
.anhh-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: var(--anhh-max-width); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .anhh-contact-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 32px; } }

.anhh-contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--anhh-border-color); }
.anhh-contact-method:last-child { border-bottom: none; }
.anhh-contact-icon { font-size: 20px; flex-shrink: 0; width: 40px; height: 40px; background: var(--anhh-accent-dim); border-radius: var(--anhh-radius-md); display: flex; align-items: center; justify-content: center; }
.anhh-contact-label { font-size: 13px; color: var(--anhh-text-muted); margin-bottom: 2px; }
.anhh-contact-value { font-size: 15px; color: var(--anhh-text-primary); font-weight: 500; }
.anhh-contact-value a { color: var(--anhh-accent); }

/* ========== Form Elements ========== */
.anhh-form-group { margin-bottom: 20px; }
.anhh-form-label { display: block; font-size: 14px; font-weight: 500; color: var(--anhh-text-secondary); margin-bottom: 6px; }
.anhh-input, .anhh-textarea, .anhh-select {
  width: 100%; padding: 12px 16px; background: var(--anhh-bg-surface); color: var(--anhh-text-primary);
  border: 1px solid var(--anhh-border-color); border-radius: var(--anhh-radius-md);
  font-family: var(--anhh-font-family); font-size: 15px; transition: border-color 0.2s;
}
.anhh-input:focus, .anhh-textarea:focus, .anhh-select:focus { outline: none; border-color: var(--anhh-accent); }
.anhh-textarea { resize: vertical; min-height: 120px; }

/* ========== Prose (Legal / Privacy Pages) ========== */
.anhh-prose { max-width: 800px; margin: 0 auto; padding: 0 48px 80px; }
.anhh-prose h2 { font-size: 24px; font-weight: 700; margin-top: 48px; margin-bottom: 16px; color: var(--anhh-text-primary); }
.anhh-prose h3 { font-size: 18px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; color: var(--anhh-text-primary); }
.anhh-prose p { font-size: 15px; color: var(--anhh-text-secondary); line-height: 1.8; margin-bottom: 16px; }
.anhh-prose ul, .anhh-prose ol { padding-left: 24px; margin-bottom: 16px; }
.anhh-prose li { font-size: 15px; color: var(--anhh-text-secondary); line-height: 1.8; padding: 2px 0; list-style: disc; }
.anhh-prose a { color: var(--anhh-accent); text-decoration: underline; }
@media (max-width: 768px) { .anhh-prose { padding: 0 16px 48px; } }

/* ========== Affiliate Steps ========== */
.anhh-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.anhh-step { text-align: center; }
.anhh-step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--anhh-accent-dim); color: var(--anhh-accent); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.anhh-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--anhh-text-primary); }
.anhh-step p { font-size: 14px; color: var(--anhh-text-secondary); }
@media (max-width: 768px) { .anhh-steps-grid { grid-template-columns: 1fr; } }

/* ========== Feature Comparison Table ========== */
.anhh-feature-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.anhh-feature-table th { font-size: 13px; font-weight: 600; color: var(--anhh-text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--anhh-border-color); }
.anhh-feature-table td { padding: 12px 16px; font-size: 14px; color: var(--anhh-text-secondary); border-bottom: 1px solid var(--anhh-border-color); }
.anhh-feature-table tr:hover td { background: var(--anhh-bg-surface); }
.anhh-feature-table .anhh-check { color: var(--anhh-accent); font-weight: 700; }
.anhh-feature-table .anhh-cross { color: var(--anhh-text-muted); }

/* ========== Social Links (Footer) ========== */
.anhh-social-links { display: flex; gap: 12px; margin-top: 16px; }
.anhh-social-link { width: 36px; height: 36px; border-radius: var(--anhh-radius-md); background: var(--anhh-bg-surface); border: 1px solid var(--anhh-border-color); display: flex; align-items: center; justify-content: center; color: var(--anhh-text-secondary); font-size: 16px; transition: all 0.2s; text-decoration: none; }
.anhh-social-link:hover { border-color: var(--anhh-accent); color: var(--anhh-accent); }

/* ========== Print Styles (Legal / Privacy Pages) ========== */
@media print {
  .anhh-bg-grid, .anhh-bg-glow, .anhh-nav, .anhh-footer { display: none; }
  body { background: white; color: black; }
  .anhh-prose { max-width: 100%; padding: 0; }
  .anhh-prose h2, .anhh-prose h3 { color: black; }
  .anhh-prose p, .anhh-prose li { color: #333; }
}

/* ========== Form Shield Badge ========== */
.anhh-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: var(--anhh-bg-surface);
  color: var(--anhh-text-muted);
  border: 1px solid var(--anhh-border-color);
  transition: all 0.4s ease;
}
.anhh-shield-badge.anhh-shield-verified {
  background: rgba(0, 212, 170, 0.1);
  color: var(--anhh-accent);
  border-color: rgba(0, 212, 170, 0.3);
}
.anhh-shield-badge svg {
  flex-shrink: 0;
}

/* ========== Announcements Page ========== */
.anhh-announcements-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.anhh-announcement-card {
  background: var(--anhh-bg-elevated);
  border: 1px solid var(--anhh-border-color);
  border-radius: var(--anhh-radius-xl);
  box-shadow: var(--anhh-shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.anhh-announcement-card:hover {
  border-color: var(--anhh-accent-border);
  box-shadow: var(--anhh-shadow-md);
}
.anhh-announcement-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 40px;
  cursor: pointer;
  transition: background 0.2s;
}
.anhh-announcement-header:hover {
  background: var(--anhh-bg-surface);
}
.anhh-announcement-header-content {
  flex: 1;
  min-width: 0;
}
.anhh-announcement-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--anhh-radius-md);
  background: var(--anhh-bg-surface);
  border: 1px solid var(--anhh-border-color);
  color: var(--anhh-text-muted);
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.2s;
}
.anhh-announcement-toggle svg {
  transition: transform 0.3s ease;
}
.anhh-announcement-card.open .anhh-announcement-toggle svg {
  transform: rotate(180deg);
}
.anhh-announcement-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--anhh-accent);
  background: var(--anhh-accent-dim);
  border: 1px solid var(--anhh-accent-border);
  padding: 4px 14px;
  border-radius: var(--anhh-radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.anhh-announcement-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--anhh-text-primary);
  margin-bottom: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.anhh-announcement-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.anhh-announcement-card.open .anhh-announcement-body-wrap {
  grid-template-rows: 1fr;
}
.anhh-announcement-body-inner {
  overflow: hidden;
}
.anhh-announcement-body {
  font-size: 15px;
  color: var(--anhh-text-secondary);
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
  border-top: 1px solid var(--anhh-border-color);
  padding: 24px 40px 36px;
}
.anhh-announcement-body p { margin-bottom: 12px; }
.anhh-announcement-body p:last-child { margin-bottom: 0; }
.anhh-announcement-body a { color: var(--anhh-accent); text-decoration: underline; word-break: break-all; }
.anhh-announcement-body strong { color: var(--anhh-text-primary); }
/* Override WHMCS inline highlight styles to fit our theme */
.anhh-announcement-body span[style*="background-color"] {
  background-color: var(--anhh-accent-dim) !important;
  color: var(--anhh-accent) !important;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .anhh-announcements-list { padding: 0 16px 48px; gap: 24px; }
  .anhh-announcement-header { padding: 24px; }
  .anhh-announcement-body { padding: 20px 24px 24px; }
  .anhh-announcement-title { font-size: 18px; }
}

/* ========== Blog Listing ========== */
.anhh-blog-container {
  max-width: var(--anhh-max-width);
  margin: 0 auto;
  padding: 0 48px 80px;
}
.anhh-blog-search {
  margin-bottom: 20px;
}
.anhh-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.anhh-blog-tag {
  display: inline-block;
  background: var(--anhh-accent-dim);
  color: var(--anhh-accent);
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--anhh-font-family);
  line-height: 1.5;
}
button.anhh-blog-tag {
  cursor: pointer;
}
button.anhh-blog-tag:hover,
.anhh-blog-tag.active {
  background: var(--anhh-accent);
  color: #fff;
}
.anhh-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.anhh-blog-card {
  background: var(--anhh-bg-elevated);
  border: 1px solid var(--anhh-border-color);
  border-radius: var(--anhh-radius-lg);
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.anhh-blog-card:hover {
  border-color: var(--anhh-accent-border);
  transform: translateY(-2px);
}
.anhh-blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--anhh-text-primary);
  margin-bottom: 8px;
}
.anhh-blog-card-date {
  font-size: 13px;
  color: var(--anhh-text-muted);
  margin-bottom: 12px;
}
.anhh-blog-card-excerpt {
  font-size: 14px;
  color: var(--anhh-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.anhh-blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.anhh-blog-card-tags .anhh-blog-tag {
  cursor: default;
  font-size: 12px;
  padding: 2px 10px;
}
.anhh-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.anhh-blog-page-btn {
  background: var(--anhh-bg-elevated);
  border: 1px solid var(--anhh-border-color);
  border-radius: var(--anhh-radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--anhh-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--anhh-font-family);
}
.anhh-blog-page-btn:hover {
  border-color: var(--anhh-accent);
  color: var(--anhh-accent);
}
.anhh-blog-page-btn.active {
  background: var(--anhh-accent);
  border-color: var(--anhh-accent);
  color: #fff;
}
@media (max-width: 768px) {
  .anhh-blog-container { padding: 0 16px 48px; }
  .anhh-blog-grid { grid-template-columns: 1fr; }
}

/* ========== Blog Post ========== */
.anhh-blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
}
.anhh-blog-back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--anhh-accent);
  text-decoration: none;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.anhh-blog-back-link:hover {
  opacity: 0.8;
}
.anhh-blog-post-header {
  margin-bottom: 40px;
}
.anhh-blog-post-header .anhh-section-title {
  text-align: left;
  margin-bottom: 16px;
}
.anhh-blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .anhh-blog-post-container { padding: 0 16px; }
}

/* ========== Homepage Announcement Widget ========== */
.anhh-announcement-widget {
  max-width: var(--anhh-max-width);
  margin: 0 auto;
  padding: 48px 48px;
}
.anhh-announcement-widget-inner {
  background: var(--anhh-bg-elevated);
  border: 1px solid var(--anhh-accent-border);
  border-left: 4px solid var(--anhh-accent);
  border-radius: var(--anhh-radius-lg);
  box-shadow: var(--anhh-shadow-sm);
  overflow: hidden;
}
.anhh-announcement-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  cursor: pointer;
  transition: background 0.2s;
}
.anhh-announcement-widget-header:hover {
  background: var(--anhh-bg-surface);
}
.anhh-announcement-widget-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}
.anhh-announcement-widget-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.anhh-announcement-widget-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--anhh-bg);
  background: var(--anhh-accent);
  padding: 4px 12px;
  border-radius: var(--anhh-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.anhh-announcement-widget-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--anhh-text-primary);
  line-height: 1.4;
}
.anhh-announcement-widget-date {
  font-size: 13px;
  color: var(--anhh-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.anhh-announcement-widget-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--anhh-radius-md);
  background: var(--anhh-bg-surface);
  border: 1px solid var(--anhh-border-color);
  color: var(--anhh-text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.anhh-announcement-widget-toggle svg {
  transition: transform 0.3s ease;
}
.anhh-announcement-widget.open .anhh-announcement-widget-toggle svg {
  transform: rotate(180deg);
}
.anhh-announcement-widget-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.anhh-announcement-widget.open .anhh-announcement-widget-body {
  grid-template-rows: 1fr;
}
.anhh-announcement-widget-body-wrap {
  overflow: hidden;
}
.anhh-announcement-widget-body-inner {
  padding: 0 28px 20px;
  border-top: 1px solid var(--anhh-border-color);
  font-size: 15px;
  color: var(--anhh-text-secondary);
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}
.anhh-announcement-widget-body-inner p { margin-top: 16px; margin-bottom: 0; }
.anhh-announcement-widget-body-inner a { color: var(--anhh-accent); text-decoration: underline; word-break: break-all; }
.anhh-announcement-widget-body-inner strong { color: var(--anhh-text-primary); }
.anhh-announcement-widget-footer {
  padding: 0 28px 20px;
  display: flex;
  justify-content: flex-end;
}
.anhh-announcement-widget-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--anhh-bg);
  background: var(--anhh-accent);
  padding: 8px 20px;
  border-radius: var(--anhh-radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.anhh-announcement-widget-link:hover {
  opacity: 0.85;
}
/* Light mode: accent buttons use dark text by default via var(--anhh-bg) */
/* Dark mode: --anhh-bg is #0a1628 which is dark enough for contrast on green */
@media (max-width: 768px) {
  .anhh-announcement-widget { padding: 0 16px 32px; }
  .anhh-announcement-widget-inner { border-left: none; border-top: 4px solid var(--anhh-accent); }
  .anhh-announcement-widget-header { flex-direction: column; text-align: center; padding: 20px; }
  .anhh-announcement-widget-content { justify-content: center; flex-direction: column; gap: 8px; }
  .anhh-announcement-widget-actions { justify-content: center; }
  .anhh-announcement-widget-body-inner { padding: 0 20px 20px; }
  .anhh-announcement-widget-footer { padding: 0 20px 20px; justify-content: center; }
}
