/* ===== PROFILE STYLES ===== */

.profile-section {
    padding: 40px 0 80px;
}

.profile-container {
    display: flex;
    gap: 30px;
}

/* Profile Sidebar */
.profile-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.profile-info {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.profile-title {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.profile-company {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.profile-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.profile-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-stars {
    color: #ffc107;
    margin-bottom: 5px;
}

.rating-value {
    font-weight: 600;
    margin-right: 5px;
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.profile-contact, .profile-social {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-dark);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-list li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.contact-list li i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-list a {
    color: var(--text-medium);
}

.contact-list a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-block i {
    margin-right: 5px;
}

/* Profile Content */
.profile-content {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0;
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--bg-dark);
    background-color: var(--bg-light);
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    background-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* About Tab */
.section-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-medium);
}

.about-section, .skills-section, .experience-section, .education-section {
    margin-bottom: 40px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 15px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 20px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--bg-dark);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    z-index: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.timeline-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.timeline-company {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-text {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Listings Tab */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.listing-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--bg-dark);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.listing-img {
    position: relative;
    height: 180px;
}

.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
}

.listing-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: var(--success);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
}

.listing-status.inactive {
    background-color: var(--text-light);
}

.listing-content {
    padding: 20px;
}

.listing-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.listing-price {
    font-weight: 700;
    color: var(--primary-color);
}

.listing-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.listing-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.listing-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-dark);
}

.stat {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.stat i {
    margin-right: 5px;
    color: var(--primary-color);
}

.listing-actions {
    display: flex;
    justify-content: space-between;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.action-btn i {
    margin-right: 5px;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn.delete-btn:hover {
    color: var(--danger);
}

.action-btn.activate-btn:hover {
    color: var(--success);
}

.see-more-container {
    text-align: center;
}

/* Business Cards Tab */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.business-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--bg-dark);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.card-wrapper {
    padding: 15px;
}

.card-front {
    border-radius: var(--border-radius);
    padding: 20px;
    min-height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-front.classic {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.card-front.modern {
    background-color: #4a6fa5;
    color: white;
}

.card-front.creative {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #333;
}

.card-front.minimal {
    background-color: white;
    border: 1px solid #eee;
}

.card-logo {
    width: 60px;
    height: 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.modern .card-name, 
.modern .card-title, 
.modern .card-company,
.modern .card-contacts {
    color: white;
}

.card-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.card-company {
    font-weight: 500;
    margin-bottom: 10px;
}

.card-contacts {
    font-size: 0.85rem;
    margin-top: auto;
}

.contact-item {
    margin-bottom: 5px;
}

.contact-item i {
    width: 15px;
    margin-right: 5px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid var(--bg-dark);
}

.card-primary-status {
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card-action-btn {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 1rem;
    cursor: pointer;
}

.card-action-btn:hover {
    color: var(--primary-color);
}

.card-action-btn.set-primary:hover {
    color: #ffc107;
}

/* Reviews Tab */
.reviews-filter {
    display: flex;
    align-items: center;
}

.reviews-filter select {
    padding: 8px 15px;
    border: 1px solid var(--bg-dark);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 5px;
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    width: 70px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 15px;
}

.rating-fill {
    height: 100%;
    background-color: #ffc107;
}

.rating-count {
    width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bg-dark);
}

.review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.review-text p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    background-color: white;
    border: 1px solid var(--bg-dark);
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.pagination-item.active, .pagination-item:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-item.next, .pagination-item.prev {
    font-size: 0.8rem;
}

/* User Dropdown Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    background-color: var(--bg-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    margin-right: 5px;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 220px;
    z-index: 100;
    overflow: hidden;
    display: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown ul {
    padding: 0;
}

.user-dropdown li {
    margin: 0;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-medium);
    transition: all 0.3s ease;
    position: relative;
}

.user-dropdown a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.user-dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.user-dropdown a.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.user-dropdown .divider {
    height: 1px;
    background-color: var(--bg-dark);
    margin: 5px 0;
}

.user-dropdown a.logout {
    color: var(--danger);
}

.user-dropdown a.logout:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

.badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        order: 1;
    }
    
    .profile-content {
        order: 2;
    }
    
    .profile-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-btn {
        padding: 15px 15px;
    }
}

@media (max-width: 768px) {
    .listings-grid, .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .tab-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .user-menu-toggle .user-name {
        display: none;
    }
}