/**
 * Guideli Widget Main Styles
 * Desktop and Tablet Optimized
 * Google PageSpeed Optimized
 */

/* === BASE STYLES === */
.guideli-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    box-sizing: border-box;
    will-change: transform;
    contain: layout style paint;
}

.guideli-container *,
.guideli-container *::before,
.guideli-container *::after {
    box-sizing: inherit;
}

/* === LIGHT THEME (DEFAULT) === */
.guideli-theme-light {
    background: 
        radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.15), transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.12), transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08), transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    color: #0f172a;
    backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 35px;
    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),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.guideli-theme-light::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;
    will-change: background-position, opacity;
}

.guideli-theme-light::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;
}

/* === DARK THEME === */
.guideli-theme-dark {
    background: 
        radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.25), transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.22), transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18), transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #f8fafc;
    backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.guideli-theme-dark::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: 1;
    will-change: background-position, opacity;
}

.guideli-theme-dark::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.1), transparent 50%),
        radial-gradient(800px circle at 70% 80%, rgba(236, 72, 153, 0.08), transparent 50%);
    pointer-events: none;
    border-radius: 32px;
    z-index: 1;
}

/* === HEADER SECTION === */
.guideli-header-section {
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(15, 23, 42, 0.15),
        0 12px 24px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.guideli-theme-dark .guideli-header-section {
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.guideli-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(124, 58, 237, 0.15), transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.12), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.guideli-header-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.guideli-highlight-1 {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.guideli-highlight-2 {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* === COLOR DIVIDER === */
.guideli-color-divider {
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6);
    margin: 25px 0;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.guideli-color-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: dividerShine 3s ease-in-out infinite;
    will-change: left;
}

/* === CONTENT SECTIONS === */
.guideli-content-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.04),
        0 10px 20px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guideli-theme-dark .guideli-content-section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.guideli-content-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(15, 23, 42, 0.08),
        0 15px 30px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.guideli-theme-dark .guideli-content-section:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.guideli-content-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: 16px;
}

.guideli-content-text {
    font-size: clamp(14px, 2vw, 15px);
    line-height: 1.6;
    color: #475569;
    margin-bottom: 15px;
    text-align: justify;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.guideli-theme-dark .guideli-content-text {
    color: #cbd5e1;
}

.guideli-content-text:last-child {
    margin-bottom: 0;
}

.guideli-section-subtitle {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.guideli-theme-dark .guideli-section-subtitle {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === DIAMOND DIVIDER === */
.guideli-diamond-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    gap: 15px;
}

.guideli-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);
    will-change: transform, box-shadow;
}

.guideli-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;
    will-change: opacity, transform;
}

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

.guideli-content-text a:hover,
.guideli-content-text .guideli-link:hover {
    color: #a855f7;
    border-bottom-color: #a855f7;
}

.guideli-theme-dark .guideli-content-text a,
.guideli-theme-dark .guideli-content-text .guideli-link {
    color: #a78bfa;
    border-bottom-color: rgba(167, 139, 250, 0.3);
}

.guideli-theme-dark .guideli-content-text a:hover,
.guideli-theme-dark .guideli-content-text .guideli-link:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

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

@keyframes dividerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@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);
    }
}

/* === RESPONSIVE DESKTOP/TABLET === */
@media (max-width: 1200px) {
    .guideli-container {
        max-width: 100%;
        margin: 0;
    }
    
    .guideli-theme-light,
    .guideli-theme-dark {
        padding: 30px;
        border-radius: 20px;
    }
    
    .guideli-header-section {
        padding: 25px;
        border-radius: 16px;
    }
    
    .guideli-content-section {
        padding: 20px;
        border-radius: 14px;
    }
}

@media (max-width: 992px) {
    .guideli-theme-light,
    .guideli-theme-dark {
        padding: 25px;
        border-radius: 18px;
    }
    
    .guideli-header-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .guideli-content-section {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .guideli-color-divider {
        margin: 20px 0;
    }
    
    .guideli-diamond-divider {
        margin: 20px 0;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.guideli-container {
    contain: layout style paint;
    isolation: isolate;
}

.guideli-header-section,
.guideli-content-section {
    contain: layout style;
}

.guideli-diamond,
.guideli-color-divider::before {
    contain: layout;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .guideli-container *,
    .guideli-container *::before,
    .guideli-container *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .guideli-container {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .guideli-header-section {
        background: #f5f5f5 !important;
        color: black !important;
    }
    
    .guideli-content-section {
        background: white !important;
        border: 1px solid #ddd !important;
    }
    
    .guideli-color-divider,
    .guideli-diamond-divider {
        display: none !important;
    }
} 