/* Multi-Format Download Styles for Quantum Fingerprint */

.quantum-format-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.format-selection-content {
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.9) 0%, rgba(60, 20, 120, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.format-selection-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    background: linear-gradient(90deg, #8A2BE2, #4B0082, #9370DB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.format-selection-content p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.fingerprint-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
    position: relative;
}

.fingerprint-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fingerprint-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(10, 5, 30, 0.3) 100%);
    pointer-events: none;
}

.format-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.format-option {
    background: rgba(30, 15, 60, 0.6);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.format-option:hover {
    background: rgba(60, 20, 120, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.format-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.format-checkbox {
    position: absolute;
    opacity: 0;
}

.format-checkbox:checked + label .format-icon {
    background: rgba(138, 43, 226, 0.8);
    color: white;
}

.format-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(60, 20, 120, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.format-details {
    flex: 1;
}

.format-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.format-description {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantum-btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.quantum-btn.primary {
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
    color: white;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.quantum-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
}

.quantum-btn.secondary {
    background: rgba(60, 20, 120, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.5);
}

.quantum-btn.secondary:hover {
    background: rgba(60, 20, 120, 0.4);
    transform: translateY(-3px);
}

.integration-guidance {
    background: rgba(30, 15, 60, 0.4);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.integration-guidance h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.integration-guidance p {
    margin-bottom: 15px;
    text-align: left;
}

.integration-guidance ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.integration-guidance li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* Quantum Confirmation Styles */
.quantum-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.confirmation-content {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.9) 0%, rgba(60, 20, 120, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    text-align: center;
}

.confirmation-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
    background: linear-gradient(90deg, #8A2BE2, #4B0082, #9370DB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.confirmation-content p {
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Conscious Creation Protocol Styles */
.quantum-conscious-creation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.conscious-creation-content {
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.9) 0%, rgba(60, 20, 120, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.conscious-creation-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    background: linear-gradient(90deg, #8A2BE2, #4B0082, #9370DB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.conscious-creation-content p {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.protocol-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.protocol-phase {
    background: rgba(30, 15, 60, 0.4);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid rgba(138, 43, 226, 0.8);
}

.protocol-phase h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.protocol-steps {
    padding-left: 20px;
}

.protocol-steps li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.step-day {
    font-weight: 600;
    color: rgba(138, 43, 226, 0.9);
    margin-bottom: 5px;
}

.step-instruction {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.protocol-completion {
    text-align: center;
    margin-top: 30px;
}

.protocol-completion p {
    font-style: italic;
    margin-bottom: 20px;
}

/* Error Message Styles */
.quantum-error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10003;
    backdrop-filter: blur(5px);
}

.error-content {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(60, 20, 60, 0.9) 0%, rgba(90, 20, 60, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
    text-align: center;
}

.error-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.error-content p {
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Activation Overlay Styles */
.quantum-activation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.activation-content {
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: #fff;
}

.activation-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
    background: linear-gradient(90deg, #8A2BE2, #4B0082, #9370DB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.activation-pulse {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.8) 0%, rgba(75, 0, 130, 0.5) 50%, transparent 100%);
    animation: pulse 2s infinite ease-in-out;
    position: relative;
}

.activation-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(138, 43, 226, 0.5) 70%, transparent 100%);
    animation: innerPulse 3s infinite ease-in-out;
}

.activation-message {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(138, 43, 226, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
        transform: scale(0.95);
    }
}

@keyframes innerPulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .format-options {
        grid-template-columns: 1fr;
    }
    
    .download-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quantum-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .fingerprint-preview {
        width: 150px;
        height: 150px;
    }
    
    .protocol-steps li {
        flex-direction: column;
    }
}

/* Accessibility Enhancements */
.quantum-btn:focus,
.format-checkbox:focus + label {
    outline: 2px solid rgba(138, 43, 226, 0.8);
    outline-offset: 2px;
}

/* Animation for format selection */
.format-option {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

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

.format-option:nth-child(1) { animation-delay: 0.1s; }
.format-option:nth-child(2) { animation-delay: 0.2s; }
.format-option:nth-child(3) { animation-delay: 0.3s; }
.format-option:nth-child(4) { animation-delay: 0.4s; }
.format-option:nth-child(5) { animation-delay: 0.5s; }
.format-option:nth-child(6) { animation-delay: 0.6s; }
.format-option:nth-child(7) { animation-delay: 0.7s; }
