/* Responsive Profile CSS - Add to your existing CSS */

/* Base responsive settings */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout structure */
.profile-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero section responsiveness */
.profile-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 20px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.profile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 100%);
    border-radius: 8px;
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-verified {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-verified i {
    color: #4CAF50;
    font-size: 16px;
}

.profile-hero-info {
    color: white;
    width: 100%;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.profile-meta > div {
    margin: 0 10px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.profile-actions a, 
.profile-actions button {
    min-width: 140px;
    margin: 5px;
    text-align: center;
}

/* Layout responsiveness */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Tabs responsiveness */
.profile-tabs {
    overflow-x: auto;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tabs-navigation ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tabs-navigation li {
    flex: 0 0 auto;
}

.tabs-navigation a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tabs-navigation a.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
    font-weight: 600;
}

.tabs-navigation .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 12px;
    margin-left: 5px;
    padding: 0 6px;
}

/* Tab content responsiveness */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card stylings */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.card-body {
    padding: 20px;
}

/* Service grid responsiveness */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-header {
    position: relative;
}

.service-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f6ad55;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-body {
    padding: 15px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}

.service-description {
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #e2e8f0;
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-weight: 600;
    font-size: 18px;
    color: #2d3748;
}

/* Portfolio grid */
.portfolio-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 10px;
}

.gallery-action button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-action button:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Review styles */
.reviews-overview {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rating-average {
    text-align: center;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.rating-stars {
    color: #f6ad55;
    font-size: 24px;
    margin: 5px 0;
}

.rating-breakdown {
    width: 100%;
    max-width: 400px;
}

.rating-breakdown-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stars-label {
    width: 50px;
    text-align: right;
    margin-right: 10px;
}

.progress {
    flex: 1;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #f6ad55;
}

.count-label {
    width: 30px;
}

.review-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-date {
    font-size: 12px;
    color: #718096;
}

.review-service {
    font-size: 14px;
    margin-bottom: 10px;
    color: #4a5568;
}

.review-content {
    margin-bottom: 15px;
    line-height: 1.5;
}

.review-reply {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

/* Contact list styling */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #ebf4ff;
    color: #3182ce;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 3px;
}

.contact-value {
    color: #2d3748;
}

.contact-value a {
    color: #2d3748;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f7fafc;
    color: #4a5568;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.social-link:hover {
    background-color: #3182ce;
    color: white;
}

/* Stats styling */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color: #ebf4ff;
    color: #3182ce;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #718096;
}

/* Availability styles */
.availability-status {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.availability-status.available {
    background-color: #f0fff4;
}

.availability-status.busy {
    background-color: #fff5f5;
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.availability-status.available .status-icon {
    background-color: #c6f6d5;
    color: #38a169;
}

.availability-status.busy .status-icon {
    background-color: #fed7d7;
    color: #e53e3e;
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #edf2f7;
    color: #4a5568;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #e2e8f0;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
    max-width: 90%;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #48bb78;
}

.notification-danger {
    border-left: 4px solid #f56565;
}

.notification-icon {
    margin-right: 12px;
    font-size: 20px;
}

.notification-success .notification-icon {
    color: #48bb78;
}

.notification-danger .notification-icon {
    color: #f56565;
}

.notification-content {
    flex: 1;
    padding-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

/* Modals */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

/* Section dividers */
.section-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #718096;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.section-divider span {
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
    .portfolio-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-hero-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .profile-avatar {
        margin-right: 25px;
        margin-bottom: 0;
    }
    
    .profile-meta {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .profile-actions {
        justify-content: flex-start;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .rating-summary {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .profile-layout {
        grid-template-columns: 3fr 1fr;
    }
    
    .profile-tabs {
        grid-column: 1 / -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Make categories responsive */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid var(--category-color, #3182ce);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: var(--category-color, #3182ce);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Fix for sidebar on mobile */
@media (max-width: 1023px) {
    .profile-sidebar {
        order: -1;
    }
}

/* Adjustments for dashboard layout */
.dashboard-layout {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .dashboard-layout {
        flex-direction: row;
    }
    
    .dashboard-sidebar {
        width: 250px;
        flex-shrink: 0;
    }
    
    .dashboard-content {
        flex: 1;
    }
}

/* Contact modal adjustments */
@media (max-width: 640px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

/* Activity timeline */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-marker.completed {
    border-color: #48bb78;
    color: #48bb78;
}

.timeline-marker.active {
    border-color: #3182ce;
    color: #3182ce;
}

.timeline-content {
    padding-bottom: 10px;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.timeline-provider {
    display: flex;
    align-items: center;
}

.provider-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 640px) {
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}