:root {
    --int-sidebar-width: 290px;
    --int-card-bg: #fff;
    --int-card-border: #e5e7eb;
    --int-card-hover-border: #3b82f6;
    --int-category-active: #3b82f6;
    --int-category-hover: #f3f4f6;
}

.integrations-hero {
    text-align: center;
    padding: 4rem 2rem;
    margin: 0 0 1.6rem 0;
    background:
        radial-gradient(ellipse 200% 300% at 50% 30%, rgba(147, 51, 234, 0.06) 0%, rgba(147, 51, 234, 0.02) 20%, transparent 35%),
        radial-gradient(ellipse 150% 200% at 35% 50%, rgba(220, 38, 38, 0.045) 0%, transparent 30%),
        radial-gradient(ellipse 180% 250% at 55% 35%, rgba(59, 130, 246, 0.04) 0%, transparent 30%);
    position: relative;
}

.integrations-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.integrations-hero p {
    font-size: 1.25rem;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

.integrations-container {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.integrations-sidebar-area {
    width: var(--int-sidebar-width);
    flex-shrink: 0;
}

.integrations-sidebar {
    position: sticky;
    top: 87px;
}

.integrations-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.integrations-sidebar h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.sidebar-slogan {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-left: 0;
    padding-top: 0.6rem;
    line-height: 1.3;
}

.integrations-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.integrations-sidebar li {
    margin: 0;
    padding: 0;
}

.integrations-sidebar a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.integrations-sidebar a:hover {
    background-color: var(--int-category-hover);
}

.integrations-sidebar a.active {
    background-color: #dbeafe;
    color: #111827;
    font-weight: 500;
}


.integrations-main {
    flex: 1;
    min-width: 0;
}

.integrations-header {
    margin-bottom: 2rem;
}

.integrations-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.integrations-header p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.integrations-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.integrations-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.integrations-search input {
    width: 100%;
    padding: 0.625rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1.25rem;
}

.integrations-search input:focus {
    outline: none;
    border-color: var(--int-category-active);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.integrations-sort {
    display: flex;
    gap: 0.5rem;
}

.integrations-sort button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
}

.integrations-sort button:hover {
    background: #f9fafb;
}

.integrations-sort button.active {
    background-color: #dbeafe;
    color: #111827;
    border-color: #dbeafe;
    font-weight: 500;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.85rem;
}

.integration-card {
    background: var(--int-card-bg);
    border: 1px solid var(--int-card-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f7f8f9 50%,
        #eeeff1 100%
    );
    background-size: 200% 200%;
    opacity: 1;
    transition: background 0.3s ease;
    z-index: 0;
    animation: plasmaShift 4s ease infinite;
}

@keyframes plasmaShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.integration-card:hover::before {
    background: linear-gradient(
        125deg,
        rgba(156, 163, 175, 0.04) 0%,
        rgba(147, 197, 253, 0.06) 25%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(147, 197, 253, 0.06) 75%,
        rgba(156, 163, 175, 0.04) 100%
    );
}

.integration-card > * {
    position: relative;
    z-index: 1;
}

.integration-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.integration-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.integration-card .icon-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
}

.icon-placeholder.color-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.icon-placeholder.color-2 { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.icon-placeholder.color-3 { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }
.icon-placeholder.color-4 { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.icon-placeholder.color-5 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.icon-placeholder.color-6 { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.icon-placeholder.color-7 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.icon-placeholder.color-8 { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.icon-placeholder.color-9 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.icon-placeholder.color-10 { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.icon-placeholder.color-11 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.icon-placeholder.color-12 { background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%); }
.icon-placeholder.color-13 { background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%); }
.icon-placeholder.color-14 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.icon-placeholder.color-15 { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }
.icon-placeholder.color-16 { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.icon-placeholder.color-17 { background: linear-gradient(135deg, #be123c 0%, #9f1239 100%); }
.icon-placeholder.color-18 { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.icon-placeholder.color-19 { background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%); }
.icon-placeholder.color-20 { background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%); }

.integration-card .name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-top: 5%;
}

.integration-card .category-tag {
    font-size: 0.7rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.integrations-count {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .integrations-container {
        flex-direction: column;
    }

    .integrations-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .integrations-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .integrations-sidebar li {
        flex: 0 0 auto;
    }

    .integrations-sidebar a {
        padding: 0.375rem 0.75rem;
        background: #f3f4f6;
    }

}

@media (max-width: 600px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integrations-header h1 {
        font-size: 1.75rem;
    }
}
