/* Base Styles */
.mpps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.mpps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mpps-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.mpps-search-stats {
    display: flex;
    gap: 15px;
}

.mpps-stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mpps-stat-label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.mpps-stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* Search Form */
.mpps-search-form {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mpps-form-group {
    margin-bottom: 20px;
}

.mpps-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.mpps-form-control:focus {
    outline: none;
    border-color: #3498db;
}

.mpps-platform-selector {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.mpps-platform-selector h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #2c3e50;
}

.mpps-platform-option {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Buttons */
.mpps-btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.mpps-btn-primary {
    background-color: #3498db;
    color: white;
}

.mpps-btn-primary:hover {
    background-color: #2980b9;
}

.mpps-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.mpps-btn-secondary:hover {
    background-color: #7f8c8d;
}

.mpps-btn-success {
    background-color: #2ecc71;
    color: white;
}

.mpps-btn-success:hover {
    background-color: #27ae60;
}

/* Results */
.mpps-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mpps-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mpps-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mpps-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mpps-product-details {
    padding: 15px;
}

.mpps-product-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #2c3e50;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mpps-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.mpps-product-platform {
    display: inline-block;
    padding: 3px 8px;
    background: #ecf0f1;
    border-radius: 4px;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.mpps-product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.mpps-product-link {
    text-decoration: none;
    color: #3498db;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.mpps-product-link:hover {
    text-decoration: underline;
}

.mpps-calculate-profit {
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.mpps-calculate-profit:hover {
    background: #27ae60;
}

/* Upgrade Prompt */
.mpps-upgrade-prompt {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.mpps-upgrade-prompt h3 {
    margin-top: 0;
    color: #f39c12;
}

/* Modal */
.mpps-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.mpps-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.mpps-close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
}

.mpps-close-modal:hover {
    color: #333;
}

.mpps-payment-options {
    margin: 20px 0;
}

.mpps-payment-method {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.mpps-payment-method label {
    font-weight: 500;
    margin-left: 5px;
    cursor: pointer;
}

.mpps-stripe-element {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Profit Calculator */
.mpps-profit-calculator {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mpps-profit-calculator h2 {
    margin-top: 0;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mpps-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mpps-input-group {
    display: flex;
}

.mpps-input-addon {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
}

.mpps-result-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.mpps-result-card h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.mpps-result-table {
    width: 100%;
    border-collapse: collapse;
}

.mpps-result-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.mpps-result-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.mpps-profit-chart {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .mpps-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mpps-search-stats {
        margin-top: 15px;
        width: 100%;
    }
    
    .mpps-stat-box {
        flex: 1;
    }
    
    .mpps-calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .mpps-results-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .mpps-results-container {
        grid-template-columns: 1fr;
    }
    
    .mpps-platform-option {
        display: block;
        margin-right: 0;
    }
}