/**
 * Profile Management Styles
 * Shared styles for student and mentor profile management
 *
 * @package EduBooking_Pro
 * @version 2.2.0
 */

/* ============================================
   Profile View Styles
   ============================================ */

.ebp-student-profile-view,
.ebp-mentor-profile-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.ebp-profile-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ebp-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.ebp-profile-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.ebp-profile-avatar-section img {
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ebp-change-avatar-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ebp-change-avatar-btn:hover {
    background: #fff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ebp-change-avatar-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ebp-profile-info-section {
    flex: 1;
    z-index: 1;
}

.ebp-profile-info-section h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.ebp-student-email,
.ebp-student-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.ebp-student-email .dashicons,
.ebp-student-phone .dashicons {
    color: rgba(255, 255, 255, 0.7);
}

/* Profile Completion */
.ebp-profile-completion {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.ebp-completion-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ebp-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.ebp-completion-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Profile Details */
.ebp-profile-details {
    display: grid;
    gap: 24px;
}

.ebp-detail-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.ebp-detail-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.ebp-detail-section h3 .dashicons {
    color: #667eea;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ebp-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ebp-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ebp-detail-item label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.ebp-detail-item span {
    font-size: 16px;
    color: #1f2937;
    font-weight: 500;
}

.ebp-bio-content,
.ebp-learning-goals p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
}

.ebp-learning-goals {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ebp-learning-goals label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* Statistics Grid */
.ebp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ebp-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ebp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.ebp-stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ebp-stat-icon.ebp-stat-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ebp-stat-icon.ebp-stat-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ebp-stat-icon.ebp-stat-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ebp-stat-icon .dashicons {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ebp-stat-content {
    flex: 1;
}

.ebp-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 4px;
}

.ebp-stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Profile Actions */
.ebp-profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 30px 0;
}

/* ============================================
   Profile Edit Form Styles
   ============================================ */

.ebp-student-profile-edit,
.ebp-profile-edit {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ebp-student-profile-edit h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 10px;
}

.ebp-form-description {
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Fieldsets */
.ebp-profile-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.ebp-profile-form legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 2px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
    width: 100%;
}

.ebp-profile-form legend .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ebp-profile-form fieldset > p.description {
    margin: 0;
    padding: 16px 24px;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
}

.ebp-profile-form fieldset .ebp-form-row,
.ebp-profile-form fieldset .ebp-form-group {
    padding: 0 24px;
}

.ebp-profile-form fieldset .ebp-form-row:last-child,
.ebp-profile-form fieldset .ebp-form-group:last-child {
    padding-bottom: 24px;
}

.ebp-profile-form fieldset .ebp-form-row:first-of-type,
.ebp-profile-form fieldset .ebp-form-group:first-of-type {
    padding-top: 24px;
}

/* Form Groups */
.ebp-form-group {
    margin-bottom: 20px;
}

.ebp-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.ebp-form-group label .required {
    color: #dc2626;
    margin-left: 2px;
}

.ebp-form-group input[type="text"],
.ebp-form-group input[type="email"],
.ebp-form-group input[type="tel"],
.ebp-form-group input[type="url"],
.ebp-form-group input[type="number"],
.ebp-form-group input[type="date"],
.ebp-form-group select,
.ebp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ebp-form-group input:focus,
.ebp-form-group select:focus,
.ebp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ebp-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

/* Form Rows */
.ebp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Checkbox Groups */
.ebp-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
}

.ebp-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Form Actions */
.ebp-form-actions {
    display: flex;
    gap: 12px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 30px;
}

/* Buttons */
.ebp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.ebp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ebp-btn:active {
    transform: translateY(0);
}

.ebp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.ebp-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ebp-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
}

.ebp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ebp-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
}

/* Alerts */
.ebp-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ebp-alert-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.ebp-alert-error {
    background: #fee2e2;
    border: 2px solid #dc2626;
    color: #991b1b;
}

.ebp-alert-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

.ebp-alert-info {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e40af;
}

/* Loading Animation */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 1s linear infinite;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .ebp-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .ebp-profile-info-section h2 {
        font-size: 24px;
    }

    .ebp-detail-grid {
        grid-template-columns: 1fr;
    }

    .ebp-form-row {
        grid-template-columns: 1fr;
    }

    .ebp-stats-grid {
        grid-template-columns: 1fr;
    }

    .ebp-form-actions {
        flex-direction: column;
    }

    .ebp-form-actions .ebp-btn {
        width: 100%;
    }

    .ebp-profile-actions {
        flex-direction: column;
    }

    .ebp-profile-actions .ebp-btn {
        width: 100%;
    }

    .ebp-detail-section {
        padding: 20px;
    }

    .ebp-profile-form legend {
        font-size: 16px;
        padding: 16px 20px;
    }

    .ebp-profile-form fieldset .ebp-form-row,
    .ebp-profile-form fieldset .ebp-form-group {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .ebp-profile-header {
        padding: 20px 15px;
    }

    .ebp-profile-info-section h2 {
        font-size: 20px;
    }

    .ebp-detail-section {
        padding: 16px;
    }

    .ebp-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .ebp-stat-value {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .ebp-change-avatar-btn,
    .ebp-profile-actions,
    .ebp-form-actions {
        display: none;
    }

    .ebp-profile-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
