/**
 * Member Profile Styles
 *
 * @package IncuCommunity\Modules\Members
 * @since 1.0.0
 */

/* ============================================
   Container
   ============================================ */
.incuc-member-profile {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Header / Cover Image
   ============================================ */
.incuc-profile-header {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.incuc-profile-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.incuc-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.incuc-profile-cover.position-top .incuc-cover-image {
    object-position: top;
}

.incuc-profile-cover.position-center .incuc-cover-image {
    object-position: center;
}

.incuc-profile-cover.position-bottom .incuc-cover-image {
    object-position: bottom;
}

/* ============================================
   Main Content Area
   ============================================ */
.incuc-profile-main {
    position: relative;
    padding: 0 30px 30px;
}

/* Avatar */
.incuc-profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin-top: -75px;
    margin-bottom: 20px;
}

.incuc-profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.incuc-profile-online {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
}

.incuc-profile-online.is-online {
    background: #4caf50;
}

.incuc-profile-online.is-offline {
    background: #9e9e9e;
}

/* ============================================
   Profile Info
   ============================================ */
.incuc-profile-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.incuc-profile-details {
    flex: 1;
}

.incuc-profile-name {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.incuc-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.incuc-profile-type {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: #e3f2fd;
    color: #1976d2;
}

.incuc-profile-type.incuc-type-premium {
    background: #fff3e0;
    color: #e65100;
}

.incuc-profile-type.incuc-type-admin {
    background: #fce4ec;
    color: #c2185b;
}

.incuc-profile-joined,
.incuc-profile-activity {
    font-size: 14px;
    color: #666;
}

/* Bio */
.incuc-profile-bio {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Stats */
.incuc-profile-stats {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.incuc-stat-item {
    text-align: center;
}

.incuc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.incuc-stat-label {
    font-size: 13px;
    color: #888;
}

/* ============================================
   Actions
   ============================================ */
.incuc-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.incuc-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.incuc-follow-button {
    background: #0073aa;
    color: #fff;
}

.incuc-follow-button:hover {
    background: #005177;
}

.incuc-follow-button.is-following {
    background: #4caf50;
}

.incuc-follow-button.is-following:hover {
    background: #388e3c;
}

.incuc-message-button {
    background: #6c757d;
    color: #fff;
}

.incuc-message-button:hover {
    background: #545b62;
}

.incuc-block-button,
.incuc-report-button {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.incuc-block-button:hover {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.incuc-report-button:hover {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.incuc-edit-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.incuc-edit-profile-link:hover {
    background: #e9ecef;
    color: #333;
}

/* ============================================
   Tabs Navigation
   ============================================ */
.incuc-profile-tabs {
    margin-top: 30px;
}

.incuc-tabs-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
}

.incuc-tab-link {
    display: block;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}

.incuc-tab-link:hover {
    color: #333;
}

.incuc-tab-link.is-active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* Tab Content */
.incuc-tab-content {
    display: none;
    animation: incuc-fadeIn 0.3s ease;
}

.incuc-tab-content.is-active {
    display: block;
}

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

.incuc-tab-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

/* ============================================
   Report Modal
   ============================================ */
.incuc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.incuc-modal-overlay.is-open {
    display: flex;
}

.incuc-modal {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin: 20px;
}

.incuc-modal h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.incuc-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.incuc-modal-form label {
    font-weight: 500;
    color: #333;
}

.incuc-modal-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.incuc-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.incuc-modal-cancel {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.incuc-modal-submit {
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ============================================
   Not Found State
   ============================================ */
.incuc-profile-not-found {
    text-align: center;
    padding: 80px 20px;
}

.incuc-profile-not-found h2 {
    margin: 0 0 10px;
    color: #333;
}

.incuc-profile-not-found p {
    color: #666;
    margin: 0 0 20px;
}

.incuc-profile-not-found a {
    display: inline-block;
    padding: 10px 25px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .incuc-profile-header {
        height: 180px;
    }

    .incuc-profile-main {
        padding: 0 20px 20px;
    }

    .incuc-profile-avatar {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }

    .incuc-profile-info {
        flex-direction: column;
    }

    .incuc-profile-name {
        font-size: 24px;
    }

    .incuc-profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .incuc-stat-item {
        flex: 1;
        min-width: 80px;
    }

    .incuc-profile-actions {
        width: 100%;
    }

    .incuc-action-button {
        flex: 1;
        justify-content: center;
    }

    .incuc-tabs-nav {
        gap: 0;
    }

    .incuc-tab-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .incuc-profile-header {
        height: 150px;
    }

    .incuc-profile-avatar {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }

    .incuc-profile-stats {
        justify-content: space-around;
    }

    .incuc-action-button {
        padding: 8px 15px;
        font-size: 13px;
    }
}
