﻿/**
 * Micro Provider SimplyConnect - Shortcode Styles
 */

/* Container Styles */
.mps-providers-container,
.mps-categories-container {
    margin: 20px 0;
}

/* Providers List */
.mps-providers-list {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.mps-provider-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.mps-provider-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mps-provider-name {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 1.5em;
    font-weight: 600;
}

.mps-provider-description {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.mps-provider-address,
.mps-provider-phone,
.mps-provider-email,
.mps-provider-website {
    margin: 8px 0;
    color: #333;
}

.mps-provider-address strong,
.mps-provider-phone strong,
.mps-provider-email strong,
.mps-provider-website strong {
    color: #0073aa;
    font-weight: 600;
}

.mps-provider-email a,
.mps-provider-website a {
    color: #0073aa;
    text-decoration: none;
}

.mps-provider-email a:hover,
.mps-provider-website a:hover {
    text-decoration: underline;
}

/* Categories List */
.mps-categories-list {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mps-category-item {
    background: #f9f9f9;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.mps-category-item:hover {
    background: #f1f1f1;
}

.mps-category-name {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 1.2em;
    font-weight: 600;
}

.mps-category-description {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.mps-category-id {
    margin: 0;
    color: #999;
    font-size: 0.9em;
}

/* Error Messages */
.mps-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.mps-no-data {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* Admin Interface Styles */
.mps-admin-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.mps-info-box,
.mps-status-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.mps-info-box h3,
.mps-status-box h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 1.1em;
}

.mps-info-box p,
.mps-status-box p {
    margin: 0 0 10px 0;
    color: #50575e;
    line-height: 1.5;
}

.mps-action-buttons {
    margin-top: 15px;
}

.mps-action-buttons .button {
    margin-right: 10px;
    margin-bottom: 5px;
}

.mps-usage-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.mps-usage-section h2 {
    margin: 0 0 20px 0;
    color: #23282d;
    border-bottom: 1px solid #ccd0d4;
    padding-bottom: 10px;
}

.mps-usage-section h3 {
    margin: 20px 0 10px 0;
    color: #23282d;
}

.mps-usage-section h4 {
    margin: 15px 0 8px 0;
    color: #0073aa;
}

.mps-endpoints-list ul {
    margin: 0;
    padding-left: 20px;
}

.mps-endpoints-list li {
    margin: 8px 0;
    color: #50575e;
}

.mps-endpoints-list code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
}

.mps-usage-section pre {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mps-providers-list {
        gap: 15px;
    }
    
    .mps-provider-item {
        padding: 15px;
    }
    
    .mps-provider-name {
        font-size: 1.3em;
    }
    
    .mps-categories-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mps-admin-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mps-action-buttons .button {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
}

/* Plugin Disabled Notice Styles */
.plugin-disabled-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.plugin-notice-content {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
}

.plugin-notice-icon {
    margin-bottom: 24px;
}

.plugin-notice-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.plugin-notice-message {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.plugin-notice-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.plugin-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plugin-notice-btn-primary {
    background: #007cba;
    color: white;
}

.plugin-notice-btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.plugin-notice-btn-secondary {
    background: white;
    color: #6c757d;
    border-color: #e1e8ed;
}

.plugin-notice-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.plugin-notice-btn-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .plugin-notice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .plugin-notice-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
