/* Service Page Styles */

.service-page {
    min-height: 100vh;
}

/* Gallery */
.service-gallery {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
    background: var(--color-bg-tertiary, #f1f5f9);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.7);
    transform: scale(1.1);
    z-index: 1;
}

.gallery-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.gallery-image {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 3;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text, #1e293b);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot.active {
    background: var(--color-primary, #1e40af);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: var(--color-primary-light, #3b82f6);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary, #f8fafc);
}

.placeholder-content {
    text-align: center;
    color: var(--color-text-secondary, #64748b);
}

.placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* Service Description */
.service-description {
    padding: 48px 0;
    background: var(--color-bg, #fff);
}

.service-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.service-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text, #1e293b);
}

.service-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary, #64748b);
    margin: 0;
}

/* Pricing */
.service-pricing {
    padding: 48px 0;
    background: var(--color-bg-secondary, #f8fafc);
}

.service-pricing h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 32px;
}

.pricing-container {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-bg, #fff);
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--color-border, #e2e8f0);
    transition: all 0.2s ease;
}

.pricing-item:hover {
    border-color: var(--color-primary, #1e40af);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pricing-item__name {
    flex: 1;
    font-size: 15px;
    color: var(--color-text, #1e293b);
}

.pricing-item__name strong {
    font-weight: 600;
}

.pricing-item__description {
    font-size: 13px;
    color: var(--color-text-muted, #94a3b8);
    margin-top: 4px;
}

.pricing-item__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary, #1e40af);
    white-space: nowrap;
    margin-left: 16px;
}

/* Tags */
.service-tags {
    padding: 48px 0;
    background: var(--color-bg, #fff);
}

.service-tags h2 {
    text-align: center;
    margin-bottom: 24px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    display: inline-flex;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--color-text-secondary, #64748b);
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--color-bg-tertiary, #f1f5f9);
    border-color: var(--color-primary, #1e40af);
    color: var(--color-primary, #1e40af);
}

/* CTA */
.service-cta {
    padding: 48px 0;
    background: var(--color-bg-secondary, #f8fafc);
}

.cta-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 32px;
    background: var(--color-bg, #fff);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--color-border, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 15px;
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 24px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading */
.loading {
    text-align: center;
    padding: 32px;
    color: var(--color-text-muted, #94a3b8);
}

/* Photo Upload Modal */
#photo-upload-modal .modal__content {
    max-width: 450px;
}

#photo-upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#photo-upload-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#photo-upload-form input[type="file"] {
    padding: 12px;
    border: 2px dashed var(--color-border-dark, #cbd5e1);
    border-radius: 8px;
    background: var(--color-bg-secondary, #f8fafc);
    cursor: pointer;
    transition: all 0.2s ease;
}

#photo-upload-form input[type="file"]:hover {
    border-color: var(--color-primary, #1e40af);
}

/* Responsive */
@media (max-width: 768px) {
    .service-gallery {
        height: 40vh;
        min-height: 280px;
    }
    
    .gallery-image {
        max-width: 95%;
        max-height: 85%;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    
    .service-description,
    .service-pricing,
    .service-tags,
    .service-cta {
        padding: 32px 0;
    }
    
    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pricing-item__price {
        margin-left: 0;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .service-gallery {
        height: 35vh;
        min-height: 220px;
    }
    
    .cta-card {
        padding: 24px 16px;
    }
}
