/* Soporte Frontend Styles */

/* Link shortcode - for menus, headers, sidebars */
.soporte-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    position: relative;
}

.soporte-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
}

/* Header */
.soporte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.soporte-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.soporte-header-actions {
    display: flex;
    gap: 8px;
}

/* Badge */
.soporte-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #d63638;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.soporte-badge-sm {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    border-radius: 9px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Buttons */
.soporte-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #f0f0f1;
    color: #1d2327;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.2s;
}

.soporte-btn:hover {
    background: #e0e0e1;
    color: #1d2327;
}

.soporte-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.soporte-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.soporte-btn-danger {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.soporte-btn-danger:hover {
    background: #b32d2e;
    color: #fff;
}

/* Table */
.soporte-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.soporte-table th,
.soporte-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.soporte-table th {
    background: #f6f7f7;
    font-weight: 600;
    font-size: 13px;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soporte-table td a {
    font-weight: 500;
}

/* Status */
.soporte-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.soporte-status-open {
    background: #dff0d8;
    color: #3c763d;
}

.soporte-status-in_progress {
    background: #fcf8e3;
    color: #8a6d3b;
}

.soporte-status-closed {
    background: #f2dede;
    color: #a94442;
}

/* Category tag */
.soporte-category-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    background: #e8f0fe;
    color: #1967d2;
    font-size: 12px;
    margin-left: 6px;
}

/* Form */
.soporte-form {
    margin-top: 10px;
}

.soporte-field {
    margin-bottom: 16px;
}

.soporte-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.soporte-field .required {
    color: #d63638;
}

.soporte-field input[type="text"],
.soporte-field textarea,
.soporte-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.soporte-field textarea {
    resize: vertical;
}

/* Conversation */
.soporte-conversation {
    margin-bottom: 24px;
}

.soporte-message {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.soporte-message-customer {
    background: #f9f9f9;
}

.soporte-message-staff {
    background: #eef6ff;
    border-color: #c8ddf0;
}

.soporte-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #50575e;
}

.soporte-message-header strong {
    color: #1d2327;
}

.soporte-staff-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.soporte-message-body {
    line-height: 1.6;
}

.soporte-message-body p:last-child {
    margin-bottom: 0;
}

/* Reply form */
.soporte-reply-form {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

/* Notices */
.soporte-notice {
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
}

.soporte-notice-success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.soporte-notice-error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.soporte-empty {
    color: #646970;
    font-style: italic;
}

.soporte-closed-notice {
    color: #646970;
    font-style: italic;
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .soporte-header {
        flex-direction: column;
    }

    .soporte-table th:nth-child(2),
    .soporte-table td:nth-child(2),
    .soporte-table th:nth-child(4),
    .soporte-table td:nth-child(4) {
        display: none;
    }
}
