/* Loading Screen Styles */
.loading-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
.loading-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 20px;
}
.loading-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.loading-spinner {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}
.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-status {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    min-height: 20px;
}
/* Main Menu Styles */
.main-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 80px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.main-menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background-image: url('https://rosebud.ai/assets/main-menu-earth-image-v2.png?P6um');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-menu-content {
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.main-menu-title {
    display: flex;
    justify-content: center;
    align-items: center;
}
.title-image {
    max-width: 490px;
    max-height: 245px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.main-menu-credit {
    margin: 10px 0 5px 0;
    text-align: center;
}
.credit-text {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-style: italic;
    letter-spacing: 0.5px;
}
.main-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-menu-button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.main-menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-menu-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Loading Screen */
@media (max-width: 768px) {
    .loading-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .spinner-ring {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-status {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .loading-content {
        padding: 15px;
        max-width: 300px;
    }
    
    .loading-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .spinner-ring {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-status {
        font-size: 13px;
        margin-top: 15px;
    }
}
/* Responsive Design for Main Menu */
@media (max-width: 768px) {
    .main-menu-overlay {
        padding-right: 40px;
        justify-content: center;
    }
    
    .title-image {
        max-width: 405px;
        max-height: 195px;
    }
    
    .credit-text {
        font-size: 14px;
    }
    
    .main-menu-button {
        font-size: 16px;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .main-menu-overlay {
        padding: 20px;
        justify-content: center;
        align-items: center;
    }
    
    .main-menu-content {
        gap: 10px;
    }
    
    .title-image {
        max-width: 325px;
        max-height: 165px;
    }
    
    .main-menu-credit {
        margin: 8px 0 3px 0;
    }
    
    .credit-text {
        font-size: 13px;
    }
    
    .main-menu-buttons {
        width: 100%;
        max-width: 280px;
    }
    
    .main-menu-button {
        font-size: 16px;
        padding: 16px 24px;
        width: 100%;
    }
}

/* Hidden state for when menu should be hidden */
.main-menu-overlay.hidden {
    display: none;
}

/* Loading state for button */
.main-menu-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}
.main-menu-button.loading::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}
/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast-notification.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}
.toast-content {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}
/* Success state styling */
.toast-notification.success .toast-content {
    background: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.5);
}
/* Info state styling */
.toast-notification.info .toast-content {
    background: rgba(33, 150, 243, 0.9);
    border-color: rgba(33, 150, 243, 0.5);
}
/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .toast-notification {
        bottom: 30px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
    
    .toast-notification.hidden {
        transform: translateY(20px);
    }
    
    .toast-content {
        max-width: none;
        font-size: 13px;
        padding: 10px 16px;
        white-space: normal;
        word-wrap: break-word;
    }
}