/* 
 * Single Service and Request Page Styles
 * This file contains styles for the single service and request pages
 */

/* Common Container Styles */
.single-service-container,
.single-request-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .single-service-container,
    .single-request-container {
        padding: 1.5rem 1rem;
    }
}

/* Breadcrumbs Styles */
.service-breadcrumbs,
.request-breadcrumbs {
    background-color: white;
    border-bottom: 1px solid rgb(229 231 235);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.service-breadcrumbs .services-container,
.request-breadcrumbs .services-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgb(107 114 128);
}

.service-breadcrumbs a,
.request-breadcrumbs a {
    color: rgb(107 114 128);
    text-decoration: none;
    transition: color 0.2s;
}

.service-breadcrumbs a:hover,
.request-breadcrumbs a:hover {
    color: rgb(17 24 39);
}

.service-breadcrumbs .separator,
.request-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: rgb(107 114 128);
}

.service-breadcrumbs span,
.request-breadcrumbs span {
    color: rgb(17 24 39);
    font-weight: 500;
}

/* Detail Grid Layout */
.service-detail-grid,
.request-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .service-detail-grid,
    .request-detail-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .service-detail-grid,
    .request-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Main Content Styles */
.service-main-content,
.request-main-content {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Styles */
.service-header,
.request-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.service-title,
.request-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-meta,
.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.service-meta > div,
.request-meta > div {
    display: flex;
    align-items: center;
}

.service-meta i,
.request-meta i {
    margin-right: 0.5rem;
    color: #9ca3af;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Images Gallery Styles */
.service-images,
.request-images {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.service-main-image,
.request-main-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.service-main-image img,
.request-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.service-thumbnails,
.request-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.service-thumbnail,
.request-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.service-thumbnail:hover,
.request-thumbnail:hover {
    border-color: #3b5bdb;
}

.service-thumbnail img,
.request-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Description Styles */
.service-description,
.request-description {
    padding: 1.5rem;
}

.service-description h2,
.request-description h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.service-content,
.request-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-content p,
.request-content p {
    margin-bottom: 1rem;
}

.service-content ul,
.request-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-content ol,
.request-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Tags Styles */
.service-tags,
.request-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag,
.request-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sidebar Styles */
.service-sidebar,
.request-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Price/Budget Card Styles */
.service-price-card,
.request-budget-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.service-price,
.request-budget {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.price-amount,
.budget-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.request-deadline,
.request-urgency {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.request-deadline i,
.request-urgency i {
    margin-right: 0.5rem;
    color: #9ca3af;
    width: 1rem;
    text-align: center;
}

/* Provider/Requester Styles */
.service-provider,
.request-requester {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.provider-avatar,
.requester-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.provider-avatar.large,
.requester-avatar.large {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
}

.provider-info,
.requester-info {
    flex: 1;
}

.provider-name,
.requester-name {
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.provider-name:hover,
.requester-name:hover {
    color: #3b5bdb;
    text-decoration: underline;
}

.provider-rating,
.requester-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.rating-value {
    font-weight: 600;
    color: #1f2937;
}

.rating-count {
    color: #6b7280;
}

/* Contact Options Styles */
.service-contact-options,
.request-contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn,
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background-color: #3b5bdb;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.contact-btn:hover,
.login-btn:hover {
    background-color: #364fc7;
}

.contact-btn i,
.login-btn i {
    margin-right: 0.5rem;
}

/* Provider/Requester Card Styles */
.service-provider-card,
.request-requester-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.service-provider-card h3,
.request-requester-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.provider-details,
.requester-details {
    display: flex;
    margin-bottom: 1.5rem;
}

.provider-meta,
.requester-meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.provider-location,
.requester-location,
.provider-member-since,
.requester-member-since {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.provider-location i,
.requester-location i,
.provider-member-since i,
.requester-member-since i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.view-profile-btn {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.view-profile-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* Related Services/Requests Styles */
.related-services,
.related-requests {
    margin-top: 3rem;
}

.related-services h2,
.related-requests h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

/* Phone Modal Styles */
.phone-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.phone-modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
}

.phone-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.phone-call-btn,
.phone-sms-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.phone-call-btn {
    background-color: #dbeafe;
    color: #3b5bdb;
}

.phone-call-btn:hover {
    background-color: #bfdbfe;
}

.phone-sms-btn {
    background-color: #dcfce7;
    color: #10b981;
}

.phone-sms-btn:hover {
    background-color: #bbf7d0;
}

.phone-call-btn i,
.phone-sms-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.phone-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #6b7280;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-close-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .service-title,
    .request-title {
        font-size: 1.5rem;
    }
    
    .service-meta,
    .request-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-amount,
    .budget-amount {
        font-size: 1.75rem;
    }
    
    .phone-modal-content {
        padding: 1.5rem;
    }
    
    .phone-number {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .phone-actions {
        flex-direction: column;
    }
}

/* Completed Request Styles */
.completed-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 0.5rem;
    font-weight: 500;
    width: 100%;
}

.completed-message i {
    margin-right: 0.5rem;
    color: #10b981;
}

.card-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-completed i {
    margin-right: 0.25rem;
    color: #10b981;
}

/* Owner Actions Styles */
.owner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.button-outline {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

.button-outline:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.w-full {
    width: 100%;
}

.mr-2 {
    margin-right: 0.5rem;
}
