/**
 * Estilos del frontend para el plugin EWP Ventto.
 *
 * @package EWP_Ventto
 * @since 1.0.0
 */

/* Google Font - Plus Jakarta Sans */
body,
html {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset y estilos base */
.ewp-ventto-container {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ewp-ventto-container *,
.ewp-ventto-container *::before,
.ewp-ventto-container *::after {
    box-sizing: inherit;
}

/* Contenedor principal */
.ewp-ventto-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tarjetas y componentes */
.ewp-ventto-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.ewp-ventto-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Botones */
.ewp-ventto-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.ewp-ventto-button:hover {
    background: #005a87;
    color: #ffffff;
    text-decoration: none;
}

.ewp-ventto-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.ewp-ventto-button-secondary {
    background: #f1f1f1;
    color: #333333;
}

.ewp-ventto-button-secondary:hover {
    background: #e1e1e1;
    color: #333333;
}

/* Forms */
.ewp-ventto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ewp-ventto-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ewp-ventto-label {
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

.ewp-ventto-input,
.ewp-ventto-textarea,
.ewp-ventto-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ewp-ventto-input:focus,
.ewp-ventto-textarea:focus,
.ewp-ventto-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.ewp-ventto-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Messages and notifications */
.ewp-ventto-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.ewp-ventto-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ewp-ventto-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ewp-ventto-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ewp-ventto-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading states */
.ewp-ventto-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: ewp-ventto-spin 1s linear infinite;
}

@keyframes ewp-ventto-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ewp-ventto-loading-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 14px;
}

/* Grid system */
.ewp-ventto-grid {
    display: grid;
    gap: 20px;
}

.ewp-ventto-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ewp-ventto-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ewp-ventto-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive design */
@media (max-width: 768px) {
    .ewp-ventto-main {
        padding: 15px;
    }
    
    .ewp-ventto-card {
        padding: 15px;
    }
    
    .ewp-ventto-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .ewp-ventto-grid-2,
    .ewp-ventto-grid-3,
    .ewp-ventto-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ewp-ventto-main {
        padding: 10px;
    }
    
    .ewp-ventto-card {
        padding: 12px;
    }
    
    .ewp-ventto-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Utility classes */
.ewp-ventto-text-center {
    text-align: center;
}

.ewp-ventto-text-left {
    text-align: left;
}

.ewp-ventto-text-right {
    text-align: right;
}

.ewp-ventto-mb-0 {
    margin-bottom: 0;
}

.ewp-ventto-mb-1 {
    margin-bottom: 10px;
}

.ewp-ventto-mb-2 {
    margin-bottom: 20px;
}

.ewp-ventto-mt-0 {
    margin-top: 0;
}

.ewp-ventto-mt-1 {
    margin-top: 10px;
}

.ewp-ventto-mt-2 {
    margin-top: 20px;
}

.ewp-ventto-hidden {
    display: none;
}

.ewp-ventto-visible {
    display: block;
}

/* Accessibility */
.ewp-ventto-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.ewp-ventto-button:focus-visible,
.ewp-ventto-input:focus-visible,
.ewp-ventto-textarea:focus-visible,
.ewp-ventto-select:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
} 
