/* ==========================================================================
   PasswordsKit - Main Application & Theme Styles
   ========================================================================== */

/* --- Site Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-ink);
}

.brand-link:hover {
  text-decoration: none;
  color: var(--color-ink);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-secondary);
  transition: color 0.15s ease;
}

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

.nav-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--color-border);
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  color: var(--color-ink);
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background-color: var(--color-subtle);
  transform: translateY(-2px);
}

.social-icon-btn img, .social-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}

.mobile-menu.is-open {
  display: flex;
}

@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* --- Hero Section --- */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: center;
  background: #FFFFFF;
}

.hero-pill-badge {
  display: inline-block;
  background-color: var(--color-subtle);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  transform: rotate(3deg);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease;
}

.hero-pill-badge:hover {
  transform: rotate(0deg) scale(1.04);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .text-accent {
  color: var(--color-accent);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-ink-secondary);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.store-buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  border-radius: var(--radius-md);
}

.store-badge-link:hover {
  transform: translateY(-3px) scale(1.04);
}

.store-badge-link img {
  height: 52px;
  width: auto;
}

/* --- Screenshots Showcase Slider --- */
.showcase-section {
  padding: 2.5rem 0 5rem;
  overflow: hidden;
  background-color: #FFFFFF;
}

.section-label-center {
  text-align: center;
  margin-bottom: 0.6rem !important;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem !important;
}

.screenshots-slider-container {
  position: relative;
  width: 100%;
}

.screenshots-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  padding: 24px 1.5rem 36px;
  scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 250px;
  scroll-snap-align: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-mockup);
  border: 4px solid #1E293B;
  background-color: #0F172A;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -4px rgba(37, 99, 235, 0.25), 0 10px 20px -4px rgba(15, 23, 42, 0.2);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Utilities: Margins --- */
.mt-5 { margin-top: 3rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }

.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }

/* --- Privacy First Pillars --- */
.privacy-section {
  padding: 4.5rem 0 5rem;
  background-color: #FFFFFF;
}

.heading_div {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.h3_title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  color: #000000;
  margin: 8px 0;
}

@media (max-width: 640px) {
  .h3_title {
    font-size: 2.25rem;
  }
}

.core_features_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 860px) {
  .core_features_grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.core_feature_div {
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

.core_feature_image_div {
  border-radius: 56px;
  background: #2563EB;
  height: 94px;
  width: 94px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: none !important;
  border: none !important;
}

.core_feature_image {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.core_feature_description {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.bold {
  font-weight: 700;
  color: #000000;
}

/* --- Features Grid (And much more) --- */
.features-section {
  padding: 4.5rem 0 6rem;
  background-color: #FFFFFF;
}

.features_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 640px) {
  .features_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feature_item {
  transition: all 0.2s ease-in-out;
  background: #F2F4FB;
  padding: 30px;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: none !important;
  box-shadow: none !important;
}

.feature_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
  background: #F2F4FB;
}

.feature_image_div {
  height: fit-content;
  width: fit-content;
  padding-right: 8px;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.feature_image {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.feature_body {
  flex: 1;
}

.feature_title {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 4px;
  line-height: 1.3;
}

.feature_description {
  font-size: 15.5px;
  color: #000000;
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: 400;
}

/* --- CTA Banner Section --- */
.cta-banner-section {
  padding: 5rem 0 6rem;
}

.cta-banner-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  text-align: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.cta-banner-card h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner-card p {
  color: #94A3B8;
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* --- Blog System Styles --- */
.blog-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 4rem 0;
}

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

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--color-surface);
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--color-ink);
}

.blog-card-title a:hover {
  color: var(--color-accent);
}

.blog-card-excerpt {
  font-size: 0.925rem;
  color: var(--color-ink-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.825rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

/* Single Article Reading Experience */
.article-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.article-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.925rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.article-featured-image {
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-ink-secondary);
}

.article-content h2 {
  font-size: 1.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content ul, .article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--color-ink);
  margin: 1.75rem 0;
}

/* Gutenberg Pattern Styles */
.wp-pattern-security-callout {
  background-color: var(--color-surface);
  border: 1px solid var(--color-subtle-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.wp-pattern-security-callout h4 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-pattern-download-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.wp-pattern-download-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.wp-pattern-download-box.is-clean,
.download-container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 0;
  text-align: center;
  margin: 3rem 0;
}

.download-container h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.download-container p,
.wp-pattern-download-box p {
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* --- Static & Legal Pages --- */
.legal-page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.legal-content-wrap {
  padding-bottom: 5rem;
}

.legal-content-wrap section {
  margin-bottom: 2.25rem;
}

.legal-content-wrap h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.support-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 4rem auto 6rem;
  box-shadow: var(--shadow-sm);
}

.support-email-link {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 1rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0 2rem;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-ink);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --- Support Page (matches passwordskit.com/support) --- */
.full_height {
  text-align: center;
  min-height: calc(100vh - 350px);
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

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

.support-title {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-ink);
}

.email {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.email:hover {
  text-decoration: underline;
  opacity: 0.85;
}
