/**
 * Glassmorphic Heading Widget Styles
 */

.glassmorphic-heading-widget {
    position: relative;
    width: 100%;
}

.glassmorphic-heading-wrapper {
    display: flex;
    width: 100%;
}

.glassmorphic-heading-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Icon Container */
.glassmorphic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    order: -1; /* Always on top */
}

.glassmorphic-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.glassmorphic-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Heading Styles */
.glassmorphic-heading-text {
    margin: 0;
    width: 100%;
}

/* Icon Position Variations - Icon always on top */
.glassmorphic-heading-content.icon-right {
    align-items: flex-end;
}

.glassmorphic-heading-content.icon-left {
    align-items: flex-start;
}

.glassmorphic-heading-content .glassmorphic-heading-text {
    text-align: left;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glassmorphic-icon {
        width: 70px;
        height: 70px;
    }

    .glassmorphic-icon svg {
        width: 32px;
        height: 32px;
    }

    .glassmorphic-heading-content {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .glassmorphic-icon {
        width: 60px;
        height: 60px;
    }

    .glassmorphic-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .glassmorphic-icon {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .glassmorphic-icon:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Animation on load */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glassmorphic-heading-widget {
    animation: fadeInScale 0.5s ease-out;
}

/* Typography specific styles */
.glassmorphic-heading-text strong,
.glassmorphic-heading-text b {
    font-weight: 700;
}

.glassmorphic-heading-text em,
.glassmorphic-heading-text i {
    font-style: italic;
}

/* Ensure proper spacing when max-width is applied */
.glassmorphic-heading-widget[style*="max-width"] {
    margin-left: auto;
    margin-right: auto;
}

/* Additional hover effects for the entire widget */
.glassmorphic-heading-widget:hover .glassmorphic-icon {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

/* Smooth transitions for all interactive elements */
.glassmorphic-heading-widget * {
    transition-property: transform, opacity, background-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}