/**
 * Custom Section Styles
 * Styles for the custom HTML section component
 */

/* Custom Section Slot Container */
.custom-section-slot {
    position: relative;
    line-height: 0;
}

.custom-section-slot .custom-section iframe {
    display: block;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero hidden state padding adjustment */
.custom-section-slot.hero-hidden:has(custom-section) {
    padding-top: 10px;
}

@media (max-width: 992px) {
    .custom-section-slot.hero-hidden:has(custom-section) {
        padding-top: 4px;
    }
}

body.edit-mode .custom-section-slot.first-slot {
    padding-top: 0;
}

/* Add Section Button */
.add-section-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin: 1rem auto;
    padding: 0;
    border: 2px dashed var(--accent-color, #007AFF);
    border-radius: 50%;
    background: transparent;
    color: var(--accent-color, #007AFF);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.add-section-btn:hover {
    opacity: 1;
    background: var(--accent-color, #007AFF);
    color: white;
    transform: scale(1.1);
}

.add-section-btn i {
    font-size: 1.25rem;
}

/* Custom Section Wrapper */
.custom-section-wrapper {
    position: relative;
}

/* Custom Section Placeholder (empty state) */
.custom-section-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    border: 1.5px dashed var(--secondary-color-light) !important;
    border-radius: 12px;
    background: white;
}

.custom-section-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color, #007AFF) !important;
    color: white !important;
    border-radius: 50%;
    margin-bottom: 1.25rem !important;
}

.custom-section-icon i {
    font-size: 1.75rem;
}

.custom-section-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary, #333);
    margin-bottom: 0.5rem;
}

.custom-section-hint {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    margin: 0;
}

/* Section Edit Controls */
.section-edit-controls {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 2;
    display: flex;
    gap: 14px;
}

/* Visibility wrapper transitions for custom sections */
.section-visibility-wrapper > .custom-section {
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.section-visibility-wrapper:has(.btn-section-toggle.no-opacity:hover) > .custom-section {
    opacity: 0.9;
    transform: translateY(-0.5rem);
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .add-section-btn {
        width: 40px;
        height: 40px;
    }
    
    .add-section-btn i {
        font-size: 1rem;
    }
    
    .custom-section-placeholder {
        padding: 2rem 1rem;
    }
    
    .custom-section-icon {
        width: 48px;
        height: 48px;
    }
    
    .custom-section-icon i {
        font-size: 1.25rem;
    }

    .section-edit-controls {
        top: 10px;
        left: 10px;
        gap: 7px;
    }
}
