/* Products Page */
.products-hero {
    min-height: 100vh;
    padding: 108px 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.products-hero .container {
    width: 100%;
}

.products-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.products-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #c7d2ff 60%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(240, 242, 255, 0.85);
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Plugin Cards Grid */
.plugins-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.plugin-button-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 40px) / 3);
    min-width: 0;
    min-height: 365px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.plugin-button-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(123, 142, 247, 0.55);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(123, 142, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.plugin-shot-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b0e17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plugin-video-link,
.plugin-shot-link {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.plugin-video-slot {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.plugin-hover-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.plugin-shot-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.25s ease;
    pointer-events: none;
}

.plugin-button-card:hover .plugin-shot-img {
    transform: scale(1.04);
}

.plugin-button-card.is-streaming .plugin-shot-img {
    opacity: 0;
}

.plugin-version-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: rgba(10, 14, 28, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2px 8px;
    border-radius: 999px;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.plugin-button-card.is-streaming .plugin-version-pill {
    opacity: 0;
}

.plugin-button-body {
    position: relative;
    padding: 18px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    cursor: pointer;
}

/* Full-body overlay link covering the entire non-video area of the card */
a.plugin-card-cover-link {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    display: block !important;
    transform: none !important;
    text-decoration: none;
    cursor: pointer;
}

.plugin-button-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.plugin-button-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.plugin-button-tag {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.plugin-button-desc {
    position: relative;
    z-index: 2;
    margin-top: 2px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(240, 242, 255, 0.78);
    pointer-events: none;
}

/* Two action buttons on each card, layered above the body cover link */
.plugin-card-actions {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.plugin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plugin-action-fab {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(123, 142, 247, 0.32), rgba(56, 189, 248, 0.24));
    border: 1px solid rgba(123, 142, 247, 0.52);
}

.plugin-action-fab:hover {
    background: linear-gradient(135deg, rgba(123, 142, 247, 0.48), rgba(56, 189, 248, 0.36));
    border-color: rgba(165, 180, 252, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(123, 142, 247, 0.28);
}

.plugin-action-docs {
    color: var(--primary-dim);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.plugin-action-docs:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
}

.fab-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    z-index: 9999;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(15, 20, 34, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(123, 142, 247, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
    .plugin-button-card {
        width: calc((100% - 20px) / 2);
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .products-hero {
        padding: 100px 0 48px;
    }

    .plugin-button-card {
        width: 100%;
        max-width: 380px;
    }
}
