/* IE11-specific fixes for User Guide pages */
/* Since app.css is not loaded for IE browsers on User Guide pages,
   this file needs to include all necessary styles */

/* Font declarations for IE11 - WOFF format only (not referenced in main CSS) */
@font-face {
  font-family: 'Source Sans Pro';
  src: url('/fonts/SourceSansPro/SourceSans3-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
} 

@font-face {
  font-family: 'Source Sans Pro';
  src: url('/fonts/SourceSansPro/SourceSans3-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans Pro';
  src: url('/fonts/SourceSansPro/SourceSans3-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* IE11-specific styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', -ms-system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #ffffff;
  background-color: #030b19;
}

/* IE11 layout fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  
  /* Top menu bar - always visible */
  .text-white.w-full.sticky.z-50,
  .relative.overflow-hidden > div:first-child {
    position: relative;
    display: block;
    width: 100%;
    background-color: rgba(3, 11, 25, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
  }
  
  /* Top menu items */
  .lg\:block.hidden,
  .lg\:block {
    display: block !important;
  }
  
  /* Hide mobile menu */
  .lg\:hidden {
    display: none !important;
  }
  
  /* Top menu links container */
  .flex.gap-6,
  ul.flex.flex-1.justify-center.items-center.gap-6 {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }
  
  /* Top menu links */
  .flex.gap-6 > li,
  ul.flex.flex-1.justify-center.items-center.gap-6 > li {
    display: inline-block;
    margin: 0 10px;
  }
  
  /* Top menu link text */
  .flex.gap-6 a,
  ul.flex.flex-1.justify-center.items-center.gap-6 a {
    display: inline-block;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 16px;
  }
  
  /* Submenu styling - moderate width */
  .absolute.left-1\/2.-translate-x-1\/2.top-full.flex.flex-col.gap-1.mt-2.px-2.py-2.rounded-xl.border.border-white\/10,
  .group-hover\:opacity-100,
  .group-hover\:visible,
  .group-hover\:translate-y-0,
  .group .absolute,
  li.group.relative .absolute {
    width: 220px !important; /* Reduced from 300px */
    min-width: 220px !important;
    max-width: 220px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background-color: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Submenu items - icon and label on same line */
  .absolute.left-1\/2.-translate-x-1\/2.top-full a,
  .group-hover\:opacity-100 a,
  .group .absolute a,
  li.group.relative .absolute a {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
  }
  
  /* Icon in submenu items */
  .absolute.left-1\/2.-translate-x-1\/2.top-full a svg,
  .group-hover\:opacity-100 a svg,
  .group .absolute a svg,
  li.group.relative .absolute a svg,
  .absolute.left-1\/2.-translate-x-1\/2.top-full a img,
  .group-hover\:opacity-100 a img,
  .group .absolute a img,
  li.group.relative .absolute a img,
  .absolute.left-1\/2.-translate-x-1\/2.top-full a .mr-2,
  .group-hover\:opacity-100 a .mr-2,
  .group .absolute a .mr-2,
  li.group.relative .absolute a .mr-2 {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
  }
  
  /* Submenu item hover */
  .absolute.left-1\/2.-translate-x-1\/2.top-full a:hover,
  .group-hover\:opacity-100 a:hover,
  .group .absolute a:hover,
  li.group.relative .absolute a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Base link styles */
  a {
    color: #ffffff;
  }
  
  a:hover {
    opacity: 0.7;
  }
  
  /* Remove underlines from navigation links */
  .text-white.w-full.sticky.z-50 a,
  .product-page .flex.justify-center.gap-x-4.gap-y-2.flex-wrap a,
  .product-page .text-white a,
  .ie-selected-plugin,
  .flex.items-center.px-3.py-2,
  .flex.items-center.text-base.px-4.py-2 {
    text-decoration: none !important;
  }
  
  /* Only keep underlines for content links */
  #pp-content a {
    text-decoration: underline;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
  }
  
  /* User guide page layout fixes */
  .product-page {
    width: 100%;
  }
  
  /* Header section with product info */
  .product-page .py-20 {
    padding-top: 30px !important;
    padding-bottom: 10px !important; /* Reduced from 20px to 10px */
    background: linear-gradient(to bottom right, #0284c7, #172554);
    width: 100%;
    position: relative;
  }
  
  /* Navigation bar */
  .product-page .bg-black.py-2\.5 {
    padding-top: 10px !important; /* Reduced from 15px to 10px */
    margin-top: 0 !important; /* Reduced from 10px to 0 */
    background-color: #000000;
    width: 100%;
  }
  
  /* Container for content */
  .max-w-screen-xl {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .max-w-screen-lg {
    max-width: 1024px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Product title and description */
  .product-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .product-page .mt-6 {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  @media (min-width: 768px) {
    .product-page h1 {
      text-align: left;
      font-size: 3rem;
    }
    
    .product-page .mt-6 {
      text-align: left;
      font-size: 1.5rem;
    }
  }
  
  /* Icons and buttons section */
  /* Create a table-like layout for the parent container */
  .product-page .text-white {
    display: table;
    width: 100%;
  }
  
  /* Make the icon container and button container display as table cells */
  .product-page .flex.flex-col.gap-2.md\:items-start.items-center.my-8 {
    display: table-cell;
    vertical-align: middle;
    width: 250px;
    padding-right: 20px;
  }
  
  .product-page .flex.gap-4.flex-row.items-center.justify-center.md\:justify-start {
    display: table-cell;
    vertical-align: middle;
    width: auto;
  }
  
  /* Make the icon rows display horizontally */
  .product-page .flex.gap-2.outOfUserTextSelection {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 5px;
  }
  
  /* Make the individual icon containers display inline */
  .product-page .bg-white\/20.rounded-xl.border.border-white\/10.p-1\.5.min-w-12.flex.items-center.justify-center.shadow-lg {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.375rem;
    min-width: 3rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  }
  
  /* Style for icons */
  .product-page .bg-white\/20 img,
  .ie-dotted-list-bullet img {
    height: 2rem !important; /* Bigger icons */
    width: auto !important;
    /* object-fit not supported in IE11 */
    /* object-fit: contain; */
    max-width: 100% !important;
  }
  
  @media (min-width: 1024px) {
    .product-page .bg-white\/20 img,
    .ie-dotted-list-bullet img {
      height: 2.5rem !important; /* Bigger icons for large screens */
    }
  }
  
  /* Style for buttons */
  .product-page .border.inline-block.font-semibold.transition.text-center {
    display: inline-block;
    margin-right: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
  }
  
  /* Add margin-top to the download button */
  .product-page .inline-block.relative a.border.inline-block.font-semibold.transition.text-center {
    margin-top: 4px;
  }
  
  @media (min-width: 1024px) {
    .product-page .border.inline-block.font-semibold.transition.text-center {
      padding: 1rem 2rem;
    }
  }
  
  /* Primary button (white background) */
  .product-page .bg-white.text-black {
    background-color: #ffffff;
    color: #000000;
    border-color: transparent;
  }
  
  .product-page .bg-white.text-black:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  /* Secondary button (white border) */
  .product-page .border-white.text-white {
    border: 1px solid #ffffff;
    color: #ffffff;
  }
  
  .product-page .border-white.text-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }
  
  /* Free version text */
  .product-page .absolute.w-full.text-center.text-xs {
    display: none !important; /* Hide "FREE version included" text in IE11 */
  }
  
  /* Hide YouTube video in product pages */
  .product-page .max-w-sm.justify-self-center.w-full.md\:max-w-full,
  .product-page lite-youtube {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Navigation bar styling */
  .product-page .flex.justify-center.gap-x-4.gap-y-2.flex-wrap {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
    /* gap property not supported in IE11 */
    /* gap: 0.5rem 1rem; */
  }
  
  /* Add margin to navigation items to simulate gap */
  .product-page .flex.justify-center.gap-x-4.gap-y-2.flex-wrap > * {
    margin: 0.25rem 0.5rem;
  }
  
  /* Navigation links */
  .product-page .flex.items-center.text-base.px-4.py-2.rounded-lg.font-semibold.transition {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s ease;
    text-decoration: none;
  }
  
  /* Navigation link hover */
  .product-page .hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Active navigation link */
  .product-page .bg-white.text-black,
  .ie-selected-plugin {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  
  /* Navigation link icons */
  .product-page .-ml-1.mr-2 {
    margin-left: -0.25rem;
    margin-right: 0.5rem;
  }
  
  /* Content section */
  #pp-content {
    padding-bottom: 2.5rem;
  }
  
  /* Section headings */
  #pp-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0 !important; /* Reduced */
  }
  
  #pp-content h4 {
    margin-top: 0 !important; /* Reduced */
  }

  /* Section container */
  #pp-content .w-\[fit-content\] {
    /* fit-content not supported in IE11 */
    /* width: -moz-fit-content;
    width: fit-content; */
    width: auto;
    display: table;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
  }
  
  /* FAQ section */
  .faq-question {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    background-color: transparent !important;
  }
  
  /* Remove white background from FAQ question buttons */
  .faq-question button {
    background-color: transparent !important;
    color: #ffffff !important;
  }
  
  .faq-answer {
    margin-left: 1.5rem;
    display: block !important; /* Force answers to be visible by default */
  }
  
  /* Hide the collapse/expand icons in IE11 */
  .faq-question .mr-2 {
    display: none !important;
  }

  /* Hide the download icon from download buttons for IE11 user guide */
  .download-simple-link::before {
    display: none !important;
  }

  /* Increase the size of FAQ question titles for better spacing */
  .faq-question button .font-semibold {
    font-size: 1.25rem !important; /* Increased from default to 1.25rem (20px) */
    line-height: 1.4 !important;
  }
  
  /* Add a visible answer for each question in IE11 */
  .faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Style the question text to look expanded */
  .faq-question button .font-semibold {
    color: #ffffff;
    font-weight: 700 !important;
    background-color: transparent !important;
    background: transparent !important;
  }

  /* Fix FAQ question button background and disable clicks for IE11 */
  .faq-question button > div {
    background-color: transparent !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  /* Hide "Expand all questions" button in IE11 */
  .ie-hide-expand-button {
    display: none !important;
  }
  
  /* Force FAQ answers to be visible */
  .ie-faq-answer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0.5rem 0 1rem 0 !important;
    padding-left: 1.5rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  /* FAQ items */
  .bg-slate-800\/75 {
    background-color: rgba(30, 41, 59, 0.75);
  }
  
  .hover\:bg-slate-700\/50:hover {
    background-color: rgba(51, 65, 85, 0.5);
  }
  
  .rounded-xl {
    border-radius: 0.75rem;
  }
  
  .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Link colors */
  .text-white\/25 {
    color: rgba(255, 255, 255, 0.25);
  }
  
  .hover\:text-white\/50:hover {
    color: rgba(255, 255, 255, 0.5);
  }
  
  /* List styling */
  #pp-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
  }
  
  #pp-content li {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  #pp-content li .mr-2 {
    margin-right: 0.5rem;
    -ms-flex-item-align: start;
    align-self: flex-start;
    margin-top: 0.5rem;
  }
  
  /* Link styling in content */
  #pp-content a {
    text-decoration: underline;
    transition: all 0.15s ease;
  }
  
  #pp-content a:hover {
    opacity: 0.7;
  }
  
  /* Blog post grid */
  .grid {
    /* CSS Grid not fully supported in IE11, using table layout instead */
    display: block;
    width: 100%;
    /* gap not supported in IE11 */
    /* gap: 1.5rem; */
    margin: 0 -0.75rem;
    font-size: 0; /* Remove whitespace between inline-block elements */
  }
  
  /* Grid items */
  .grid > * {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1rem; /* Reset font size */
  }
  
  @media (min-width: 1024px) {
    .grid > * {
      width: 50%;
    }
  }
  
  /* Blog post item layout - more aggressive targeting */
  .grid > * {
    display: table !important;
    width: 100% !important;
  }
  
  /* Target any div that might contain the image */
  .grid > * > div:first-child,
  .grid > * > a:first-child,
  .grid > * > article > div:first-child,
  .grid > * > article > a:first-child {
    display: table-cell !important;
    vertical-align: top !important;
    width: 150px !important;
    padding-right: 15px !important;
  }
  
  /* Target any div that might contain the content */
  .grid > * > div:nth-child(2),
  .grid > * > article > div:nth-child(2) {
    display: table-cell !important;
    vertical-align: top !important;
    width: auto !important;
  }
  
  /* Force all images to have proper dimensions */
  .grid img {
    max-width: 150px !important;
    height: auto !important;
  }
  
  /* Ensure text content has proper spacing */
  .grid h3, .grid h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .grid p {
    margin-top: 0 !important;
  }
  
  /* Remove underlines from flat blog post links */
  .ie-flat-blog-link {
    text-decoration: none !important;
  }
  
  /* Also target any links inside the flat blog post preview */
  .flat-blog-post-card a {
    text-decoration: none !important;
  }
  
  /* Ultra-aggressive fix for dotted lists in IE11 */
  .ie-dotted-list {
    margin-top: 1rem !important;
    padding-left: 0 !important;
    list-style-type: none !important;
  }
  
  .ie-dotted-list-item {
    display: block !important;
    margin-bottom: 0.5rem !important;
    position: relative !important;
    padding-left: 15px !important; /* Space for the bullet */
  }
  
  /* Hide the original bullet container */
  .ie-dotted-list-bullet {
    display: none !important;
  }
  
  /* Add a simple bullet using pseudo-element */
  .ie-dotted-list-item:before {
    content: "•" !important;
    color: #1642ad !important; /* Blue color */
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
  }
  
  /* Style the content container */
  .ie-dotted-list-content {
    display: inline !important;
  }
}
