/* ============================================================================
   Aladdin MBTI Landing - Public Styles - COMPLETE VERSION
   CRITICAL: All classes namespaced with .aladdin-mbti-* to avoid theme conflicts
   Version: 1.0.3
   ============================================================================ */

:root {
    --aladdin-primary: #2E8B57;
    --aladdin-secondary: #DAA520;
    --aladdin-dark: #1a1a2e;
    --aladdin-light: #f8f9fa;
    --aladdin-gold: #FFD700;
    --aladdin-silver: #C0C0C0;
}

/* Reset for plugin scope only */
.aladdin-mbti-template * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.aladdin-mbti-template {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================================================
   HERO SECTION WITH 3D RIPPLING WAVES
   ============================================================================ */

.aladdin-mbti-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aladdin-dark) 0%, #16213e 100%);
    color: white;
    overflow: hidden;
    padding: 80px 20px;
}

.aladdin-mbti-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.1) 0%, transparent 50%);
    animation: aladdin-pulse 8s ease-in-out infinite;
}

@keyframes aladdin-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.aladdin-mbti-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
}

.aladdin-mbti-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.2), 
        rgba(192, 192, 192, 0.2), 
        transparent
    );
    animation: aladdin-wave-animation 15s linear infinite;
}

.aladdin-mbti-wave:nth-child(2) {
    animation-duration: 20s;
    opacity: 0.5;
    animation-delay: -5s;
}

.aladdin-mbti-wave:nth-child(3) {
    animation-duration: 25s;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes aladdin-wave-animation {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50%) translateY(-20px); }
}

.aladdin-mbti-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.aladdin-mbti-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--aladdin-gold), var(--aladdin-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aladdin-shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes aladdin-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.aladdin-mbti-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.aladdin-mbti-cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--aladdin-gold), var(--aladdin-secondary));
    color: var(--aladdin-dark);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.4);
    position: relative;
    overflow: hidden;
}

.aladdin-mbti-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.aladdin-mbti-cta-button:hover::before {
    left: 100%;
}

.aladdin-mbti-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.6);
}

/* ============================================================================
   STATS SECTION WITH ANIMATED COUNTERS
   ============================================================================ */

.aladdin-mbti-stats {
    background: white;
    padding: 80px 20px;
}

.aladdin-mbti-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.aladdin-mbti-stat-card {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.aladdin-mbti-stat-card:hover {
    transform: translateY(-10px);
}

.aladdin-mbti-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--aladdin-primary);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.aladdin-mbti-stat-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

/* ============================================================================
   TEST SECTION
   ============================================================================ */

.aladdin-mbti-test-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 100px 20px;
}

.aladdin-mbti-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.aladdin-mbti-section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--aladdin-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.aladdin-mbti-section-header p {
    font-size: 1.2rem;
    color: #555;
}

.aladdin-mbti-test-container {
    max-width: 1000px;
    margin: 0 auto;
}

.aladdin-mbti-plugin-notice {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.aladdin-mbti-plugin-notice h3 {
    color: var(--aladdin-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.aladdin-mbti-plugin-notice p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.aladdin-mbti-plugin-notice a {
    color: var(--aladdin-secondary);
    text-decoration: underline;
}

/* ============================================================================
   TESTIMONIALS SLIDER
   ============================================================================ */

.aladdin-mbti-testimonials {
    background: var(--aladdin-dark);
    color: white;
    padding: 100px 20px;
}

.aladdin-mbti-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.aladdin-mbti-testimonial {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.aladdin-mbti-testimonial.active {
    display: block;
    animation: aladdin-fade-in 0.5s ease;
}

@keyframes aladdin-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.aladdin-mbti-testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.aladdin-mbti-testimonial-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--aladdin-gold);
}

.aladdin-mbti-slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.aladdin-mbti-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.aladdin-mbti-dot:hover {
    background: rgba(255,255,255,0.5);
}

.aladdin-mbti-dot.active {
    background: var(--aladdin-gold);
    transform: scale(1.3);
}

/* ============================================================================
   PERSONALITY TYPES GRID
   ============================================================================ */

.aladdin-mbti-types {
    background: white;
    padding: 100px 20px;
}

.aladdin-mbti-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.aladdin-mbti-type-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid;
    cursor: pointer;
}

.aladdin-mbti-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.aladdin-mbti-type-code {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.aladdin-mbti-type-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--aladdin-dark);
    margin-bottom: 15px;
}

.aladdin-mbti-type-tagline {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================================================
   LANGUAGE FLOATER
   ============================================================================ */

.aladdin-mbti-lang-floater {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aladdin-mbti-lang-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--aladdin-dark);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aladdin-mbti-lang-btn:hover {
    background: var(--aladdin-primary);
    color: white;
    border-color: var(--aladdin-primary);
    transform: scale(1.1);
}

.aladdin-mbti-lang-btn.active {
    background: var(--aladdin-gold);
    color: var(--aladdin-dark);
    border-color: var(--aladdin-gold);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .aladdin-mbti-hero h1 {
        font-size: 2rem;
    }
    
    .aladdin-mbti-hero p {
        font-size: 1rem;
    }
    
    .aladdin-mbti-cta-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
    
    .aladdin-mbti-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aladdin-mbti-stat-number {
        font-size: 2.5rem;
    }
    
    .aladdin-mbti-types-grid {
        grid-template-columns: 1fr;
    }
    
    .aladdin-mbti-testimonial-text {
        font-size: 1.2rem;
    }
    
    .aladdin-mbti-lang-floater {
        bottom: 20px;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    .aladdin-mbti-section-header h2 {
        font-size: 1.8rem;
    }
}

/* ============================================================================
   RTL SUPPORT (Basic - rtl.css will override)
   ============================================================================ */

[dir="rtl"] .aladdin-mbti-template {
    direction: rtl;
}

[dir="rtl"] .aladdin-mbti-type-card {
    border-left: none;
    border-right: 5px solid;
}

[dir="rtl"] .aladdin-mbti-lang-floater {
    left: 20px;
    right: auto;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.aladdin-mbti-hidden {
    display: none !important;
}

.aladdin-mbti-visible {
    display: block !important;
}

/* Debug mode helper */
body.wp-admin .aladdin-mbti-template {
    margin-top: 32px;
}
