/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Base font size: 62.5% = 10px (assuming browser default of 16px) */
html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem; /* 16px */
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem;
  max-width: 120rem;
  margin: 0 auto;
  min-height: 5.6rem;
}

/* ===== Site Logo ===== */
.site-logo {
  flex-shrink: 1;
  min-width: 0;
  max-width: 80%;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

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

@media (min-width: 821px) {
  .site-logo {
    flex-shrink: 0;
    max-width: none;
  }
}

.site-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary, #3B82F6);
}

/* ===== Site Nav ===== */
.site-nav {
  display: contents;
}

@media (min-width: 821px) {
  .site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }
}

/* ===== Nav Home Icon (desktop only) ===== */
.nav-home {
  display: none;
  padding: 1rem;
  color: var(--brand-primary, #d4a017);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-home:hover {
  opacity: 0.7;
}

@media (min-width: 821px) {
  .nav-home {
    display: flex;
    align-items: center;
  }
}

/* ===== Nav Auth Icon (Login / Logout) ===== */
.nav-auth {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  color: var(--brand-primary, #3B82F6);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-auth:hover {
  opacity: 0.7;
}

/* ===== Site Layout ===== */
.site-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 120rem;
  margin: 0 auto;
  width: 100%;
}

/* ===== Sidebar (hidden on mobile) ===== */
.site-sidebar {
  display: none;
}

.sidebar-widget {
  padding: 1.6rem;
}

.sidebar-widget + .sidebar-widget {
  padding-top: 0;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--brand-primary, #3B82F6);
  color: #fff;
  text-decoration: none;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 1.4rem;
  transition: opacity 0.2s;
  justify-content: center;
}

.btn-primary:hover {
  opacity: 0.9;
}

.banner-placeholder {
  background: #f3f4f6;
  border: 0.1rem dashed #d1d5db;
  border-radius: 0.6rem;
  padding: 3rem;
  text-align: center;
  color: #9ca3af;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  color: #6b7280;
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--brand-primary, #3B82F6);
}

/* ===== Main Content ===== */
.site-main {
  flex: 1;
  padding: 0;
}


/* ===== Site Footer ===== */
.site-footer {
  padding: 2rem 1.6rem;
  text-align: center;
  font-size: 1.4rem;
  color: #6b7280;
}

.footer-info p {
  margin: 0 0 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-primary, #3B82F6);
}

/* ===== Devise Page (centered auth layout) ===== */
.devise-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.6rem;
  min-height: 100vh;
}

.devise-logo {
  margin-bottom: 2rem;
  text-align: center;
}

.devise-logo a {
  text-decoration: none;
  color: inherit;
}

.devise-logo img {
  max-width: 28rem;
  max-height: 6rem;
  width: auto;
  height: auto;
}

.devise-logo .site-name {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand-primary, #3B82F6);
}

/* ===== Auth Container ===== */
.auth-container {
  width: 100%;
  padding: 2rem 3rem;
  box-sizing: border-box;
}

@media (min-width: 821px) {
  .auth-container {
    width: 33.333%;
    padding: 2rem;
  }
}

/* ===== Inline Images ===== */
.img-right {
  float: right;
  margin: 0 0 1.6rem 2rem;
  max-width: 55%;
  height: auto;
  border-radius: 0.4rem;
}

.img-left {
  float: left;
  margin: 0 2rem 1.6rem 0;
  max-width: 55%;
  height: auto;
  border-radius: 0.4rem;
}

@media (max-width: 820px) {
  .img-right,
  .img-left {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 0 1.6rem 0;
  }
}

/* ===== Affiliate Disclosure ===== */
.affiliate-disclosure {
  font-style: italic;
  font-size: 1.4rem;
  border: 0.1rem dashed #e3e3e3;
  padding: 1rem;
  margin: 2em 0;
}

/* ===== Featured Quote ===== */
.featured-quote {
  margin: 2rem auto 3rem;
  max-width: 72rem;
}

.featured-quote .quote-icon {
  display: inline;
  width: 2.4rem;
  height: 2.4rem;
  fill: var(--brand-primary, #6b7280);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.featured-quote p {
  font-style: italic;
  color: #b5b5b5;
  font-size: 1.7rem;
  line-height: 1.8;
  margin: 0;
}

/* ===== Accordion ===== */
.accordion-item {
  background: #222222;
  margin-bottom: 0.2rem;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.4rem 1.6rem;
  background: none;
  border: none;
  color: var(--brand-primary, #d4a017);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1.6rem;
}

.accordion-body {
  display: none;
  padding: 0 1.6rem 1.4rem;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.7;
}

.accordion-body--open {
  display: block;
}

.accordion-body a {
  color: var(--brand-primary, #d4a017);
}

/* ===== Feature Cards (2-column image + text links) ===== */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.4rem;
}

.feature-card .feature-card-label {
  margin-top: 0.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* ===== Desktop Layout ===== */
@media (min-width: 821px) {
  .site-layout {
    flex-direction: row;
  }

  .site-main {
    flex: 1;
    min-width: 0;
  }
}
