/* Explained Widget - Desktop Styles */
.explained-widget {
    width: 100%;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: #0f172a;
    line-height: 1.6;
    padding: 0;
    min-height: auto;
    font-weight: 400;
    box-sizing: border-box;
}

.explained-container {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 40px 80px rgba(15, 23, 42, 0.06),
        0 20px 40px rgba(15, 23, 42, 0.04),
        0 10px 20px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.explained-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899, #f97316, #fbbf24, #7c3aed);
    background-size: 500% 100%;
    animation: luxuryShimmer 8s ease-in-out infinite;
    border-radius: 32px 32px 0 0;
    opacity: 0.9;
}

.explained-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(600px circle at 30% 20%, rgba(124, 58, 237, 0.03), transparent 50%),
        radial-gradient(800px circle at 70% 80%, rgba(236, 72, 153, 0.02), transparent 50%);
    pointer-events: none;
    border-radius: 32px;
    z-index: 1;
}

@keyframes luxuryShimmer {
    0%, 100% { 
        background-position: -200% 0;
        opacity: 0.7;
    }
    50% { 
        background-position: 300% 0;
        opacity: 1;
    }
}

.explained-section {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.explained-title,
.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.progressive-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.04),
        0 10px 20px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.progressive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(400px circle at 20% 20%, rgba(124, 58, 237, 0.02), transparent 50%),
        radial-gradient(600px circle at 80% 80%, rgba(236, 72, 153, 0.015), transparent 50%);
    pointer-events: none;
    border-radius: 20px;
}

.progressive-content-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.progressive-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.progressive-illustration {
    width: 120px;
    height: 120px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.2);
    animation: phoneGlow 4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes phoneGlow {
    0%, 100% { 
        box-shadow: 0 15px 30px rgba(124, 58, 237, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
        transform: scale(1.02);
    }
}

.explained-text,
.section-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 12px;
    text-align: justify;
}

.game-title {
    font-style: italic;
    font-weight: 500;
    color: #374151;
}

.branded-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.04),
        0 10px 20px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.branded-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(400px circle at 20% 20%, rgba(124, 58, 237, 0.02), transparent 50%),
        radial-gradient(600px circle at 80% 80%, rgba(236, 72, 153, 0.015), transparent 50%);
    pointer-events: none;
    border-radius: 20px;
}

.branded-content {
    position: relative;
    z-index: 2;
}

.branded-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 18px;
    text-align: justify;
}

.branded-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branded-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.branded-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-top: 2px;
}

.branded-item-content {
    flex: 1;
}

.branded-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.branded-item-text {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 0;
}

.library-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.library-link:hover {
    color: #a855f7;
    border-bottom-color: #a855f7;
}

.diamond-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    gap: 15px;
}

.diamond {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ec4899, #f97316, #fbbf24);
    transform: rotate(45deg);
    border-radius: 3px;
    position: relative;
    animation: luxuryDiamondGlow 4s ease-in-out infinite;
    box-shadow: 0 4px 8px rgba(236, 72, 153, 0.3);
}

.diamond::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ec4899, #f97316, #fbbf24, #ec4899);
    border-radius: 5px;
    z-index: -1;
    animation: diamondBorder 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes luxuryDiamondGlow {
    0%, 100% { 
        box-shadow: 0 4px 8px rgba(236, 72, 153, 0.3);
        transform: rotate(45deg) scale(1);
    }
    50% { 
        box-shadow: 0 8px 16px rgba(236, 72, 153, 0.5);
        transform: rotate(45deg) scale(1.1);
    }
}

@keyframes diamondBorder {
    0%, 100% { 
        opacity: 0.6;
        transform: rotate(45deg) scale(1);
    }
    50% { 
        opacity: 1;
        transform: rotate(45deg) scale(1.2);
    }
}

/* Remove Elementor widget container styling */
.elementor-widget-explained-widget .elementor-widget-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Performance optimizations */
.explained-widget * {
    box-sizing: border-box;
}

.explained-widget img {
    max-width: 100%;
    height: auto;
}

/* Accessibility improvements */
.explained-widget:focus-within {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.branded-item:focus-within {
    outline: 1px solid #7c3aed;
    outline-offset: 1px;
}

/* Strong tags styling */
.explained-widget strong {
    font-weight: 600 !important;
    color: #1e293b !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.explained-widget.theme-dark strong {
    color: #e2e8f0 !important;
} 