/* Dual Navigation - Clean Card-Based System */

/* Mode Toggle Button */
.mode-toggle {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 10px);
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.mode-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-primary);
}

/* CLEAN MODE - Daily Navigation */
.clean-mode .clean-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Quote Container - Properly positioned below nav */
.quote-container {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 80px); /* Nav at 20px + nav height ~40px + spacing 20px */
    left: var(--spacing-xl, 32px);
    right: var(--spacing-xl, 32px);
    text-align: center;
    z-index: 5;
    max-height: 80px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.daily-quote {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0 0 6px 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.quote-author {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Clean Header */
.clean-header {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 20px);
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.clean-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clean-back-btn:hover,
.clean-back-btn:active {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--accent-primary);
}

.clean-domain-title,
.clean-focus-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* CARD-BASED NAVIGATION SYSTEM */
/* Center Circle - Fixed position, scales with viewport */
.clean-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.clean-center-circle {
    width: min(25vw, 25vh, 150px);
    height: min(25vw, 25vh, 150px);
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.center-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.clean-center-circle.domain-colored {
    border-color: var(--domain-color);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--domain-color) 20%, transparent), 
        color-mix(in srgb, var(--domain-color) 5%, transparent)
    );
}

.clean-center-circle.focus-colored {
    width: 120px;
    height: 120px;
    border-color: var(--domain-color);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--domain-color) 15%, transparent), 
        color-mix(in srgb, var(--domain-color) 3%, transparent)
    );
}

.center-number {
    font-size: 36px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    margin-bottom: 4px;
}

.center-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.center-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Domain Container - Square coordinate system */
.clean-domains {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 90vh);
    height: min(90vw, 90vh);
    max-width: 600px;
    max-height: 600px;
    pointer-events: none;
}

/* Mobile/iPhone - Make card 20% bigger for better touch targets */
@media (max-width: 500px) {
    .clean-domains {
        /* Scale up by 20% for mobile */
        width: min(108vw, 108vh);  /* 90vw * 1.2 = 108vw */
        height: min(108vw, 108vh);
        max-width: none;  /* Remove desktop constraint on mobile */
        max-height: none;
    }
    
    /* Also scale up the center circle proportionally */
    .clean-center-circle {
        width: min(30vw, 30vh, 180px);  /* 25vw * 1.2 = 30vw */
        height: min(30vw, 30vh, 180px);
    }
}

/* Domain Circles - Positioned at quadrant centers */
.clean-domain {
    position: absolute;
    width: 20%;
    height: 20%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    transition: all 0.3s ease;
}

/* Quadrant positioning */
.clean-domain[data-domain="1"] { 
    /* Foundation - NE quadrant */
    top: 25%;
    left: 75%;
}

.clean-domain[data-domain="2"] { 
    /* Perception - SE quadrant */
    top: 75%;
    left: 75%;
}

.clean-domain[data-domain="3"] { 
    /* Emotional - SW quadrant */
    top: 75%;
    left: 25%;
}

.clean-domain[data-domain="4"] { 
    /* Integration - NW quadrant */
    top: 25%;
    left: 25%;
}

.clean-domain:active {
    opacity: 0.9;
}

.clean-domain-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--domain-color);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--domain-color) 25%, transparent), 
        color-mix(in srgb, var(--domain-color) 10%, transparent)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clean-domain-circle:hover {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--domain-color) 35%, transparent), 
        color-mix(in srgb, var(--domain-color) 15%, transparent)
    );
    box-shadow: 0 8px 25px color-mix(in srgb, var(--domain-color) 20%, transparent);
}

.clean-domain-label {
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Clean Focus Circles */
.clean-focuses {
    position: absolute;
    width: 280px;
    height: 280px;
    pointer-events: none;
}

.clean-focus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    pointer-events: all;
    transform: rotate(var(--focus-angle)) translateY(-110px) rotate(calc(-1 * var(--focus-angle)));
    transition: all 0.3s ease;
}

.clean-focus-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clean-focus-circle:hover,
.clean-focus-circle:active {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.clean-focus-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 0.3px;
}

/* FAST Grid Layout */
.clean-fast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 300px;
}

.clean-fast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clean-fast-item:active {
    opacity: 0.9;
}

.clean-fast-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.clean-fast-item:hover .clean-fast-circle {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
}

.clean-fast-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.clean-fast-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

/* FAST Detail Card */
.clean-fast-detail {
    position: absolute;
    bottom: 120px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.clean-fast-detail.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.clean-fast-card {
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15), 
        rgba(251, 191, 36, 0.05)
    );
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    position: relative;
}

.clean-fast-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 0 0 10px 0;
    letter-spacing: 0.3px;
}

.clean-fast-card p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.close-detail {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-detail:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ARTISTIC MODE - Brand Identity */
.artistic-mode .artistic-placeholder {
    min-height: calc(100vh - 50px - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.fractal-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
}

.fractal-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-primary);
}

.fractal-orbits {
    position: absolute;
    width: 100%;
    height: 100%;
}

.fractal-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--accent-primary);
    transform: rotate(var(--angle)) translateY(-80px);
    animation: fractalPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) * 0.01s);
}

@keyframes fractalPulse {
    0%, 100% { opacity: 0.3; transform: rotate(var(--angle)) translateY(-80px) scale(1); }
    50% { opacity: 1; transform: rotate(var(--angle)) translateY(-80px) scale(1.5); }
}

.artistic-placeholder h2 {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
}

.artistic-placeholder p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.back-to-clean {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--accent-primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-clean:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-2px);
}

/* Desktop safety */
@media (min-width: 768px) {
    .clean-nav-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .clean-domain-circle:hover {
        cursor: pointer;
    }
}

/* Smooth transitions */
.clean-nav-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Connection lines (optional - add if needed) */
.domain-connections-3d {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(600px) rotateX(10deg);
    z-index: 1;
    pointer-events: none;
    animation: subtle3DRotate 20s ease-in-out infinite;
}

@keyframes subtle3DRotate {
    0%, 100% { transform: translate(-50%, -50%) perspective(600px) rotateX(10deg) rotateY(0deg); }
    25% { transform: translate(-50%, -50%) perspective(600px) rotateX(12deg) rotateY(5deg); }
    50% { transform: translate(-50%, -50%) perspective(600px) rotateX(8deg) rotateY(-5deg); }
    75% { transform: translate(-50%, -50%) perspective(600px) rotateX(11deg) rotateY(3deg); }
}