/* ==========================================================================
   WINSAFY PLUGIN STORE & EXTENSIONS SHOWCASE CSS
   Theme & Utility Integration - Human-Crafted Agency Standards
   Colors: #1A3FD8, #0D1760, #00A3FF, #00C853, #060814
   Typography: Sora (headings), DM Sans (body)
   Clean vector SVGs only. No emojis.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PLUGIN STORE BANNER (Identical to Blog & Podcast Banners)
   -------------------------------------------------------------------------- */
.plugin-store-banner {
    background: linear-gradient(135deg, #1A3FD8 0%, #0D1760 100%) !important;
    color: #FFFFFF !important;
    padding: 180px 0 70px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.plugin-store-banner::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

.plugin-store-top-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 163, 255, 0.12);
    border: 1px solid rgba(0, 163, 255, 0.3);
    color: #00A3FF;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.plugin-store-banner h1,
.plugin-store-banner .podcast-banner-title {
    font-size: 42px !important;
    color: #FFFFFF !important;
    margin-bottom: 15px !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.plugin-store-banner p,
.plugin-store-banner .podcast-banner-subtitle {
    font-size: 17.5px !important;
    color: #E2E8F0 !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    line-height: 1.65 !important;
    font-family: 'DM Sans', sans-serif !important;
}

/* --------------------------------------------------------------------------
   2. FILTER PILLS
   -------------------------------------------------------------------------- */
.plugin-store-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.plugin-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: #FFFFFF;
    color: #0D1760;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.plugin-filter-btn:hover {
    background: #F8FAFC;
    border-color: #00A3FF;
    color: #1A3FD8;
    transform: translateY(-2px);
}

.plugin-filter-btn.active {
    background: #1A3FD8;
    color: #FFFFFF;
    border-color: #1A3FD8;
    box-shadow: 0 6px 20px rgba(26, 63, 216, 0.25);
}

/* --------------------------------------------------------------------------
   2.1 STORE CONTAINER & LAYOUT WRAPPER
   -------------------------------------------------------------------------- */
.winsafy-plugins-store-wrapper {
    width: 100%;
    padding: 30px 20px 80px 20px;
    box-sizing: border-box;
}

.plugin-store-items-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --------------------------------------------------------------------------
   3. PLUGIN SHOWCASE HERO CARD (Compact High-Converting Card)
   -------------------------------------------------------------------------- */
.plugin-showcase-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(13, 23, 96, 0.04);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.plugin-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(13, 23, 96, 0.08);
}

.plugin-card-main {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    align-items: stretch;
}

/* --------------------------------------------------------------------------
   4. SOFTWARE VISUAL SHOWCASE FRAME (Clean Brand Identity)
   -------------------------------------------------------------------------- */
.plugin-visual-col {
    background: #FFFFFF;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(226, 232, 240, 0.7);
    box-sizing: border-box;
}

/* Image wrapper when a custom screenshot is uploaded */
.plugin-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.plugin-showcase-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    max-width: 310px;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: multiply;
}

.plugin-showcase-card:hover .plugin-showcase-image {
    transform: scale(1.03) translateY(-3px);
}

/* Clean Brand Vector Showcase (when no screenshot uploaded) */
.plugin-image-placeholder-clean {
    background: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    min-height: 150px;
}

.plugin-placeholder-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
}

/* --------------------------------------------------------------------------
   5. PLUGIN DETAILS COLUMN (Information, Features, Download CTA)
   -------------------------------------------------------------------------- */
.plugin-details-col {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plugin-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.plugin-badge-pill {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1A3FD8;
    background: rgba(26, 63, 216, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(26, 63, 216, 0.15);
}

.plugin-version-pill {
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: #00A3FF;
    background: rgba(0, 163, 255, 0.08);
    padding: 3px 9px;
    border-radius: 20px;
}

.plugin-compat-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
}

.plugin-title {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0D1760;
    margin: 0 0 10px 0;
    line-height: 1.28;
}

.plugin-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 14px 0;
}

/* --------------------------------------------------------------------------
   5.1 BUSINESS OPPORTUNITY CALLOUT (High Conversion ROI)
   -------------------------------------------------------------------------- */
.plugin-opportunity-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(26, 63, 216, 0.04) 0%, rgba(0, 163, 255, 0.08) 100%);
    border: 1px solid rgba(0, 163, 255, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #0D1760;
}

.opportunity-icon {
    width: 16px;
    height: 16px;
    color: #1A3FD8;
    flex-shrink: 0;
}

.plugin-opportunity-banner strong {
    color: #1A3FD8;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   5.2 ECOSYSTEM INTEGRATIONS CHIPS & INTERACTIVE DETAILS
   -------------------------------------------------------------------------- */
.plugin-integrations-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.plugin-integrations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.integrations-label {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.btn-toggle-integrations {
    background: transparent;
    border: none;
    color: #1A3FD8;
    font-family: 'Sora', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-toggle-integrations:hover {
    background: rgba(26, 63, 216, 0.08);
    color: #0D1760;
}

.btn-toggle-integrations svg {
    transition: transform 0.25s ease;
}

.btn-toggle-integrations.is-active svg {
    transform: rotate(180deg);
}

.plugin-integrations-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.integration-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #1E293B;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 3px 8px;
    transition: all 0.2s ease;
}

.integration-chip:hover {
    border-color: #00A3FF;
    color: #1A3FD8;
    background: #F0F9FF;
}

.integration-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00C853;
}

.plugin-integrations-drawer {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #CBD5E1;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

.plugin-integrations-drawer.is-open {
    display: block;
    animation: fadeInDrawer 0.3s ease;
}

@keyframes fadeInDrawer {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.integrations-drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

@media (max-width: 640px) {
    .integrations-drawer-grid {
        grid-template-columns: 1fr;
    }
}

.drawer-item {
    font-size: 11.5px;
    line-height: 1.45;
}

.drawer-item strong {
    color: #0D1760;
}

.plugin-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plugin-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #334155;
}

.feature-check-icon {
    width: 17px;
    height: 17px;
    color: #00C853;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   6. ACTIONS & DIRECT DOWNLOAD BUTTON (Sleek Centered Bottom Bar)
   -------------------------------------------------------------------------- */
.plugin-action-box {
    border-top: 1px solid #F1F5F9;
    background: #FAFBFD;
    padding: 13px 20px;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.btn-direct-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 220px;
    max-width: 320px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #1A3FD8 0%, #00A3FF 100%);
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-family: 'Sora', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(26, 63, 216, 0.22);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
}

.btn-direct-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 163, 255, 0.35);
    background: linear-gradient(135deg, #0D1760 0%, #1A3FD8 100%);
}

.btn-direct-download svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-direct-download:hover svg {
    transform: translateY(2px);
}

.btn-direct-download.disabled {
    background: #CBD5E1;
    color: #64748B !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE DESIGN (Mobile & Tablet Breakpoints)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .plugin-card-main {
        grid-template-columns: 1fr;
    }
    .plugin-visual-col {
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        padding: 18px 16px;
    }
    .plugin-showcase-image {
        max-height: 240px;
        max-width: 220px;
    }
    .plugin-details-col {
        padding: 20px 18px;
    }
    .plugin-title {
        font-size: 19px;
    }
    .btn-direct-download {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .plugin-store-banner {
        padding: 140px 16px 50px 16px !important;
    }
    .plugin-store-banner h1,
    .plugin-store-banner .podcast-banner-title {
        font-size: 28px !important;
    }
    .plugin-store-banner p,
    .plugin-store-banner .podcast-banner-subtitle {
        font-size: 15px !important;
    }
    .plugin-details-col {
        padding: 20px 16px;
    }
    .btn-direct-download {
        font-size: 13.5px;
        padding: 11px 22px;
    }
}
