/**
 * Integrations Page Styles
 */

.integrations-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    color: #fff;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.integrations-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.integrations-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.integrations-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    color: #ffffff;
}

.integrations-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.integrations-hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.integrations-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.integration-stat {
    text-align: center;
}

.integration-stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}

.integration-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.integrations-controls {
    background: #fff;
    padding: 3rem 0;
    top: 70px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e2e8f0;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.25rem;
}

.search-clear {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    padding: 0.5rem;
}

.search-clear.visible {
    opacity: 1;
}

.search-clear:hover {
    color: #6366f1;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.filter-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.filter-tab.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.integrations-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 60vh;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.integration-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.integration-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.integration-card:hover::before {
    transform: scaleX(1);
}

.integration-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
}

.integration-card:hover .integration-logo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    transform: scale(1.1);
}

.integration-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.integration-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.integration-category {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.integration-badge-new,
.integration-badge-popular {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.integration-badge-new {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.integration-badge-popular {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #64748b;
    font-size: 1.1rem;
}

.results-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #64748b;
    font-size: 1rem;
}

.results-count {
    font-weight: 700;
    color: #6366f1;
}

.integrations-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.integrations-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.integrations-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.integrations-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.integrations-cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-primary,
.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button-primary {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .integrations-hero {
        padding: 100px 0 60px;
    }

    .integrations-hero h1 {
        font-size: 2.5rem;
    }

    .integrations-hero p {
        font-size: 1.1rem;
    }

    .integrations-stats {
        gap: 2rem;
    }

    .integration-stat-number {
        font-size: 2rem;
    }

    .integrations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .integration-card {
        padding: 1.5rem 1rem;
    }

    .integration-logo {
        width: 60px;
        height: 60px;
    }

    .integrations-cta h2 {
        font-size: 2rem;
    }

    .integrations-cta p {
        font-size: 1.1rem;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .integrations-hero h1 {
        font-size: 2rem;
    }

    .integrations-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .integrations-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .search-input {
        padding: 1rem 3rem;
        font-size: 1rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}
