/**
 * Reportei Integrações - Frontend Styles
 * Alinhado com o design system do reportei.com
 */

/* ========================================
   Wrapper (evita herdar flex row do tema)
   ======================================== */

.reportei-integrations-wrapper {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.reportei-hero {
    background: linear-gradient(135deg, #1A3A6E 0%, #2F64E0 100%);
    padding: 64px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.reportei-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.reportei-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reportei-hero__title {
    font-family: "Quicksand", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.reportei-hero__subtitle {
    font-family: "Quicksand", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

.reportei-hero__description {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.6;
}

.reportei-hero__cta {
    margin-top: 8px;
}

.reportei-integrations-wrapper .reportei-hero__button,
.reportei-integrations-wrapper a.reportei-hero__button {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    background: #22C55E;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.reportei-integrations-wrapper .reportei-hero__button:hover,
.reportei-integrations-wrapper a.reportei-hero__button:hover {
    background: #16A34A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.reportei-integrations-wrapper .reportei-hero__button:visited,
.reportei-integrations-wrapper a.reportei-hero__button:visited {
    color: #ffffff;
}

.reportei-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reportei-hero__image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ========================================
   Page Container
   ======================================== */

.reportei-integrations-page {
    background: #F9FAFB;
    padding: 48px 0 64px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reportei-integrations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Filter Pills
   ======================================== */

.reportei-integrations-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.reportei-integrations-wrapper .filter-pill,
.reportei-integrations-wrapper button.filter-pill {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid #E8ECF0;
    border-radius: 12px;
    background: #fff;
    color: #455A64;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
    outline: none;
}

.reportei-integrations-wrapper .filter-pill:hover,
.reportei-integrations-wrapper button.filter-pill:hover {
    border-color: #2F64E0;
    color: #2F64E0;
    background: #fff;
}

.reportei-integrations-wrapper .filter-pill:focus-visible {
    border-color: #2F64E0;
    box-shadow: 0 0 0 2px rgba(47, 100, 224, 0.25);
}

.reportei-integrations-wrapper .filter-pill.active,
.reportei-integrations-wrapper button.filter-pill.active {
    background: #2F64E0;
    color: #fff;
    border-color: #2F64E0;
}

/* ========================================
   Grid
   ======================================== */

.reportei-integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ========================================
   Card
   ======================================== */

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0px 1px 2px 0px rgba(0, 68, 157, 0.04), 0px 2px 6px 0px rgba(0, 68, 157, 0.06);
    text-decoration: none;
    color: #212B30;
    transition: all 0.2s ease;
    cursor: pointer;
}

.integration-card:hover {
    box-shadow: 0px 2px 4px 0px rgba(0, 68, 157, 0.08), 0px 4px 12px 0px rgba(0, 68, 157, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #212B30;
}

.integration-card:focus-visible {
    box-shadow: 0px 1px 2px 0px rgba(0, 68, 157, 0.04), 0px 2px 6px 0px rgba(0, 68, 157, 0.06), 0 0 0 2px rgba(47, 100, 224, 0.25);
    outline: none;
}

/* Card Icon */
.integration-card__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECF0F1;
    border-radius: 50%;
}

.integration-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* Card Content */
.integration-card__content {
    margin-top: 12px;
    width: 100%;
    flex: 1;
}

.integration-card__title {
    font-family: "Quicksand", sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1876F2;
    margin: 0 0 4px;
    line-height: 1.3;
}

.integration-card__description {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #78909C;
    line-height: 1.4;
    margin: 0;
}

/* Card CTA */
.integration-card__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #13bd49;
    transition: gap 0.2s ease;
}

.integration-card__cta svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.integration-card:hover .integration-card__cta svg {
    transform: translateX(4px);
}

/* Empty State */
.reportei-integrations-empty {
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #78909C;
    padding: 48px 20px;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.integration-card.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .reportei-hero {
        padding: 48px 0;
    }

    .reportei-hero__inner {
        gap: 32px;
    }

    .reportei-hero__title {
        font-size: 34px;
    }

    .reportei-hero__subtitle {
        font-size: 20px;
    }

    .reportei-integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .reportei-hero {
        padding: 40px 0;
    }

    .reportei-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .reportei-hero__content {
        align-items: center;
    }

    .reportei-hero__title {
        font-size: 30px;
    }

    .reportei-hero__subtitle {
        font-size: 18px;
    }

    .reportei-hero__image img {
        max-width: 400px;
    }

    .reportei-integrations-page {
        padding: 32px 0 48px;
    }

    .reportei-integrations-filters {
        gap: 6px;
    }

    .filter-pill {
        font-size: 16px;
        padding: 6px 16px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .reportei-hero {
        padding: 32px 0;
    }

    .reportei-hero__title {
        font-size: 26px;
    }

    .reportei-hero__subtitle {
        font-size: 16px;
    }

    .reportei-hero__description {
        font-size: 14px;
    }

    .reportei-hero__image img {
        max-width: 100%;
    }

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

    .integration-card {
        padding: 16px;
    }

    .integration-card__title {
        font-size: 16px;
    }

    .integration-card__description {
        font-size: 14px;
    }
}


/* Divisória antes do rodapé */
.reportei-integrations-wrapper {
    border-bottom: 1px solid #ECF0F1;
}

.ast-container {
    flex-direction: column;
}