/* Our Plugins Page Styles */
.pm-our-plugins-wrap {
    max-width: 1400px;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 40px 30px;
}

.pm-our-plugins-header {
    text-align: center;
    margin-bottom: 50px;
}

.pm-our-plugins-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e1e4b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.pm-our-plugins-subtitle {
    font-size: 16px;
    color: #646464;
    margin: 0;
    line-height: 1.5;
}

.pm-our-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pm-plugin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pm-plugin-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.pm-plugin-card-inner {
    padding: 30px;
    position: relative;
}

.pm-plugin-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.pm-plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-plugin-name {
    font-size: 22px;
    font-weight: 600;
    color: #1e1e4b;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.pm-plugin-description {
    font-size: 14px;
    color: #646464;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 65px;
}

.pm-plugin-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pm-plugin-actions .button {
    padding: 10px 24px;
    height: auto;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.pm-plugin-install-btn,
.pm-plugin-activate-btn {
    background: #5b6ef5;
    border-color: #5b6ef5;
    color: #fff;
    box-shadow: 0 2px 6px rgba(91, 110, 245, 0.3);
}

.pm-plugin-install-btn:hover,
.pm-plugin-activate-btn:hover {
    background: #4a5de4;
    border-color: #4a5de4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(91, 110, 245, 0.4);
}

.pm-plugin-status-btn {
    background: #f0f0f0;
    color: #646464;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.pm-plugin-activated {
    background: #e7f5ed;
    color: #27ae60;
    border-color: #27ae60;
}

.pm-plugin-activated .dashicons {
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

.pm-plugin-docs-link {
    color: #5b6ef5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pm-plugin-docs-link:hover {
    color: #4a5de4;
    text-decoration: underline;
}

.pm-plugin-status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
}

.pm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-status-deactivated {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.pm-status-activated {
    background: #e7f5ed;
    color: #27ae60;
    border: 1px solid #27ae60;
}

/* Loading state */
.pm-plugin-card.pm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pm-plugin-card.pm-loading .button {
    position: relative;
}

.pm-plugin-card.pm-loading .button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pm-spinner 0.6s linear infinite;
}

@keyframes pm-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .pm-our-plugins-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .pm-our-plugins-wrap {
        padding: 30px 20px;
    }

    .pm-our-plugins-title {
        font-size: 26px;
    }

    .pm-our-plugins-subtitle {
        font-size: 14px;
    }

    .pm-our-plugins-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pm-plugin-card-inner {
        padding: 25px;
    }

    .pm-plugin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-plugin-actions .button {
        width: 100%;
        text-align: center;
    }
}
