/* Zero Point Energy Styles - Add to style.css or include as separate file */

.amplification-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
    gap: 10px;
    position: relative;
}

.toggle-switch-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    user-select: none;
}

body.dark-mode .toggle-switch-label {
    color: #f0f0f0;
}

.toggle-switch-container {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #ccc, #ddd);
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.toggle-switch:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

input:checked + .toggle-switch {
    background: linear-gradient(135deg, #3498db, #8e44ad, #3498db);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

input:checked + .toggle-switch:before {
    transform: translateX(30px);
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.5), 0 0 20px rgba(142, 68, 173, 0.3);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tooltip {
    position: relative;
    display: inline-block;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    font-size: 14px;
    font-style: italic;
    font-weight: bold;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.energy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    display: none;
}

.cosmic-controls {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.cosmic-controls.active {
    opacity: 1;
    height: auto;
    overflow: visible;
}

/* Animation for zero point active state */
@keyframes quantum-pulse {
    0% { box-shadow: 0 0 15px rgba(79, 70, 229, 0.5), 0 0 30px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 25px rgba(142, 68, 173, 0.6), 0 0 40px rgba(52, 152, 219, 0.4); }
    100% { box-shadow: 0 0 15px rgba(79, 70, 229, 0.5), 0 0 30px rgba(79, 70, 229, 0.3); }
}

#image-container.zero-point-active {
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.5), 0 0 40px rgba(52, 152, 219, 0.3);
    animation: quantum-pulse 4s infinite;
}

#activateParticlesButton.zero-point-active {
    background: linear-gradient(135deg, #3498db, #8e44ad, #2980b9);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.5);
}

/* Enhanced recommendation display styles */
.essence-recommendation-list {
    list-style-type: none;
    padding-left: 0;
}

.essence-recommendation-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #ff4757;
}

body.dark-mode .essence-recommendation-item {
    background: rgba(38, 43, 74, 0.7);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #ff4757;
}

.essence-recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.essence-name {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ff4757;
    font-size: 1.2em;
    font-weight: bold;
}

body.dark-mode .essence-name {
    color: #ff4757;
}

.essence-description {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.5;
}

body.dark-mode .essence-description {
    color: #e0e0e0;
}

.essence-personalized-reason {
    padding: 10px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 6px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
}

body.dark-mode .essence-personalized-reason {
    background: rgba(255, 71, 87, 0.15);
    color: #d0d0d0;
}

.essence-personalized-reason strong {
    color: #ff4757;
}

body.dark-mode .essence-personalized-reason strong {
    color: #ff6b6b;
}

.highlighted-keywords {
    font-weight: bold;
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
    padding: 0 3px;
    border-radius: 3px;
}

.keyword-pulse {
    animation: keyword-pulse 2s infinite;
}

@keyframes keyword-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.essence-source {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

body.dark-mode .essence-source {
    color: #aaa;
}