/* Styles for src/pages/fedramp-integrations.njk.
   Moved out of the template; the fedramp-<tag>-<n> classes replace former
   inline style attributes. Give them meaningful names when you next edit them. */

@layer site {
  /* Introduction Section */
  .fedramp-intro-section {
    background: var(--color-bg-light);
    padding: 40px 0;
  }

  .intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  }

  .intro-text h2 {
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
  }

  .intro-text .disclaimer {
    color: var(--color-text);
    font-size: 13px;
    font-style: italic;
    margin-top: 15px;
  }

  /* Logo Marquee Section */
  .logo-marquee-section {
    background: var(--color-white);
    padding: 40px 0;
    overflow: hidden;
  }

  .logo-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .logo-marquee-track {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
  }

  .logo-marquee-content {
    display: flex;
    gap: 60px;
    align-items: center;
    width: max-content;
    will-change: transform;
  }

  .marquee-right {
    animation: marquee-right 90s linear infinite;
  }

  .marquee-left {
    animation: marquee-left 90s linear infinite;
  }

  .logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: transparent;
    transition: all 0.3s ease;
  }

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

  .logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.4);
    opacity: 1;
    transition: all 0.3s ease;
  }

  .logo-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
  }

  @keyframes marquee-right {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100% / 3));
    }
  }

  @keyframes marquee-left {
    0% {
      transform: translateX(calc(-100% / 3));
    }
    100% {
      transform: translateX(0);
    }
  }

  /* Pause animation on hover */
  .logo-marquee-track:hover .logo-marquee-content {
    animation-play-state: paused;
  }

  /* Content Wrapper with Background */
  .fedramp-content-wrapper {
    background-color: var(--color-white);
    position: relative;
  }

  /* Category Filters */
  .fedramp-categories {
    background: transparent;
    padding: 40px 0 10px;
    position: relative;
    z-index: 1;
  }

  .fedramp-categories .container {
    max-width: 1600px;
  }

  .fr-categories {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .fr-categories .single-cat {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .fr-categories .single-cat:not(:last-child)::after {
    content: "|";
    color: var(--color-link);
    margin: 0 25px;
    font-size: 14px;
  }

  .fr-categories .single-cat :is(a, button) {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--color-link);
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
  }

  .fr-categories .single-cat:hover :is(a, button),
  .fr-categories .single-cat.active :is(a, button) {
    background: transparent;
    color: var(--color-link-hover);
    text-decoration: none;
  }

  /* Partners Section */
  .fedramp-partners-section {
    background: transparent;
    padding: 30px 0 60px;
    position: relative;
    z-index: 1;
  }

  .fedramp-partners-section .container {
    max-width: 1400px;
  }

  .category-section {
    margin-bottom: 40px;
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
  }

  .category-section:last-child {
    margin-bottom: 0;
  }

  .category-title {
    color: var(--color-heading);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 0;
  }

  .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 20px;
  }

  .partner-card {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
  }

  .partner-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }

  .partner-logo {
    background: var(--color-white);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
  }

  .partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .partner-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .partner-info h3 {
    color: var(--color-black);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.3;
  }

  .partner-links {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: auto;
  }

  .partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #f3f4f6;
    color: var(--color-link);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
  }

  .partner-link.website-icon {
    flex: 0 0 auto;
    width: 36px;
    padding: 8px;
  }

  .partner-link.website-full {
    flex: 1;
  }

  .partner-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-on-bright);
    text-decoration: none;
  }

  .partner-link.marketplace {
    background-color: #ff9900;
    color: var(--color-on-bright);
  }

  .partner-link.marketplace:hover {
    background-color: #ec7211;
  }

  .partner-link svg {
    flex-shrink: 0;
  }

  /* Responsive */
  @media (max-width: 980px) {
    .intro-text h2 {
      font-size: 20px;
    }

    .logo-marquee-section {
      padding: 30px 0;
    }

    .logo-marquee-content {
      gap: 40px;
    }

    .logo-item {
      width: 150px;
      height: 70px;
    }

    .partners-grid {
      grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
      gap: 15px;
    }

    .category-title {
      font-size: 18px;
    }
  }

  @media (max-width: 767px) {
    .fedramp-intro-section {
      padding: 30px 0;
    }

    .intro-text h2 {
      font-size: 18px;
    }

    .logo-marquee-section {
      padding: 20px 0;
    }

    .logo-marquee-content {
      gap: 30px;
    }

    .logo-item {
      width: 120px;
      height: 60px;
      padding: 10px;
    }

    .fr-categories {
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      padding: 0 20px;
      -webkit-overflow-scrolling: touch;
    }

    .fr-categories .single-cat {
      white-space: nowrap;
    }

    .fr-categories .single-cat:not(:last-child)::after {
      margin: 0 10px;
    }

    .fr-categories .single-cat :is(a, button) {
      font-size: 13px;
    }

    .partners-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .partner-logo {
      height: 100px;
      padding: 15px;
    }

    .partner-logo img {
      max-height: 60px;
    }

    .partner-info {
      padding: 12px;
    }

    .partner-info h3 {
      font-size: 13px;
      margin-bottom: 10px;
    }

    .partner-link {
      font-size: 11px;
      padding: 6px 10px;
    }

    .category-section {
      margin-bottom: 30px;
      padding: 20px;
    }

    .category-title {
      font-size: 16px;
      margin-bottom: 15px;
    }
  }
}
