/* ------------------------------------------------------------------------
   Dakidarts Numerology Core - High-Edge Premium Spatial Design System
   ------------------------------------------------------------------------ */

/* Import Google Fonts for high-end digital aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --cosmic-purple: #3730a3;
    --cosmic-indigo: #4f46e5;
    --cosmic-glow: rgba(79, 70, 229, 0.15);
    --gold-glow: #e9c46a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.12);
    --space-font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --outfit-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Glassmorphic Container */
.dakidarts-form {
    max-width: 550px;
    margin: 2.5rem auto;
    padding: 2.5rem !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-family: var(--outfit-font);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dakidarts-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.18), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 70, 229, 0.15) !important;
}

/* Header Decorator Lines */
.dakidarts-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cosmic-indigo), #ec4899, var(--gold-glow));
    opacity: 0.85;
}

/* Grid & Field Elements */
.dakidarts-form p {
    margin-bottom: 1.5rem;
    position: relative;
}

.dakidarts-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--space-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e1b4b;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.dakidarts-form p:focus-within label {
    color: var(--cosmic-indigo);
}

/* Premium Form Controls */
.dakidarts-form input[type="text"],
.dakidarts-form input[type="number"],
.dakidarts-form select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    color: #1f2937;
    font-family: var(--outfit-font);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dakidarts-form input[type="text"]:focus,
.dakidarts-form input[type="number"]:focus,
.dakidarts-form select:focus {
    background: #fff;
    border-color: var(--cosmic-indigo);
    box-shadow: 0 0 0 4px var(--cosmic-glow), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    outline: none;
}

/* Toggle Pill Switches for Boolean Fields */
.dakidarts-toggle-wrapper {
    display: flex;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
    margin-top: 5px;
    max-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dakidarts-toggle-option {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-family: var(--space-font);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #4b5563;
}

.dakidarts-toggle-option.active {
    background: #fff;
    color: var(--cosmic-indigo);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Tooltips and Descriptions */
.dakidarts-param-desc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 6px;
    font-style: normal;
    line-height: 1.35;
}

.dakidarts-info-dot {
    width: 15px;
    height: 15px;
    background: #e0e7ff;
    color: var(--cosmic-indigo);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Dynamic Action Buttons */
.dakidarts-submit {
    width: 100%;
    padding: 0.95rem 2rem !important;
    background: linear-gradient(135deg, var(--cosmic-indigo), var(--cosmic-purple)) !important;
    color: #fff !important;
    font-family: var(--space-font) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.dakidarts-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 25px -6px rgba(79, 70, 229, 0.5) !important;
    filter: brightness(1.08);
}

.dakidarts-submit:active {
    transform: translateY(1px) !important;
}

/* Sacred Geometry Cinematic Loader */
.dakidarts-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dakidarts-loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dakidarts-orbital-loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.dakidarts-orbital-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--cosmic-indigo);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.dakidarts-orbital-ring:nth-child(2) {
    inset: 6px;
    border-top-color: #ec4899;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.dakidarts-orbital-ring:nth-child(3) {
    inset: 12px;
    border-top-color: var(--gold-glow);
    animation-duration: 1.6s;
}

.dakidarts-loader-text {
    margin-top: 1.2rem;
    font-family: var(--space-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e1b4b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Compatibility Grid Map */
.dakidarts-compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dakidarts-compatibility-card {
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(249, 250, 251, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.dakidarts-compatibility-card h3 {
    margin: 0 0 1.2rem 0;
    font-family: var(--space-font);
    font-size: 1.1rem;
    color: #1e1b4b;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 0.4rem;
}

/* Premium Recursive Result Layouts */
.dakidarts-result {
    max-width: 550px;
    margin: 2.5rem auto;
    font-family: var(--outfit-font);
    color: #374151;
    line-height: 1.625;
}

/* Grand Holographic Number Highlight Badge */
.dakidarts-holographic-badge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-indigo), #ec4899, var(--gold-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    box-shadow: 0 8px 24px -6px rgba(79, 70, 229, 0.5),
                0 0 0 6px rgba(79, 70, 229, 0.08);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dakidarts-holographic-badge:hover {
    transform: scale(1.08) rotate(5deg);
}

.dakidarts-holographic-number {
    font-family: var(--space-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Card Structures */
.dakidarts-card {
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    margin-bottom: 1.5rem !important;
    transition: border-color 0.3s ease;
}

.dakidarts-card:hover {
    border-color: rgba(79, 70, 229, 0.2) !important;
}

.dakidarts-card h4 {
    font-family: var(--space-font) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Nested Grid Lists */
.dakidarts-list-grid {
    display: grid;
    gap: 0.85rem;
}

.dakidarts-card-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    transition: all 0.25s ease;
}

.dakidarts-card-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.dakidarts-row {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.dakidarts-row__label {
    font-family: var(--space-font);
    font-weight: 600;
    color: #4b5563;
}

.dakidarts-row__value {
    color: #1e1b4b;
    font-weight: 500;
}

/* Try Again Trigger Wrapper */
.dakidarts-button-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.dakidarts-try-again {
    display: inline-block;
    padding: 0.8rem 1.8rem !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-family: var(--space-font) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.dakidarts-try-again:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
    transform: translateY(-1px) !important;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Custom Responsive Styles */
@media (max-width: 640px) {
    .dakidarts-form {
        padding: 1.5rem !important;
        margin: 1rem;
    }
    .dakidarts-result {
        margin: 1rem;
    }
}

/* ------------------------------------------------------------------------
   Dakidarts Numerology Core - Elite Spatial UX Extensions
   ------------------------------------------------------------------------ */

/* Ambient space dust canvas container */
.dakidarts-form-wrapper {
    position: relative;
    border-radius: 20px;
}
.dakidarts-cosmic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 20px;
    z-index: 0;
}
.dakidarts-form > *, .dakidarts-result > * {
    position: relative;
    z-index: 1;
}

/* Ethereal Sound Controllers */
.dakidarts-sound-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    user-select: none;
}
.dakidarts-sound-toggle:hover {
    transform: scale(1.08);
    background: #ffffff;
    border-color: var(--cosmic-indigo);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* Interactive Astrological Zodiac Wheels */
.dakidarts-zodiac-wheel-container {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.dakidarts-zodiac-wheel-wrapper {
    width: 250px;
    height: 250px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 30%, rgba(248,250,252,0.9) 100%);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08), inset 0 0 15px rgba(79, 70, 229, 0.03);
    border: 2px solid var(--glass-border);
    transition: all 0.5s ease;
}
.dakidarts-zodiac-wheel-wrapper svg {
    width: 100%;
    height: 100%;
}
.dakidarts-wheel-slice {
    fill: rgba(255, 255, 255, 0.2);
    stroke: rgba(79, 70, 229, 0.08);
    stroke-width: 1.5;
    cursor: pointer;
    transition: all 0.25s ease;
}
.dakidarts-wheel-slice:hover {
    fill: rgba(79, 70, 229, 0.08);
    stroke: var(--cosmic-indigo);
}
.dakidarts-wheel-slice.active {
    fill: rgba(79, 70, 229, 0.15);
    stroke: var(--cosmic-indigo);
    stroke-width: 2.5;
}
.dakidarts-wheel-center {
    fill: #ffffff;
    stroke: var(--glass-border);
    stroke-width: 2;
}
.dakidarts-wheel-center-text {
    font-family: var(--space-font);
    font-size: 11px;
    font-weight: 700;
    fill: var(--cosmic-indigo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}
.dakidarts-wheel-glyph {
    font-family: sans-serif;
    font-size: 15px;
    fill: #4b5563;
    pointer-events: none;
    transition: all 0.25s ease;
}
.dakidarts-wheel-slice.active + .dakidarts-wheel-glyph,
.dakidarts-wheel-slice:hover + .dakidarts-wheel-glyph {
    fill: var(--cosmic-indigo);
    font-size: 17px;
}
.dakidarts-zodiac-wheel-indicator {
    font-family: var(--space-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cosmic-indigo);
    background: rgba(79, 70, 229, 0.06);
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Interactive Tarot Fanning Draws */
.dakidarts-tarot-deck-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    margin-top: 1.5rem;
    animation: slideUpFade 0.5s ease-out;
}
.dakidarts-tarot-deck-title {
    font-family: var(--space-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 1.5rem;
    text-align: center;
}
.dakidarts-tarot-deck {
    display: flex;
    justify-content: center;
    position: relative;
    height: 220px;
    width: 100%;
    max-width: 460px;
    margin-bottom: 1rem;
}
.dakidarts-deck-card {
    position: absolute;
    width: 90px;
    height: 145px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 2px solid var(--gold-glow);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom center;
}
.dakidarts-deck-card::after {
    content: '🔮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.65;
}
.dakidarts-deck-card:hover {
    transform: translateY(-25px) scale(1.08) !important;
    box-shadow: 0 12px 24px rgba(233, 196, 106, 0.3);
    z-index: 99 !important;
}
.dakidarts-deck-card.drawn {
    animation: tarotDrawAndFlip 1.2s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 100 !important;
}

@keyframes tarotDrawAndFlip {
    0% {
        transform: translateY(0) scale(1) rotate(0);
    }
    40% {
        transform: translateY(-80px) scale(1.1) rotate(5deg);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    100% {
        transform: translateY(-40px) scale(0.95) rotateY(180deg);
        opacity: 0.15;
        filter: blur(2px);
    }
}

/* Floating Results Toolbar */
.dakidarts-results-toolbox {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 0.75rem;
}
.dakidarts-toolbox-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: var(--space-font);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    transition: all 0.25s ease;
}
.dakidarts-toolbox-btn:hover {
    background: #ffffff;
    border-color: var(--cosmic-indigo);
    color: var(--cosmic-indigo);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.08);
}

/* Glassmorphic Bubble Toast */
.dakidarts-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(30, 27, 75, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-family: var(--space-font);
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99999;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dakidarts-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Overrides for beautiful reports */
@media print {
    body * {
        visibility: hidden;
    }
    .dakidarts-result, .dakidarts-result * {
        visibility: visible;
    }
    .dakidarts-result {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }
    .dakidarts-results-toolbox, .dakidarts-try-again {
        display: none !important;
    }
}

.dakidarts-powered-by:hover {
    opacity: 0.85 !important;
}


