/* My Custom Plugin - Frontend Styles */

.mcp-display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
}

.mcp-container {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.mcp-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mcp-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    line-height: 1.3;
}

.mcp-content {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.mcp-content p {
    margin-bottom: 15px;
}

.mcp-content p:last-child {
    margin-bottom: 0;
}

.mcp-content h1, 
.mcp-content h2, 
.mcp-content h3, 
.mcp-content h4, 
.mcp-content h5, 
.mcp-content h6 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.mcp-content h1 { font-size: 28px; }
.mcp-content h2 { font-size: 24px; }
.mcp-content h3 { font-size: 20px; }
.mcp-content h4 { font-size: 18px; }
.mcp-content h5 { font-size: 16px; }
.mcp-content h6 { font-size: 14px; }

.mcp-content ul, 
.mcp-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.mcp-content li {
    margin-bottom: 8px;
}

.mcp-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
}

.mcp-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mcp-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.mcp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.mcp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mcp-content table th,
.mcp-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.mcp-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.mcp-content table tr:hover {
    background: #f8f9fa;
}

.mcp-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.mcp-powered-by {
    font-size: 12px;
    color: #999;
    margin: 0;
    font-style: italic;
}

/* Custom class variations */
.mcp-display.mcp-style-minimal .mcp-container {
    border: none;
    box-shadow: none;
    padding: 15px 0;
}

.mcp-display.mcp-style-minimal .mcp-title {
    border-bottom: none;
    padding-bottom: 0;
}

.mcp-display.mcp-style-card .mcp-container {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mcp-display.mcp-style-card .mcp-title {
    border-bottom: 2px solid #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .mcp-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .mcp-title {
        font-size: 20px;
    }
    
    .mcp-content {
        font-size: 15px;
    }
    
    .mcp-content h1 { font-size: 24px; }
    .mcp-content h2 { font-size: 20px; }
    .mcp-content h3 { font-size: 18px; }
    .mcp-content h4 { font-size: 16px; }
    .mcp-content h5 { font-size: 15px; }
    .mcp-content h6 { font-size: 14px; }
}

@media (max-width: 480px) {
    .mcp-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .mcp-title {
        font-size: 18px;
    }
    
    .mcp-content {
        font-size: 14px;
    }
    
    .mcp-content table {
        font-size: 13px;
    }
    
    .mcp-content table th,
    .mcp-content table td {
        padding: 8px 10px;
    }
}

/* Animation for loading */
.mcp-display.mcp-loading .mcp-container {
    opacity: 0.7;
    pointer-events: none;
}

.mcp-display.mcp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: mcp-spin 1s linear infinite;
}

@keyframes mcp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.mcp-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
}

.mcp-form-container {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.mcp-form-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mcp-form-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    line-height: 1.3;
}

.mcp-form-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.mcp-form-field {
    margin-bottom: 20px;
}

.mcp-field-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.mcp-required {
    color: #e74c3c;
    margin-left: 4px;
}

.mcp-dropdown-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mcp-dropdown-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.mcp-dropdown-select:hover {
    border-color: #bdc3c7;
}

.mcp-field-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.mcp-form-submit {
    margin-top: 30px;
    text-align: center;
}

.mcp-submit-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mcp-submit-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mcp-submit-button:active {
    transform: translateY(0);
}

.mcp-form-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.mcp-form-results h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.mcp-results-content {
    font-size: 16px;
    line-height: 1.6;
}

.mcp-results-content .result-item {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.mcp-results-content .result-label {
    font-weight: 600;
    color: #2c3e50;
}

.mcp-results-content .result-value {
    color: #555;
    margin-left: 10px;
}

/* Loading state */
.mcp-form.loading .mcp-dropdown-select {
    opacity: 0.6;
    pointer-events: none;
}

.mcp-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: mcp-spin 1s linear infinite;
}

/* Form submission states */
.mcp-form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

.mcp-form.submitting .mcp-submit-button {
    background: #95a5a6;
    cursor: not-allowed;
}

.mcp-dropdown-select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Enhanced form results */
.mcp-selected-values {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.mcp-selected-values h5 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 8px;
}

.mcp-woocommerce-data {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.mcp-woocommerce-data h5 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.mcp-api-output {
    margin-bottom: 15px;
}

.mcp-api-output pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.mcp-api-output code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.mcp-copy-api-data {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mcp-copy-api-data:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.mcp-copy-api-data.copied {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Products display */
.mcp-products-found,
.mcp-no-products {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.mcp-products-found h5 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 8px;
}

.mcp-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mcp-product-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.mcp-product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mcp-product-item h6 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.mcp-product-item p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.mcp-product-item p:first-of-type {
    color: #27ae60;
    font-weight: 600;
    font-size: 16px;
}

.mcp-no-products {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.mcp-no-products p {
    margin: 0;
    font-size: 16px;
}

/* Responsive form design */
@media (max-width: 768px) {
    .mcp-form-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .mcp-form-title {
        font-size: 20px;
    }
    
    .mcp-form-description {
        font-size: 15px;
    }
    
    .mcp-dropdown-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 12px;
    }
    
    .mcp-submit-button {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .mcp-form-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .mcp-form-title {
        font-size: 18px;
    }
    
    .mcp-field-label {
        font-size: 15px;
    }
    
    .mcp-dropdown-select {
        font-size: 16px;
        padding: 8px 10px;
    }
} 