/* ============================================
   VBCard Article/Landing Pages — article-style.css
   Shared CSS for SEO article pages on vbcard.eu
   Uses design tokens from style.css :root
   ============================================ */

/* ========== 1. ARTICLE LAYOUT ========== */

.article-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-body {
  line-height: 1.8;
  font-size: 1.0625rem;
  color: #061A0F;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #061A0F;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

.article-body strong {
  color: #243D2E;
}

.article-body a {
  color: #358C68;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: #1A7A5B;
}

/* CTA & feature buttons override — fehér szöveg, nincs aláhúzás */
.article-body .article-cta-mid__button,
.article-body .article-cta-mid__button:hover,
.article-body .article-sidebar__button,
.article-body .article-sidebar__button:hover {
  color: #fff;
  text-decoration: none;
}

/* ========== 2. ARTICLE HERO SECTION (dark, guide-style) ========== */

.article-hero {
  background: linear-gradient(135deg, #243D2E 0%, #358C68 50%, #1A7A5B 100%);
  padding: 160px 1rem 60px;
}

.article-hero__inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-hero__breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.article-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-hero__breadcrumb a:hover {
  color: #fff;
}

.article-hero__breadcrumb span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.4);
}

.article-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 20px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.article-hero__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== 3. MID-ARTICLE CTA ========== */

.article-cta-mid {
  background: #F0FFF4;
  border-left: 4px solid #358C68;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 2.5rem 0;
}

.article-cta-mid__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #061A0F;
  margin-bottom: 0.5rem;
}

.article-cta-mid__text {
  font-size: 0.95rem;
  color: #243D2E;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-cta-mid__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1A7A5B, #00A67E);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.article-cta-mid__button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(26, 122, 91, 0.3);
}

.article-cta-mid__button:active {
  transform: scale(0.98);
}

/* ========== 4. FINAL CTA SECTION ========== */

.article-cta-final {
  background: linear-gradient(135deg, #243D2E 0%, #358C68 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
}

.article-cta-final__inner {
  max-width: 640px;
  margin: 0 auto;
}

.article-cta-final__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.article-cta-final__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.article-cta-final__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #243D2E;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.article-cta-final__button:hover {
  transform: scale(1.03);
  background: #F0FFF4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.article-cta-final__button:active {
  transform: scale(0.98);
}

/* ========== 5. STICKY SIDEBAR (desktop 1200px+) ========== */

.article-with-sidebar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-sidebar {
  display: none;
}

@media (min-width: 1200px) {
  .article-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
  .article-sidebar {
    display: block;
    position: sticky;
    top: 100px;
    height: fit-content;
  }
}

.article-sidebar__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
}

.article-sidebar__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #061A0F;
  margin-bottom: 0.5rem;
}

.article-sidebar__text {
  font-size: 0.85rem;
  color: #677169;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-sidebar__button {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #1A7A5B, #00A67E);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.article-sidebar__button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(26, 122, 91, 0.3);
}

/* ========== 6. TIP / INFO BOX ========== */

.article-tip {
  background: #F0FFF4;
  border-left: 4px solid #358C68;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-tip__icon {
  display: inline-flex;
  margin-right: 6px;
  font-size: 1.1rem;
}

.article-tip__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #358C68;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.article-tip strong {
  color: #243D2E;
}

/* ========== 7. COMPARISON TABLE ========== */

.article-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}

.article-table thead th {
  background: #243D2E;
  color: #fff;
  padding: 1rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.article-table thead th:first-child {
  border-top-left-radius: 12px;
}

.article-table thead th:last-child {
  border-top-right-radius: 12px;
}

.article-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E5E7EB;
  color: #061A0F;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:nth-child(even) {
  background: #FAFBFC;
}

.article-table tbody tr:hover {
  background: #F0FFF4;
  transition: background 0.2s ease;
}

.article-table .check {
  color: #358C68;
}

.article-table .cross {
  color: #F03A3A;
}

/* ========== 8. IMAGE / MOCKUP FIGURE ========== */

.article-figure {
  margin: 2rem 0;
  text-align: center;
}

.article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-figure figcaption {
  font-size: 0.85rem;
  color: #677169;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Narrow figure variant for QR codes, single screenshots */
.article-figure--narrow {
  max-width: 360px;
  margin-inline: auto;
}

/* Wide figure for panoramic screenshots (color, font, cover strips) */
.article-figure--wide {
  max-width: 100%;
}

.article-figure--wide img {
  border-radius: 16px;
}

/* ========== 9. CSS MOCKUP (App UI Preview) ========== */

.article-mockup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 2rem 0;
  max-width: 500px;
  margin-inline: auto;
}

.article-mockup__header {
  background: #243D2E;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-mockup__dots {
  display: flex;
  gap: 6px;
}

.article-mockup__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.article-mockup__dots span:nth-child(1) { background: #F03A3A; }
.article-mockup__dots span:nth-child(2) { background: #F5A623; }
.article-mockup__dots span:nth-child(3) { background: #10A24A; }

.article-mockup__title {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.article-mockup__body {
  padding: 1.5rem;
}

/* Phone frame variant */
.article-mockup--phone {
  max-width: 320px;
  border-radius: 28px;
  border: 3px solid #243D2E;
}

.article-mockup--phone .article-mockup__header {
  border-radius: 0;
  justify-content: center;
}

.article-mockup--phone .article-mockup__dots {
  display: none;
}

/* Card preview inside mockup */
.article-mockup__card {
  background: linear-gradient(135deg, #243D2E 0%, #358C68 100%);
  border-radius: 12px;
  padding: 1.25rem;
  color: #fff;
  text-align: center;
}

.article-mockup__card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.article-mockup__card-title {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.article-mockup__card-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.article-mockup__card-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ========== 10. STATS / NUMBERS ROW ========== */

.article-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.article-stat {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.article-stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: #358C68;
  line-height: 1.2;
}

.article-stat__label {
  font-size: 0.85rem;
  color: #677169;
  margin-top: 4px;
}

/* ========== 11. INTERNAL LINK CARDS ========== */

.article-related {
  margin: 3rem 0;
}

.article-related__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #061A0F;
  margin-bottom: 1rem;
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.article-related__card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-related__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.article-related__card-title {
  font-weight: 600;
  color: #061A0F;
  margin-bottom: 4px;
}

.article-related__card-desc {
  font-size: 0.85rem;
  color: #677169;
  line-height: 1.5;
}

/* ========== 12. SECTION HEADER WITH ICON (guide-style) ========== */

.article-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-section-header__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(53, 140, 104, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #358C68;
}

.article-section-header__icon i,
.article-section-header__icon svg {
  width: 24px;
  height: 24px;
}

.article-section-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #061A0F;
}

/* ========== 13. STEP CARDS (guide-style) ========== */

.article-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0;
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
}

.article-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  counter-increment: step-counter;
}

.article-step:hover {
  border-color: #C8DDD4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.article-step__number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #358C68, #1A7A5B);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-step__content {
  flex: 1;
  min-width: 0;
}

.article-step__title {
  font-weight: 700;
  font-size: 1rem;
  color: #061A0F;
  margin-bottom: 4px;
}

.article-step__text {
  font-size: 0.95rem;
  color: #677169;
  line-height: 1.6;
}

.article-step__text a {
  color: #358C68;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== 14. FEATURE CARD GRID ========== */

.article-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

.article-feature-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-feature-card:hover {
  border-color: #C8DDD4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.article-feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(53, 140, 104, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #358C68;
  margin-bottom: 12px;
}

.article-feature-card__icon i,
.article-feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.article-feature-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #061A0F;
  margin-bottom: 4px;
}

.article-feature-card__text {
  font-size: 0.85rem;
  color: #677169;
  line-height: 1.5;
}

/* ========== 15. CARD SCREENSHOT SHOWCASE ========== */

.article-card-showcase {
  margin: 2rem 0;
}

.article-card-showcase__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #358C68;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 12px;
}

.article-card-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.article-card-showcase__item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card-showcase__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

/* ========== 16. VISUAL DIVIDER ========== */

.article-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 3rem 0;
}

.article-divider::before,
.article-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8DDD4, transparent);
}

.article-divider__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(53, 140, 104, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #358C68;
  flex-shrink: 0;
}

.article-divider__icon i,
.article-divider__icon svg {
  width: 16px;
  height: 16px;
}

/* ========== 17. RESPONSIVE ADJUSTMENTS ========== */

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .article-hero {
    padding: 120px 1rem 40px;
  }
  .article-hero__title {
    font-size: 1.75rem;
  }
  .article-hero__subtitle {
    font-size: 1rem;
  }
  .article-body h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
  }
  .article-body h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
  }
  .article-body {
    font-size: 1rem;
  }
  .article-cta-mid {
    padding: 1.25rem;
    margin: 2rem 0;
  }
  .article-cta-final {
    padding: 3rem 1rem;
  }
  .article-cta-final__title {
    font-size: 1.5rem;
  }
  .article-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .article-stat {
    padding: 1rem;
  }
  .article-stat__number {
    font-size: 1.5rem;
  }
  .article-related__grid {
    grid-template-columns: 1fr;
  }
  .article-table {
    font-size: 0.85rem;
  }
  .article-table thead th {
    padding: 0.75rem;
  }
  .article-table tbody td {
    padding: 0.6rem 0.75rem;
  }
  .article-mockup {
    max-width: 100%;
  }
  .article-mockup--phone {
    max-width: 280px;
  }

  /* Section header icon — stack */
  .article-section-header {
    gap: 12px;
  }
  .article-section-header__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .article-section-header__icon i,
  .article-section-header__icon svg {
    width: 20px;
    height: 20px;
  }
  .article-section-header h2 {
    font-size: 1.4rem;
  }

  /* Feature grid — single column */
  .article-feature-grid {
    grid-template-columns: 1fr;
  }

  /* Step cards — compact */
  .article-step {
    padding: 16px;
    gap: 12px;
  }
  .article-step__number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }

  /* Card showcase — 2 columns */
  .article-card-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .article-card-showcase__item {
    border-radius: 8px;
  }
}

/* --- Medium screens (769px - 1199px) --- */
@media (min-width: 769px) and (max-width: 1199px) {
  .article-layout {
    max-width: 720px;
  }
  .article-hero__title {
    font-size: 2.25rem;
  }
  .article-card-showcase__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Large screens (1200px+): sidebar visible via section 5 media query --- */
@media (min-width: 1200px) {
  /* Hero container matches sidebar layout width so text aligns with article body */
  .article-hero .article-layout {
    max-width: 1120px;
  }
  .article-hero__title {
    max-width: 780px;
  }
  .article-hero__subtitle {
    max-width: 680px;
  }
}
