/* Styles for the service details modal */

:root {
    /* Map local variables to common.css */
    --primary-bg: var(--card-background, #ffffff);
    --card-radius: 16px;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Base modal styles - creates a fullscreen overlay with centered content */
.service-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal content container - holds all the service information */
.modal-content {
    background-color: var(--primary-bg);
    border-radius: var(--card-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px var(--shadow-color);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
    color: var(--text-color);
}

/* Modal entrance animation - smooth fade in from top */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal header - contains title and close button */
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.8rem;
}

/* Close button - styled as a simple X with hover effect */
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Modal body - contains all service information sections */
.modal-body {
    padding: 25px;
}

/* Service details container - two-column layout for image and info */
.service-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Image container - holds the service image with shadow and rounded corners */
.service-detail-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Service image - with subtle zoom effect on hover */
.service-detail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
