/**
 * Responsive Styles for Comparison Landing Page
 * Mobile-first responsive design
 */

/* ===================================
   MOBILE BREAKPOINTS
   =================================== */
/* Mobile: 320px - 767px */
/* Tablet: 768px - 1023px */
/* Desktop: 1024px+ */

/* ===================================
   GLOBAL STYLES (ALL DEVICES)
   =================================== */

/* Bold feature items - applies to all screen sizes */
.cm-features-item.is-bold {
  font-weight: 600 !important;
}

/* Standardized logo sizing for all comparison cards */
.cm-product-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
  margin: 0 auto;
}

.cm-product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Popup close button positioning */
.popup__strip.popup__strip-inside {
  margin-top: 15px;
}

.popup__strip--text {
  cursor: pointer !important;
  font-weight: bold !important;
  color: #000000 !important;
  transition: color 0.3s ease !important;
}

.popup__strip--text:hover {
  color: #29b67a !important;
}

/* ===================================
   COMPARISON CARDS - MOBILE OPTIMIZATION
   =================================== */

/* Mobile: Stack comparison cards vertically */
@media screen and (max-width: 767px) {
  /* Comparison table container */
  .vuejs-line-view-desktop {
    overflow-x: visible;
    padding: 20px 10px;
  }

  .cm {
    padding: 0;
  }

  .cm-wrapper {
    overflow: visible;
  }

  .cm-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Individual card wrapper */
  .cm-row-wrapper {
    width: 100%;
    margin-bottom: 0;
  }

  /* Card row */
  .cm-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Card columns - stack vertically */
  .cm-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .cm-col:last-child {
    border-bottom: none;
  }

  /* Rank number */
  .cm-col:first-child {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
  }

  .cm-col__num {
    font-size: 28px;
    font-weight: 700;
    color: #084fad;
  }

  /* Logo section */
  .cm-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
  }

  .cm-most-popular__badge {
    margin-bottom: 15px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
  }

  .cm-product-image-wrapper {
    width: 200px;
    height: 80px;
    margin: 0 auto;
  }

  /* Features list */
  .cm-col:nth-child(3) {
    padding: 20px 15px;
  }

  .cm-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .cm-features-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .cm-features-item:last-child {
    margin-bottom: 0;
  }

  .cm-features-item svg {
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 3px;
    width: 15px;
    height: 11px;
  }

  .cm-features-item svg .cls-1 {
    fill: #69bb01;
  }

  .cm-features-item span {
    flex: 1;
  }

  /* Score section */
  .cm-col:nth-child(4) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
  }

  .cm-score {
    width: 100%;
    margin-bottom: 15px;
  }

  .cm-score__num {
    font-size: 36px;
    font-weight: 700;
    color: #084fad;
    margin-bottom: 8px;
  }

  .cm-score-text {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-bottom: 5px;
  }

  .cm-score__wrapper {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
  }

  .rate {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
  }

  .rate span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #69bb01 0%, #8bc34a 100%);
    border-radius: 4px;
  }

  .cm-cta-info {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.4;
  }

  /* CTA section */
  .cm-col:nth-child(5) {
    padding: 20px 15px;
    background: #f8f9fa;
  }

  .cm-col-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-main {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #084fad 0%, #0459cb 100%);
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .cta-main:hover {
    background: linear-gradient(135deg, #0459cb 0%, #084fad 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 79, 173, 0.3);
  }

  .cta-main span {
    color: #fff !important;
  }

  .cta-main-percentage {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    padding: 0;
  }
}

/* ===================================
   TABLET OPTIMIZATION
   =================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .cm-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    padding: 20px;
  }

  .cm-col:first-child {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cm-col:nth-child(2) {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cm-col:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .cm-col:nth-child(4) {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cm-col:nth-child(5) {
    grid-column: 3 / 4;
  }

  .cm-features-item {
    font-size: 13px;
  }
}

/* ===================================
   HERO SECTION RESPONSIVE
   =================================== */

/* Global hero section overrides - ensure consistent left alignment */
.hero__container {
  text-align: left !important;
}

.hero__text {
  text-align: left !important;
}

.hero__title {
  text-align: left !important;
}

.hero__list {
  text-align: left !important;
}

.hero__item {
  text-align: left !important;
}

.hero__item span {
  text-align: left !important;
}

/* Desktop hero section */
@media screen and (min-width: 1024px) {
  .hero__container {
    padding: 40px 20px;
  }

  .hero {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero__image {
    flex: 0 0 auto;
    max-width: 50%;
  }

  .hero__image-desktop {
    display: block;
  }

  .hero__image-mobile {
    display: none;
  }

  .hero__text {
    flex: 1;
  }

  .hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px;
    color: #292929;
  }

  .hero__title--bold {
    font-weight: 700;
  }

  .hero__title span {
    display: block;
  }

  .hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .hero__item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #292929;
  }

  .hero__item:last-child {
    margin-bottom: 0;
  }

  .hero__item.hero__list--sm {
    font-size: 16px;
  }

  .hero__item i {
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__item span {
    flex: 1;
    text-align: left;
  }

  .hero__item svg {
    width: 17px;
    height: auto;
    display: block;
  }

  .hero__item svg path {
    fill: #008FFD;
  }

  .date {
    font-weight: 600;
    color: #084fad;
  }
}

/* Tablet hero section */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .hero__container {
    padding: 30px 20px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .hero__image {
    width: 100%;
    margin-bottom: 25px;
  }

  .hero__image-desktop {
    display: block;
  }

  .hero__image-mobile {
    display: none;
  }

  .hero__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .hero__text {
    width: 100%;
    text-align: left;
  }

  .hero__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    color: #292929;
    text-align: left;
  }

  .hero__title--bold {
    font-weight: 700;
  }

  .hero__title span {
    display: block;
  }

  .hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .hero__item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #292929;
  }

  .hero__item:last-child {
    margin-bottom: 0;
  }

  .hero__item.hero__list--sm {
    font-size: 15px;
  }

  .hero__item i {
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__item span {
    flex: 1;
    text-align: left;
  }

  .hero__item svg {
    width: 17px;
    height: auto;
    display: block;
  }

  .hero__item svg path {
    fill: #008FFD;
  }

  .date {
    font-weight: 600;
    color: #084fad;
  }
}

/* Mobile hero section */
@media screen and (max-width: 767px) {
  .hero__container {
    padding: 0;
    margin-bottom: 30px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  /* Hide desktop image on mobile */
  .hero__image-desktop {
    display: none !important;
  }

  /* Show mobile image */
  .hero__image-mobile {
    display: block !important;
    width: 100%;
    margin: 0;
  }

  .hero__image-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Hero text section */
  .hero__text {
    width: 100%;
    padding: 25px 20px;
    background: #fff;
  }

  .hero__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    color: #292929;
    text-align: left;
  }

  .hero__title--bold {
    font-weight: 700;
  }

  .hero__title span {
    display: block;
  }

  /* Hero list */
  .hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .hero__item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #292929;
  }

  .hero__item:last-child {
    margin-bottom: 0;
  }

  .hero__item.hero__list--sm {
    font-size: 14px;
  }

  .hero__item i {
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__item span {
    flex: 1;
    text-align: left;
  }

  .hero__item svg {
    width: 16px;
    height: auto;
    display: block;
  }

  .hero__item svg path {
    fill: #008FFD;
  }

  /* Date styling */
  .date {
    font-weight: 600;
    color: #084fad;
  }
}

/* ===================================
   HEADER RESPONSIVE
   =================================== */

/* Hide hamburger menu on all devices (no menu links) */
.hamburger {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .header__container {
    padding: 15px;
  }

  .branding.logo-landing {
    gap: 6px !important;
  }

  .branding__logo svg {
    width: 20px;
    height: 20px;
  }

  #site-name-text {
    font-size: 14px !important;
  }

  .header__copy {
    font-size: 10px;
    text-align: center;
  }
}

/* ===================================
   PREVIEW/ARTICLE SECTION RESPONSIVE
   =================================== */

/* Desktop preview section */
@media screen and (min-width: 1024px) {
  .preview__content {
    padding-bottom: 60px;
  }
}

/* Tablet preview section */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .preview__content {
    padding-bottom: 40px;
  }
}

/* Mobile preview section */
@media screen and (max-width: 767px) {
  .preview {
    padding: 20px 15px;
  }

  .preview__content h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .preview__content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .preview__content ul,
  .preview__content ol {
    font-size: 14px;
    padding-left: 20px;
  }

  .preview__content ul li {
    margin-bottom: 10px;
  }
}

/* ===================================
   FOOTER RESPONSIVE
   =================================== */
@media screen and (max-width: 767px) {
  /* Center all text and links in footer on mobile */
  .footer__container {
    text-align: center !important;
  }

  .footer__botmenu-container {
    text-align: center !important;
    display: block !important;
  }

  .footer__botmenu-container * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer__content {
    padding: 15px 0;
    text-align: center;
  }

  .footer__menu {
    text-align: center !important;
  }

  .footer__menu a {
    font-size: 14px;
  }

  .footer__copyright {
    font-size: 11px;
    padding: 15px;
    text-align: center !important;
  }

  .footer__disclaimer-text {
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
  }
}

/* ===================================
   POPUP RESPONSIVE
   =================================== */
@media screen and (max-width: 767px) {
  .popup_content {
    max-width: 95%;
    margin: 20px auto;
  }

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

/* ===================================
   UTILITY CLASSES FOR MOBILE
   =================================== */
@media screen and (max-width: 767px) {
  .mobilehidden {
    display: none !important;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  /* Improve touch targets */
  a,
  button,
  .cta-main {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Better spacing for readability */
  h1,
  h2,
  h3,
  h4 {
    line-height: 1.3;
    margin-bottom: 15px;
  }

  p {
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

/* ===================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   =================================== */
@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .cta-main,
  button,
  a {
    -webkit-tap-highlight-color: rgba(8, 79, 173, 0.2);
  }
}

/* ===================================
   FOOTER COPYRIGHT RESPONSIVE
   =================================== */
/* Desktop & Tablet (768px+): Show copyright in footer__content, hide footer__botmenu-container */
@media (min-width: 768px) {
  .footer__botmenu-container {
    display: none !important;
  }
}

/* Mobile Only (max 767px): Hide copyright in footer__content, show footer__botmenu-container */
@media screen and (max-width: 767px) {
  .footer__copyright.mobilehidden {
    display: none !important;
  }

  .footer__content .footer__text {
    text-align: center !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}
