/* Format Selection Styles for Yoniverse.ai */

/* Format Selection Container */
.quantum-format-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.quantum-format-selection.fade-out {
    opacity: 0;
}

.format-content {
    background-color: rgba(25, 25, 112, 0.8);
    border: 1px solid rgba(148, 0, 211, 0.5);
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(148, 0, 211, 0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    backdrop-filter: blur(10px);
}

.format-content h3 {
    color: #9400d3;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(148, 0, 211, 0.5);
}

.format-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Format Grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Format Option */
.format-option {
    background-color: rgba(25, 25, 112, 0.4);
    border: 1px solid rgba(148, 0, 211, 0.3);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.format-option:hover {
    background-color: rgba(25, 25, 112, 0.6);
    box-shadow: 0 0 15px rgba(148, 0, 211, 0.3);
    transform: translateY(-3px);
}

.format-option.downloaded {
    background-color: rgba(25, 25, 112, 0.7);
    border: 1px solid rgba(148, 0, 211, 0.6);
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.4);
}

.format-icon {
    font-size: 2rem;
    color: #9400d3;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(148, 0, 211, 0.7);
}

.format-details {
    flex-grow: 1;
}

.format-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.format-details p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: center;
}

.download-format-btn {
    padding: 10px 15px;
    background: linear-gradient(45deg, #4b0082, #9400d3);
    border: none;
    border-radius: 20px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-format-btn:hover {
    background: linear-gradient(45deg, #9400d3, #4b0082);
    box-shadow: 0 0 15px rgba(148, 0, 211, 0.5);
}

.download-format-btn.downloaded {
    background: linear-gradient(45deg, #006400, #00a000);
}

.download-format-btn.error {
    background: linear-gradient(45deg, #8b0000, #ff0000);
}

/* Download All Section */
.download-all-section {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(148, 0, 211, 0.2);
    border-radius: 10px;
    text-align: center;
}

.download-all-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #4b0082, #9400d3);
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(148, 0, 211, 0.5);
}

.download-all-btn:hover {
    background: linear-gradient(45deg, #9400d3, #4b0082);
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.8);
    transform: translateY(-2px);
}

.download-all-btn.downloaded {
    background: linear-gradient(45deg, #006400, #00a000);
}

.download-all-btn.error {
    background: linear-gradient(45deg, #8b0000, #ff0000);
}

/* Continue Button */
.continue-journey-btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 25px;
    background: linear-gradient(45deg, #4b0082, #9400d3);
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(148, 0, 211, 0.5);
}

.continue-journey-btn:hover {
    background: linear-gradient(45deg, #9400d3, #4b0082);
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.8);
    transform: translateY(-2px);
}

/* Error Message */
.quantum-error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 30, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.quantum-error-message.fade-out {
    opacity: 0;
}

.error-content {
    background-color: rgba(139, 0, 0, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.error-content h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.close-error-btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 25px;
    background: linear-gradient(45deg, #8b0000, #ff0000);
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-error-btn:hover {
    background: linear-gradient(45deg, #ff0000, #8b0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .format-grid {
        grid-template-columns: 1fr;
    }
    
    .format-content {
        padding: 20px;
        width: 95%;
    }
    
    .format-content h3 {
        font-size: 1.5rem;
    }
    
    .download-all-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}
