/* Frontend styles for Service Detail block */

.wp-block-eliteair-service-detail {
    margin: 60px 0;
}

.service-detail-card {
    background: rgba(36, 36, 36, 0.98);
    display: flex;
    overflow: hidden;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.service-detail-card.reverse {
    flex-direction: row-reverse;
}

/* Optional border styles */
.service-detail-card.has-border {
    /* Border styles are applied inline via JavaScript */
}

/* Optional backdrop blur support */
.service-detail-card.has-backdrop {
    /* Backdrop styles are applied inline via JavaScript */
    /* Fallback for browsers that don't support backdrop-filter */
    position: relative;
}

.service-detail-card.has-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    pointer-events: none;
    z-index: -1;
}

.service-detail-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.service-detail-card:hover .service-detail-image img {
    transform: scale(1.05);
}

.service-detail-overlay {
    position: absolute;
    inset: 0;
}

.service-detail-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.service-detail-info > *:last-child {
    margin-bottom: 0;
}

/* When no image is set, content takes full width */
.service-detail-card.no-image .service-detail-info {
    flex: 1 1 100%;
    width: 100%;
}

.service-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(103, 217, 252, 0.3);
}

.service-detail-title {
    font-size: 1.8rem;
    color: #67d9fc;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.service-detail-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0;
}

.service-detail-description {
    margin-bottom: 30px;
}

.service-detail-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.service-process {
    margin-bottom: 30px;
}

.process-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 0;
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateY(-2px);
}

.process-item.no-icon {
    padding-left: 0;
}

.process-item.no-icon .process-content {
    margin-left: 0;
}

.process-icon {
    flex: 0 0 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 50%;
}

.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.process-item:hover .process-icon {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(103, 217, 252, 0.3);
}

.process-content {
    flex: 1;
}

.process-content h4 {
    font-size: 1.2rem;
    color: #67d9fc;
    margin-bottom: 8px;
    font-weight: 600;
}

.process-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.wp-block-eliteair-service-detail .service-promise {
    margin-top: 20px;
    padding: 20px;
    background: rgba(103, 217, 252, 0.05);
    border-radius: 0.25rem;
}

.wp-block-eliteair-service-detail .service-promise p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
}

.wp-block-eliteair-service-detail .service-promise strong {
    font-weight: 600;
}

/* Transfer Services Specific */
.transfer-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.transfer-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.transfer-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(103, 217, 252, 0.2);
}

.transfer-icon {
    flex: 0 0 60px;
    height: 60px;
    background: linear-gradient(135deg, #67d9fc 0%, #4ac5e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: #242424;
    transition: all 0.3s ease;
}

.transfer-item:hover .transfer-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(103, 217, 252, 0.3);
}

.transfer-content {
    flex: 1;
}

.transfer-content h4 {
    font-size: 1.2rem;
    color: #67d9fc;
    margin-bottom: 8px;
    font-weight: 600;
}

.transfer-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Animations */
.service-detail-card.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.service-detail-card.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-detail-card,
    .service-detail-card.reverse {
        flex-direction: column;
        min-height: auto;
    }

    .service-detail-image {
        flex: 0 0 auto;
        height: 250px;
    }

    .service-detail-info {
        padding: 30px;
    }

    .process-icon,
    .transfer-icon {
        flex: 0 0 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }

    .service-detail-title {
        font-size: 1.5rem;
    }

    .process-content h4,
    .transfer-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .wp-block-eliteair-service-detail {
        margin: 40px 0;
    }

    .service-detail-card {
        border-radius: 0.25rem;
    }

    .service-detail-image {
        height: 200px;
    }

    .service-detail-info {
        padding: 25px;
    }

    .service-detail-title {
        font-size: 1.4rem;
    }

    .service-detail-subtitle {
        font-size: 0.9rem;
    }

    .service-detail-description p {
        font-size: 1rem;
    }

    .process-item,
    .transfer-item {
        flex-direction: column;
        text-align: center;
        padding: 0;
        margin-bottom: 30px;
    }

    .process-item.no-icon {
        padding: 0;
        text-align: left;
        flex-direction: row;
    }

    .process-item.no-icon .process-content {
        margin-left: 0;
        text-align: left;
    }

    .process-icon,
    .transfer-icon {
        margin: 0 auto 15px;
        flex: 0 0 50px;
        height: 50px;
    }

    .service-promise {
        padding: 15px;
    }
}

/* Custom Content Area */
.custom-content-area {
    margin-top: 30px;
    padding: 20px 0;
}

.custom-content-area p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.custom-content-area p:last-child {
    margin-bottom: 0;
}

/* Template-based styling for custom content */

/* General Template */
.custom-content-area.template-general.styled-content h1,
.custom-content-area.template-general.styled-content h2 {
    color: #67d9fc;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 32px;
}

.custom-content-area.template-general.styled-content h1 {
    font-size: 2rem;
}

.custom-content-area.template-general.styled-content h2 {
    font-size: 1.6rem;
}

.custom-content-area.template-general.styled-content h3 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 24px;
}

.custom-content-area.template-general.styled-content h4,
.custom-content-area.template-general.styled-content h5,
.custom-content-area.template-general.styled-content h6 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 16px;
}

/* Premium Template */
.custom-content-area.template-premium.styled-content h1,
.custom-content-area.template-premium.styled-content h2 {
    color: #67d9fc;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 32px;
    text-shadow: 0 2px 10px rgba(103, 217, 252, 0.3);
}

.custom-content-area.template-premium.styled-content h1 {
    font-size: 2.2rem;
}

.custom-content-area.template-premium.styled-content h2 {
    font-size: 1.8rem;
}

.custom-content-area.template-premium.styled-content h3 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 12px;
    margin-top: 24px;
    border-left: 3px solid #67d9fc;
    padding-left: 12px;
}

/* Minimal Template */
.custom-content-area.template-minimal.styled-content h1,
.custom-content-area.template-minimal.styled-content h2 {
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 16px;
    margin-top: 32px;
    letter-spacing: 0.5px;
}

.custom-content-area.template-minimal.styled-content h1 {
    font-size: 2rem;
}

.custom-content-area.template-minimal.styled-content h2 {
    font-size: 1.6rem;
}

.custom-content-area.template-minimal.styled-content h3 {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 12px;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Luxury Template */
.custom-content-area.template-luxury.styled-content h1,
.custom-content-area.template-luxury.styled-content h2 {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 32px;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.custom-content-area.template-luxury.styled-content h1 {
    font-size: 2.4rem;
    font-family: serif;
}

.custom-content-area.template-luxury.styled-content h2 {
    font-size: 1.9rem;
    font-family: serif;
}

.custom-content-area.template-luxury.styled-content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 24px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 4px;
}

/* Common styling for all templates */
.custom-content-area.styled-content h4 {
    font-size: 1.1rem;
}

.custom-content-area.styled-content h5 {
    font-size: 1rem;
}

.custom-content-area.styled-content h6 {
    font-size: 0.9rem;
}

.custom-content-area.styled-content ul,
.custom-content-area.styled-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.custom-content-area.styled-content li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    line-height: 1.6;
}

.custom-content-area.styled-content blockquote {
    border-left: 4px solid #67d9fc;
    margin: 20px 0;
    padding: 16px 0 16px 20px;
    background: rgba(103, 217, 252, 0.05);
    font-style: italic;
}

.custom-content-area.styled-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.custom-content-area.styled-content strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .custom-content-area.styled-content h1 {
        font-size: 1.8rem;
    }
    
    .custom-content-area.styled-content h2 {
        font-size: 1.4rem;
    }
    
    .custom-content-area.styled-content h3 {
        font-size: 1.2rem;
    }
    
    .custom-content-area.template-luxury.styled-content h1 {
        font-size: 2rem;
    }
    
    .custom-content-area.template-luxury.styled-content h2 {
        font-size: 1.6rem;
    }
}