/**
 * MMM Editor Widgets CSS
 * Styles for HTML, Text, Image, and Button widgets
 */

/* HTML Widget Styles */
.mmm-html-content {
    margin: 15px 0;
}

.mmm-html-content img {
    max-width: 100%;
    height: auto;
}

/* Text Widget Styles */
.mmm-text-content {
    margin: 15px 0;
    line-height: 1.6;
}

.mmm-text-content p {
    margin-bottom: 15px;
}

.mmm-text-content p:last-child {
    margin-bottom: 0;
}

/* Image Widget Styles */
.mmm-image-widget-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mmm-image-widget-img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Button Widget Styles */
.mmm-button-container {
    margin: 15px 0;
}

.mmm-button-center {
    text-align: center;
}

.mmm-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    line-height: 1.4;
}

/* Button Sizes */
.mmm-button-small {
    padding: 8px 16px;
    font-size: 12px;
}

.mmm-button-medium {
    padding: 12px 24px;
    font-size: 14px;
}

.mmm-button-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Button Styles */
.mmm-button-default {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

.mmm-button-default:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.mmm-button-primary {
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
}

.mmm-button-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.mmm-button-secondary {
    background-color: #6c757d;
    color: #ffffff;
    border: 1px solid #6c757d;
}

.mmm-button-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.mmm-button-success {
    background-color: #28a745;
    color: #ffffff;
    border: 1px solid #28a745;
}

.mmm-button-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.mmm-button-danger {
    background-color: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
}

.mmm-button-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.mmm-button-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.mmm-button-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.mmm-button-info {
    background-color: #17a2b8;
    color: #ffffff;
    border: 1px solid #17a2b8;
}

.mmm-button-info:hover {
    background-color: #138496;
    border-color: #138496;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mmm-button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mmm-button-center {
        text-align: center;
    }
}

/* Focus states for accessibility */
.mmm-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Widget container spacing */
.widget_mmm_html_widget,
.widget_mmm_text_widget,
.widget_mmm_image_widget,
.widget_mmm_button_widget {
    margin-bottom: 30px;
}
