/* Our Plugins Page Styling */
.ig-our-plugins-wrap {
    padding: 20px 20px 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    width: 100%;
}

.ig-our-plugins-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 40px;
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ig-header-content {
    max-width: 70%;
}

.ig-our-plugins-header h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.ig-our-plugins-header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
}

.ig-header-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ig-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.ig-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Filter Navigation */
.ig-plugins-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.ig-filter-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.ig-filter-btn:hover {
    color: #4f46e5;
    background: #f1f5f9;
}

.ig-filter-btn.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.ig-refresh-link {
    margin-left: auto;
    margin-right: 15px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.ig-refresh-link:hover {
    color: #4f46e5;
    transform: rotate(180deg);
}

.ig-plugins-grid {
    display: grid;
    /* Forced 4-column layout on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Responsive Grid Adjustments */
@media (max-width: 1300px) {
    .ig-plugins-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 600px) {
    .ig-plugins-grid {
        grid-template-columns: 1fr;
    }
}

.ig-plugin-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.ig-plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #4f46e5;
}

/* Base Banner Styles */
.ig-plugin-banner {
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 🔌 Plugin Banner Height */
.ig-plugin-banner {
    height: 180px; 
}

/* 🎨 Theme Poster Height */
.ig-theme-screenshot {
    height: 320px !important; 
}

.ig-plugin-banner img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

.ig-plugin-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ig-plugin-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0f172a;
    line-height: 1.4;
    min-height: 50px;
}

.ig-plugin-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ig-plugin-meta {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    gap: 16px;
    margin-bottom: 20px;
}

.ig-plugin-meta-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.ig-plugin-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    color: #6366f1;
}

.ig-plugin-actions {
    display: flex;
    gap: 12px;
}

.ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
}

.ig-btn-primary {
    background: #4f46e5;
    color: white;
}

.ig-btn-primary:hover {
    background: #4338ca;
    color: white;
}

.ig-btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ig-btn-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Badges */
.ig-plugin-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Loading State & Errors */
.ig-loading-wrap, .ig-error-wrap {
    text-align: center;
    padding: 80px 0;
}

.ig-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(79, 70, 229, 0.1);
    border-left-color: #4f46e5;
    border-radius: 50%;
    animation: ig-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes ig-spin {
    to { transform: rotate(360deg); }
}

.ig-error-wrap .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}
