/* Title Screen Styles */
.title-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.title-screen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://rosebud.ai/assets/chat-title-image-w-logo-1920-1000.png?gALf');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.title-screen-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 0 35% 5% 0;
}

.title-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.play-button {
    background-color: black;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 140px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    color: red;
    border-color: red;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.play-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .title-screen-content {
        padding: 0 5% 10% 0;
    }
    
    .title-card {
        padding: 1.5rem;
    }
    
    .play-button {
        padding: 0.875rem 2rem;
        font-size: 1.25rem;
        min-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .title-screen-content {
        padding: 0 3% 8% 0;
        align-items: center;
        justify-content: center;
    }
    
    .title-card {
        padding: 1rem;
    }
    
    .play-button {
        padding: 0.75rem 1.75rem;
        font-size: 1.125rem;
        min-width: 100px;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .title-card {
        padding: 1rem;
    }
    
    .play-button {
        padding: 0.75rem 2rem;
        font-size: 1.25rem;
    }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .title-screen-background {
        background-image: url('https://rosebud.ai/assets/chat-title-image-w-logo-1920-1000.png?gALf');
    }
}

/* Focus states for accessibility */
.play-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.play-button:focus:hover {
    outline-color: rgba(255, 0, 0, 0.5);
}

/* Animation for smooth entry */
@keyframes titleScreenFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.title-screen {
    animation: titleScreenFadeIn 0.5s ease-in-out;
}