/**
 * Public styles for Nuevo Liberalismo Militantes plugin
 * 
 * Theme: RED, BLACK, WHITE (Premium Aesthetic)
 *
 * @since      1.0.0
 * @package    Nuevo_Liberalismo_Militantes
 * @subpackage Nuevo_Liberalismo_Militantes/public/css
 */

:root {
    --nlm-red: #e30613;
    --nlm-red-dark: #b3050f;
    --nlm-black: #000000;
    --nlm-gray-dark: #1a1a1a;
    --nlm-gray-mid: #333333;
    --nlm-gray-light: #f4f4f4;
    --nlm-white: #ffffff;
    --nlm-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --nlm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.nlm-form {
    max-width: 850px;
    margin: 40px auto;
    background: var(--nlm-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--nlm-shadow);
    border-top: 5px solid var(--nlm-red);
}

.nlm-form-section {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.nlm-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.nlm-form-section h4 {
    margin: 0 0 25px 0;
    color: var(--nlm-black);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.nlm-form-section h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--nlm-red);
    margin-right: 12px;
    border-radius: 2px;
}

.nlm-field-group {
    margin-bottom: 25px;
}

.nlm-field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--nlm-gray-mid);
    font-size: 14px;
}

.nlm-field-group input,
.nlm-field-group select,
.nlm-field-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 15px;
    color: var(--nlm-black);
    transition: var(--nlm-transition);
    box-sizing: border-box;
    background: #fafafa;
}

.nlm-field-group input:focus,
.nlm-field-group select:focus,
.nlm-field-group textarea:focus {
    border-color: var(--nlm-red);
    background: var(--nlm-white);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
    outline: none;
}

.nlm-field-group small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.nlm-field-row {
    display: flex;
    gap: 25px;
}

.nlm-field-row .nlm-field-group {
    flex: 1;
}

@media (max-width: 768px) {
    .nlm-field-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.nlm-btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--nlm-transition);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nlm-btn-primary {
    background: var(--nlm-red);
    color: var(--nlm-white);
}

.nlm-btn-primary:hover {
    background: var(--nlm-red-dark);
    color: var(--nlm-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.3);
}

.nlm-btn-secondary {
    background: var(--nlm-black);
    color: var(--nlm-white);
}

.nlm-btn-secondary:hover {
    background: var(--nlm-gray-mid);
    color: var(--nlm-white);
}

.nlm-btn-danger {
    background: #dc3545;
    color: var(--nlm-white);
}

/* ==========================================================================
   Consent & Warning
   ========================================================================== */

.nlm-consent-section {
    background: var(--nlm-gray-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.nlm-sensitive-data-warning {
    background: #fff9f9;
    border: 1px solid #ffdada;
    border-left: 5px solid var(--nlm-red);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.warning-content strong {
    color: var(--nlm-red);
    font-size: 16px;
}

.nlm-consent-checkbox {
    background: var(--nlm-white);
    padding: 24px;
    border: 2px solid var(--nlm-red);
    border-radius: 8px;
}

/* ==========================================================================
   Profile & Portal
   ========================================================================== */

.profile-header {
    background: linear-gradient(135deg, var(--nlm-red), var(--nlm-red-dark)) !important;
}

.profile-info h4::before,
.profile-events h4::before,
.profile-actions h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--nlm-red);
    margin-right: 10px;
    vertical-align: middle;
}

.status-badge {
    background: rgba(255, 255, 255, 0.25) !important;
}

.event-date {
    background: var(--nlm-red) !important;
}

.stat-number {
    color: var(--nlm-red) !important;
}

/* ==========================================================================
   Leader Portal Specific
   ========================================================================== */

.nlm-leader-card {
    background: var(--nlm-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--nlm-shadow);
    margin-bottom: 30px;
}

.nlm-share-link-container {
    background: var(--nlm-gray-light);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.nlm-share-link-input {
    flex: 1;
    border: 1px solid #ccc !important;
    background: white !important;
    font-family: monospace;
    font-size: 13px !important;
}

.nlm-qr-container {
    text-align: center;
    padding: 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 20px;
}

.nlm-subordinates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.nlm-subordinates-table th {
    background: var(--nlm-gray-light);
    text-align: left;
    padding: 12px 15px;
    font-weight: 700;
    color: var(--nlm-black);
    border-bottom: 2px solid var(--nlm-red);
}

.nlm-subordinates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.nlm-role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.role-militante { background: #e9ecef; color: #495057; }
.role-testigo { background: #fff3cd; color: #856404; }
.role-lider { background: #d1ecf1; color: #0c5460; }