/* ====== CSS FOR mi_perfil.php - Panel Personal del Trabajador ====== */

.miperfil-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 16px 40px;
}

/* ====== LOGIN CARD ====== */
.miperfil-login-card {
    background: white;
    border-radius: 28px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}
.miperfil-login-icon {
    width: 88px; height: 88px;
    background: #ecfdf5;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.miperfil-login-card h1 {
    font-size: 24px; font-weight: 900; color: #0f172a;
    margin: 0 0 12px;
}
.miperfil-login-card p {
    font-size: 15px; color: #64748b; line-height: 1.6;
    margin: 0 0 24px; max-width: 360px; margin-left: auto; margin-right: auto;
}
.miperfil-login-hint {
    margin-top: 24px;
    font-size: 13px; color: #94a3b8;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.miperfil-login-hint a { color: #10b981; font-weight: 700; text-decoration: none; }
.miperfil-login-hint a:hover { text-decoration: underline; }

/* ====== ALERT ====== */
.miperfil-alert {
    padding: 14px 20px; border-radius: 16px;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.miperfil-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.miperfil-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ====== HEADER ====== */
.miperfil-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 28px; padding: 32px 24px;
    display: flex; gap: 20px; align-items: center;
    margin-bottom: 20px; position: relative; overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
}
.miperfil-header::after {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.miperfil-avatar {
    width: 90px; height: 90px; border-radius: 22px; overflow: hidden;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 32px; font-weight: 800; flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.miperfil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.miperfil-header-info { z-index: 1; }
.miperfil-header-info h1 {
    font-size: 22px; font-weight: 900; color: #f8fafc;
    margin: 0 0 6px; letter-spacing: -0.5px;
}
.miperfil-servicio {
    font-size: 13px; color: #10b981; font-weight: 700;
    background: rgba(16,185,129,0.12); padding: 4px 12px;
    border-radius: 50px; border: 1px solid rgba(16,185,129,0.2);
    display: inline-block; margin-bottom: 10px;
}
.miperfil-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.miperfil-badge {
    font-size: 10px; font-weight: 800; padding: 5px 10px;
    border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 4px;
}
.miperfil-badge.approved { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.miperfil-badge.pending { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.miperfil-badge.rejected { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.miperfil-badge.verified { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.miperfil-badge.featured { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ====== STATS GRID ====== */
.miperfil-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 20px;
}
.miperfil-stat-card {
    background: white; border-radius: 20px; padding: 20px 16px;
    text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}
.miperfil-stat-card:hover {
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,185,129,0.08);
    border-color: #d1fae5;
}
.miperfil-stat-icon {
    width: 44px; height: 44px; border-radius: 14px;
    background: #ecfdf5; color: #10b981;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.miperfil-stat-icon i, .miperfil-stat-icon svg { width: 22px; height: 22px; }
.miperfil-stat-value { font-size: 24px; font-weight: 900; color: #0f172a; }
.miperfil-stat-label { font-size: 12px; color: #94a3b8; font-weight: 600; margin-top: 2px; }

/* ====== PREVIEW BUTTON ====== */
.miperfil-btn-preview {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px; background: #f0fdf4;
    color: #059669; font-size: 15px; font-weight: 800;
    border-radius: 16px; text-decoration: none;
    border: 1.5px solid #bbf7d0; margin-bottom: 20px;
    transition: all 0.3s;
}
.miperfil-btn-preview:hover {
    background: #dcfce7; transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16,185,129,0.12);
}

/* ====== PRIMARY BUTTON ====== */
.miperfil-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; background: #10b981; color: white;
    font-size: 15px; font-weight: 800; border-radius: 14px;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.3s; width: 100%;
}
.miperfil-btn-primary:hover {
    background: #059669; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.25);
}

/* ====== COLLAPSIBLE SECTIONS ====== */
.miperfil-section {
    background: white; border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9; margin-bottom: 16px;
    overflow: hidden;
}
.miperfil-section-header {
    padding: 20px 24px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.miperfil-section-header:hover { background: #f8fafc; }
.miperfil-section-header h2 {
    font-size: 17px; font-weight: 800; color: #0f172a;
    margin: 0; display: flex; align-items: center; gap: 10px;
}
.miperfil-section-header h2 i { color: #10b981; }
.miperfil-chevron { color: #94a3b8; transition: transform 0.3s; }
.miperfil-section.open .miperfil-chevron { transform: rotate(180deg); }
.miperfil-section-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}
.miperfil-section.open .miperfil-section-body {
    max-height: 2000px; padding: 0 24px 24px;
}

/* ====== FORM ====== */
.miperfil-form { display: flex; flex-direction: column; gap: 14px; }
.miperfil-form label {
    font-size: 14px; font-weight: 800; color: #0f172a; margin: 0;
}
.miperfil-form input[type="text"],
.miperfil-form input[type="tel"],
.miperfil-form input[type="email"],
.miperfil-form textarea {
    width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0;
    background: #f8fafc; border-radius: 14px; font-size: 15px;
    box-sizing: border-box; transition: all 0.3s;
    font-family: inherit; color: #1e293b;
}
.miperfil-form input:focus,
.miperfil-form textarea:focus {
    border-color: #10b981; background: #fff;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1); outline: none;
}
.miperfil-form textarea { resize: none; }
.miperfil-form input[type="file"] {
    font-size: 14px; color: #64748b; padding: 10px 0;
}

/* ====== REVIEWS ====== */
.miperfil-review {
    background: #f8fafc; border-radius: 16px; padding: 16px;
    margin-bottom: 12px; border: 1px solid #f1f5f9;
}
.miperfil-review-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.miperfil-review-header strong { font-size: 15px; color: #1e293b; }
.miperfil-review p { font-size: 14px; color: #475569; line-height: 1.5; margin: 0; }
.miperfil-review-date { font-size: 12px; color: #94a3b8; margin-top: 8px; display: block; }

/* ====== EMPTY STATE ====== */
.miperfil-empty {
    text-align: center; padding: 32px 20px;
}
.miperfil-empty p {
    font-size: 14px; color: #94a3b8; margin: 12px 0 0;
}

/* ====== LOGOUT ====== */
.miperfil-logout {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: #94a3b8; text-decoration: none;
    font-weight: 600; padding: 10px 20px; border-radius: 12px;
    transition: all 0.2s;
}
.miperfil-logout:hover { color: #ef4444; background: #fef2f2; }

/* ====== RESPONSIVE ====== */
@media (max-width: 500px) {
    .miperfil-header { flex-direction: column; text-align: center; gap: 16px; padding: 28px 20px; }
    .miperfil-badges { justify-content: center; }
    .miperfil-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
