/**
 * Twingital Directory Claim — Estilos
 * Path: assets/css/claim.css
 */

/* ── Sección del botón de reclamo ──────────────────────────────────────────── */
.tdc-claim-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.tdc-claim-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.tdc-claim-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.tdc-claim-text {
    flex: 1;
    min-width: 200px;
}

.tdc-claim-text strong {
    display: block;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.tdc-claim-text p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* ── Botón de reclamo ──────────────────────────────────────────────────────── */
.tdc-btn-claim {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #8b5cf6;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tdc-btn-claim:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.tdc-btn-claim.tdc-btn-small {
    padding: 7px 14px;
    font-size: 13px;
    margin-top: 10px;
}

/* ── Avisos (pendiente / rechazado) ────────────────────────────────────────── */
.tdc-claim-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 10px;
    font-size: 14px;
}

.tdc-notice-pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.tdc-notice-rejected {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.tdc-notice-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.tdc-claim-notice strong {
    display: block;
    margin-bottom: 4px;
}

.tdc-claim-notice p {
    margin: 0;
    opacity: 0.85;
}

/* ── Badge verificado ──────────────────────────────────────────────────────── */
.tdc-verified-badge-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.tdc-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 14px 20px;
    color: #065f46;
    font-weight: 600;
    font-size: 14px;
    flex-wrap: wrap;
}

.tdc-verified-badge svg {
    color: #059669;
    flex-shrink: 0;
}

.tdc-badge-link {
    color: #059669 !important;
    text-decoration: none;
    font-size: 13px;
    margin-left: 4px;
    border-bottom: 1px dotted #059669;
}

.tdc-badge-link:hover {
    border-bottom-style: solid;
}

/* ── Dashboard badge "Reclamada" ───────────────────────────────────────────── */
.td-claimed-badge {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border: 1px solid #c4b5fd !important;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.tdc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tdc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.tdc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: tdc-modal-in 0.2s ease-out;
}

@keyframes tdc-modal-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tdc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.tdc-modal-close:hover {
    background: #e5e7eb;
}

.tdc-modal-header {
    margin-bottom: 20px;
}

.tdc-modal-header h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1f2937;
}

.tdc-modal-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ── Formulario ─────────────────────────────────────────────────────────────── */
.tdc-form-hint {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 18px;
}

.tdc-form-group {
    margin-bottom: 16px;
}

.tdc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.tdc-required {
    color: #ef4444;
}

.tdc-cargo-select,
.tdc-message-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.tdc-cargo-select:focus,
.tdc-message-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.tdc-message-input {
    resize: vertical;
    min-height: 90px;
}

.tdc-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 20px;
}

.tdc-form-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.tdc-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tdc-btn-cancel {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.tdc-btn-cancel:hover {
    background: #e5e7eb;
}

.tdc-btn-submit-claim {
    padding: 10px 20px;
    background: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tdc-btn-submit-claim:hover {
    background: #7c3aed;
}

.tdc-btn-submit-claim:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Feedback en el modal ───────────────────────────────────────────────────── */
.tdc-form-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.tdc-form-feedback.tdc-feedback-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.tdc-form-feedback.tdc-feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tdc-claim-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tdc-modal-content {
        padding: 24px 20px;
    }

    .tdc-form-actions {
        flex-direction: column-reverse;
    }

    .tdc-btn-cancel,
    .tdc-btn-submit-claim {
        width: 100%;
        text-align: center;
    }
}
