/* Popup Bubble Styles */
.popup-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--rimuru-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.popup-bubble:hover {
    transform: scale(1.1);
}

.popup-bubble i {
    color: white;
    font-size: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-light);
}

body.dark-mode .modal-content {
    background: var(--card-dark);
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--rimuru-dark-blue);
    margin-bottom: 1rem;
}

body.dark-mode .modal-content h2 {
    color: var(--rimuru-light-blue);
}

.modal-content h3 {
    color: var(--rimuru-blue);
    margin: 1rem 0 0.5rem;
}

body.dark-mode .modal-content h3 {
    color: var(--rimuru-light-blue);
}

.modal-content p, .modal-content ul {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-content ul {
    padding-left: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--rimuru-dark-blue);
    cursor: pointer;
    transition: color 0.3s ease;
}

body.dark-mode .close-btn {
    color: var(--rimuru-light-blue);
}

.close-btn:hover {
    color: var(--rimuru-blue);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .popup-bubble {
        width: 50px;
        height: 50px;
    }
    .popup-bubble i {
        font-size: 1.2rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
}