/* --------------------------------------------------
   GYGO Plugins Page — polished storefront layout
   -------------------------------------------------- */

/* Page spacing */
.plugins-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

/* -----------------------------------------
   HEADER ROW
----------------------------------------- */

.plugins-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.plugins-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.plugins-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #bac6e0;
}

.plugins-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* -----------------------------------------
   FILTERS (visual-only)
----------------------------------------- */

.plugins-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.6rem;
}

.filter-pill {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    color: #dce5ff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover {
    background: rgba(255,255,255,0.05);
}

.filter-pill.is-active {
    background: #3edc74;
    border-color: #3edc74;
    color: #041016;
}

/* -----------------------------------------
   BUTTON STYLES — consistent with portal
----------------------------------------- */

.btn-primary,
.btn-outline,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: #3edc74;
    border-color: #3edc74;
    color: #041016;
}
.btn-primary:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.btn-outline {
    background: transparent;
    color: #dce5ff;
    border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.07);
}

.btn-secondary {
    background: #1c2533;
    color: #dfe6ff;
    border-color: rgba(255,255,255,0.15);
}
.btn-secondary:hover {
    background: #243042;
}

.btn-ghost {
    background: transparent;
    color: #dce5ff;
    border-color: rgba(255,255,255,0.12);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
}

/* -----------------------------------------
   GRID
----------------------------------------- */

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.6rem;
}

/* -----------------------------------------
   PLUGIN CARDS
----------------------------------------- */

.plugin-card {
    background: #0e141f;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

/* 16:9 image frame */
.plugin-image {
    position: relative;
    padding-top: 56.25%; /* true 16:9 ratio */
    background: #04060e;
}

.plugin-image img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card content */
.plugin-content {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.plugin-content h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.plugin-tagline {
    margin: 0;
    font-size: 0.92rem;
    color: #c2cee8;
}

.plugin-copy {
    margin: 0.25rem 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #adb8ce;
}

.plugin-meta-list {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: #9ca7bf;
}
.plugin-meta-list li + li {
    margin-top: 0.15rem;
}

/* Footer */
.plugin-footer {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.plugin-price .price-main {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */

@media (max-width: 720px) {
    .plugins-header {
        align-items: flex-start;
    }
    .plugins-header-actions {
        width: 100%;
        margin-top: 0.4rem;
    }
}