/* Google Fonts Import for Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* TextBoxem Widget Styles */
.textboxem-widget {
    position: relative;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding: 25px 15px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Light Theme */
.textboxem-theme-light {
    background: transparent;
    color: #0f172a;
}

/* Dark Theme */
.textboxem-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: #f1f5f9;
}

/* Theme Switcher */
.textboxem-theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-icon {
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.textboxem-theme-light .dark-icon {
    opacity: 0.3;
}

.textboxem-theme-dark .light-icon {
    opacity: 0.3;
}

/* Container */
.textboxem-container {
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    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);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.textboxem-theme-dark .textboxem-container {
    background: rgba(15, 23, 42, 0.95);
    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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.textboxem-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: none;
    border-radius: 32px 32px 0 0;
    opacity: 0.9;
}

.textboxem-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 textboxem-luxury-shimmer {
    0%, 100% { 
        background-position: -200% 0;
        opacity: 0.7;
    }
    50% { 
        background-position: 300% 0;
        opacity: 1;
    }
}

/* Header Section */
.textboxem-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;
}

.textboxem-theme-dark .textboxem-header-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0, #f1f5f9);
    box-shadow: 
        0 25px 50px rgba(248, 250, 252, 0.15),
        0 12px 24px rgba(248, 250, 252, 0.1),
        inset 0 1px 0 rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.textboxem-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;
}

/* Main Title */
.textboxem-main-title {
    font-size: 38px;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.textboxem-theme-dark .textboxem-main-title {
    color: #0f172a;
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.textboxem-trophy-icon {
    font-size: 42px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.4));
    animation: none;
}

@keyframes textboxem-trophy-glow {
    0%, 100% { 
        filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.4));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 8px 16px rgba(249, 115, 22, 0.6));
        transform: scale(1.05);
    }
}

.textboxem-bonuses-text,
.textboxem-guide-text {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Color Divider */
.textboxem-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;
    z-index: 2;
}

.textboxem-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: none;
}

@keyframes textboxem-divider-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Content Section */
.textboxem-content-section {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.textboxem-section-title {
    font-size: 26px;
    font-weight: 600;
    background: linear-gradient(135deg, #0f172a, #1e293b, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 4px solid #7c3aed;
    background-color: rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.textboxem-theme-dark .textboxem-section-title {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-left-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.1);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.textboxem-content,
.textboxem-main-content {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    font-weight: 400;
    text-align: justify;
    transition: color 0.3s ease;
}

.textboxem-theme-dark .textboxem-content,
.textboxem-theme-dark .textboxem-main-content {
    color: #cbd5e1;
}

/* WYSIWYG Content Styling */
.textboxem-content h1, .textboxem-content h2, .textboxem-content h3,
.textboxem-content h4, .textboxem-content h5, .textboxem-content h6,
.textboxem-main-content h1, .textboxem-main-content h2, .textboxem-main-content h3,
.textboxem-main-content h4, .textboxem-main-content h5, .textboxem-main-content h6 {
    margin-bottom: 16px;
    margin-top: 20px;
    font-weight: 600;
    line-height: 1.3;
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 4px solid #7c3aed;
    background: rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
    color: #0f172a;
    transition: all 0.3s ease;
}

.textboxem-theme-dark .textboxem-content h1, 
.textboxem-theme-dark .textboxem-content h2, 
.textboxem-theme-dark .textboxem-content h3,
.textboxem-theme-dark .textboxem-content h4, 
.textboxem-theme-dark .textboxem-content h5, 
.textboxem-theme-dark .textboxem-content h6,
.textboxem-theme-dark .textboxem-main-content h1, 
.textboxem-theme-dark .textboxem-main-content h2, 
.textboxem-theme-dark .textboxem-main-content h3,
.textboxem-theme-dark .textboxem-main-content h4, 
.textboxem-theme-dark .textboxem-main-content h5, 
.textboxem-theme-dark .textboxem-main-content h6 {
    border-left-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
    color: #f8fafc;
}

.textboxem-content h1, .textboxem-main-content h1 { font-size: 28px; }
.textboxem-content h2, .textboxem-main-content h2 { font-size: 24px; }
.textboxem-content h3, .textboxem-main-content h3 { font-size: 20px; }
.textboxem-content h4, .textboxem-main-content h4 { font-size: 18px; }
.textboxem-content h5, .textboxem-main-content h5 { font-size: 16px; }
.textboxem-content h6, .textboxem-main-content h6 { font-size: 14px; }

.textboxem-content p,
.textboxem-main-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.textboxem-content a,
.textboxem-main-content a {
    color: #7c3aed;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.textboxem-content a:hover,
.textboxem-main-content a:hover {
    color: #a855f7;
}

.textboxem-theme-dark .textboxem-content a,
.textboxem-theme-dark .textboxem-main-content a {
    color: #a855f7;
}

.textboxem-theme-dark .textboxem-content a:hover,
.textboxem-theme-dark .textboxem-main-content a:hover {
    color: #c084fc;
}

.textboxem-content ul, .textboxem-content ol,
.textboxem-main-content ul, .textboxem-main-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.textboxem-content li,
.textboxem-main-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.textboxem-content strong, .textboxem-content b,
.textboxem-main-content strong, .textboxem-main-content b {
    font-weight: 600;
    color: #374151;
}

.textboxem-theme-dark .textboxem-content strong,
.textboxem-theme-dark .textboxem-content b,
.textboxem-theme-dark .textboxem-main-content strong,
.textboxem-theme-dark .textboxem-main-content b {
    color: #f1f5f9;
}

.textboxem-content em, .textboxem-content i,
.textboxem-main-content em, .textboxem-main-content i {
    font-style: italic;
}

.textboxem-content blockquote,
.textboxem-main-content blockquote {
    border-left: 4px solid #7c3aed;
    padding-left: 16px;
    margin: 20px 0;
    font-style: italic;
    background: rgba(124, 58, 237, 0.05);
    padding: 16px;
    border-radius: 8px;
}

.textboxem-theme-dark .textboxem-content blockquote,
.textboxem-theme-dark .textboxem-main-content blockquote {
    background: rgba(124, 58, 237, 0.1);
    border-left-color: #a855f7;
}

.textboxem-content code,
.textboxem-main-content code {
    background: rgba(124, 58, 237, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 90%;
}

.textboxem-theme-dark .textboxem-content code,
.textboxem-theme-dark .textboxem-main-content code {
    background: rgba(124, 58, 237, 0.2);
}

/* Diamond Divider */
.textboxem-diamond-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
    z-index: 2;
    position: relative;
}

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

.textboxem-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: none;
    opacity: 0.6;
}

@keyframes textboxem-luxury-diamond-glow {
    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 textboxem-diamond-border {
    0%, 100% { 
        opacity: 0.6;
        transform: rotate(45deg) scale(1);
    }
    50% { 
        opacity: 1;
        transform: rotate(45deg) scale(1.2);
    }
}

/* Performance Optimizations */
.textboxem-widget * {
    will-change: auto;
}

.textboxem-widget [class*="animation"] {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Core Web Vitals Optimization */
.textboxem-container {
    contain: layout style paint;
}

.textboxem-widget img {
    loading: lazy;
}

/* Accessibility */
.textboxem-widget:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.theme-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
} 