/* ===== EFFICIENCY ARCHITECT GAME ===== */
/* Dark Mode Neon Theme for AI Automation Game */

/* === Game Section Layout === */
.section-efficiency-experience {
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.section-efficiency-experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.efficiency-experience-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.efficiency-experience-header .micro-tag {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.efficiency-experience-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.efficiency-experience-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Side-by-side layout */
.efficiency-experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* === ROI Calculator (Left Side - Dark Theme Override) === */
.efficiency-calculator {
    background: rgba(18, 18, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(20px);
}

.efficiency-calculator .calc-header {
    margin-bottom: 24px;
}

.efficiency-calculator .calc-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.efficiency-calculator .calc-header h3::before {
    content: '📊';
    font-size: 1.3rem;
}

.efficiency-calculator .calc-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

/* Dark theme calculator inputs */
.dark-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.dark-calc-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.dark-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.dark-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dark-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.7);
}

.dark-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.dark-slider-value {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
}

/* Dark theme results */
.dark-calc-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dark-result-card {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.dark-result-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.dark-result-card.primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.3);
}

.dark-result-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-result-value {
    display: block;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.dark-result-card.primary .dark-result-value {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === EFFICIENCY GAME (Right Side) === */
.efficiency-game {
    background: rgba(18, 18, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    position: relative;
}

/* === Game Start Overlay === */
.game-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.5s ease;
}

.game-start-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-content {
    text-align: center;
    padding: 32px;
    max-width: 320px;
}

.start-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.start-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.start-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.start-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.instruction-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.game-start-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.game-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

/* === Game Buttons Container === */
.game-buttons {
    display: flex;
    gap: 12px;
}

.game-buttons .ai-activate-btn {
    flex: 1;
}

/* === Restart Button === */
.game-restart-btn {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-restart-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-restart-btn .btn-icon {
    font-size: 1.1rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-header h3::before {
    content: '🎮';
    font-size: 1.2rem;
}

/* Clock Container */
.game-clock-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-clock {
    position: relative;
    width: 60px;
    height: 60px;
}

.clock-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.clock-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.clock-progress {
    fill: none;
    stroke: #10b981;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 0;
    transition: stroke 0.3s ease;
}

.clock-progress.warning {
    stroke: #f59e0b;
}

.clock-progress.danger {
    stroke: #ef4444;
}

.clock-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Game Arena */
.game-arena {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Task Zones */
.task-zone {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    min-height: 200px;
    transition: all 0.3s ease;
}

.task-zone-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-align: center;
}

.pending-zone {
    border-color: rgba(239, 68, 68, 0.3);
}

.completed-zone {
    border-color: rgba(16, 185, 129, 0.3);
}

.completed-zone.drag-over {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.6);
}

/* Task Blocks */
.task-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-block:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.task-block.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-block.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    cursor: default;
}

.task-block.completed::after {
    content: '✓';
    margin-left: auto;
    color: #10b981;
}

.task-icon {
    font-size: 1rem;
}

.task-block.selected {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(4px);
}

.completed-zone.ready-to-receive {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
    animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: rgba(16, 185, 129, 0.3);
    }

    50% {
        border-color: #00d4ff;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    }

    100% {
        border-color: rgba(16, 185, 129, 0.3);
    }
}

/* Center Arrow */
.game-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
}

/* AI Button */
.ai-activate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.ai-activate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.ai-activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.ai-activate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ai-activate-btn .btn-icon {
    margin-right: 10px;
}

/* Light Beam Animation */
.task-block.light-beam {
    animation: lightBeam 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

@keyframes lightBeam {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translateX(200px) scale(0.5);
        opacity: 0;
    }
}

/* Game Status Messages */
.game-status {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 500;
    display: none;
}

.game-status.failure {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.game-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.game-status .status-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

/* Live Stats Bar */
.live-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-stat {
    text-align: center;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.live-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.live-stat-value {
    display: block;
    color: #10b981;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* === Final CTA Overlay === */
.game-cta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.game-cta-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.game-cta-content {
    text-align: center;
    max-width: 500px;
    padding: 48px;
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.game-cta-overlay.visible .game-cta-content {
    transform: scale(1);
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
}

.game-cta-content h3 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.game-cta-content h3 .highlight {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    border: none;
    border-radius: 100px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.cta-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.cta-dismiss {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.cta-dismiss:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .efficiency-experience-grid {
        grid-template-columns: 1fr;
    }

    .efficiency-game {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .section-efficiency-experience {
        padding: 48px 0;
    }

    .efficiency-experience-header h2 {
        font-size: 1.75rem;
    }

    .game-arena {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .game-arrow {
        transform: rotate(90deg);
    }

    .live-stats-bar {
        grid-template-columns: 1fr;
    }

    .dark-result-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-efficiency-experience {
        padding: 32px 0;
    }

    .efficiency-experience-header {
        margin-bottom: 24px;
    }

    .efficiency-experience-header h2 {
        font-size: 1.5rem;
    }

    .efficiency-experience-header p {
        font-size: 0.9rem;
    }

    .efficiency-calculator {
        padding: 20px;
    }

    .calc-header h3 {
        font-size: 1.25rem;
    }

    .dark-calc-inputs {
        gap: 12px;
    }

    .efficiency-game {
        padding: 16px;
    }

    .live-stat-item .stat-value {
        font-size: 1.25rem;
    }

    .game-cta-content {
        padding: 32px 20px;
    }

    .game-cta-content h3 {
        font-size: 1.25rem;
    }

    .cta-primary-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}