/* resources/css/agent-profile-view.css */

.profile-view-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 3rem;
    font-family: 'Outfit', sans-serif;
}

.profile-banner {
    height: 250px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1a6d6d 100%);
    border-radius: 0 0 24px 24px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.back-btn:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.match-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-profile-banner-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.edit-profile-banner-btn:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.profile-main-card {
    background: white;
    border-radius: 24px;
    margin-top: -100px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 40px;
    position: relative;
    z-index: 10;
}

.profile-header-flex {
    display: flex;
    gap: 30px;
}

.profile-left-col {
    width: 200px;
    flex-shrink: 0;
    text-align: center;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    position: relative;
    margin-top: -90px;
    margin-left: auto;
    margin-right: auto;
    z-index: 5;
}

.profile-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #eee;
    overflow: hidden;
    position: relative;
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-tick {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #1e3a8a;
    color: white;
}

.action-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-whatsapp {
    background: #1a6d6d;
    color: white;
    border-radius: 12px;
    padding: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-call {
    background: white;
    color: #1a6d6d;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-right-col {
    flex-grow: 1;
}

.agent-name {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-verified-txt {
    font-size: 13px;
    background: #ecfdf5;
    color: #10b981;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.badge-irdai {
    font-size: 13px;
    background: #f0fdf4;
    color: #166534;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #dcfce7;
}

.agent-bio {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.quick-stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.quick-stat-pill {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insurance-types {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.insurance-pill {
    background: #eff6ff;
    color: #1e3a8a;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    padding: 8px 20px;
    border-radius: 100px;
    width: fit-content;
    color: #b45309;
    font-weight: 600;
}

.stars {
    color: #f59e0b;
}

/* Secondary Sections */
.profile-content-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    display: none;
    /* Hide default dot */
}

.timeline-custom-icon {
    position: absolute;
    left: -32px;
    top: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    color: #1a6d6d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.timeline-year {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

/* Certifications & Achievements */
.icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.item-icon {
    color: #f59e0b;
    font-size: 18px;
    margin-top: 2px;
}

.item-text {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

.achievements-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Performance Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a6d6d;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Service Fees */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fee-box {
    background: #f0f9ff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.fee-value {
    font-size: 20px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 4px;
}

.fee-label {
    font-size: 13px;
    color: #64748b;
}

/* Media Gallery */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.media-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.max-indicator {
    font-size: 12px;
    color: #94a3b8;
}

/* Reviews */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-reviews {
    font-size: 12px;
    color: #94a3b8;
}

.review-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.review-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
}

.reviewer-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    word-break: break-word;
    flex: 1;
}

.review-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.review-date {
    font-size: 12px;
    color: #94a3b8;
}

.write-review-box {
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    margin-bottom: 30px;
}

.write-review-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-left-col {
        width: 100%;
    }

    .quick-stats-row,
    .insurance-types {
        justify-content: center;
    }

    .stats-grid,
    .fees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .reviews-summary {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .profile-banner {
        height: 180px;
    }

    .back-btn {
        top: 15px;
        left: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .edit-profile-banner-btn,
    .match-badge {
        top: 15px;
        right: 10px;
        left: auto;
        padding: 6px 10px;
        font-size: 11px;
    }

    .profile-main-card {
        padding: 25px 20px;
        margin-top: -60px;
    }

    .agent-name {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .stat-box {
        padding: 15px 10px;
    }

    .stat-value {
        font-size: 18px;
    }

    .review-item {
        padding: 15px;
    }

    .review-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reviewer-info {
        width: 100%;
        gap: 10px;
    }
}

/* Dashboard View Overrides - Fix overlapping */
.profile-dashboard-view {
    padding: 20px 8px;
}

.profile-dashboard-view .profile-main-card {
    margin-top: 0;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-dashboard-view .profile-img-container {
    margin-top: 0;
    margin-bottom: 15px;
}