/**
 * Mobile Warning Overlay Component
 *
 * Displays a full-screen warning on mobile devices (≤699px) informing users
 * that the app is optimized for larger screens. Warning is dismissable and
 * uses sessionStorage to remember dismissal for the browser session.
 */

/* Base styles - hidden by default */
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../images/landing-bg.jpg) no-repeat center;
    background-size: cover;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Warning content card */
.mobile-warning-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Logo */
.mobile-warning-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

/* Title */
.mobile-warning-title {
    font-size: 1.5rem;
    color: #353E31;
    margin-bottom: 1rem;
    font-weight: 200;
    line-height: 1.2;
}

/* Message text */
.mobile-warning-message {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* Dismiss button */
.mobile-warning-dismiss {
    background-color: #55BD64;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    max-width: 200px;
}

.mobile-warning-dismiss:hover {
    background-color: #4aa857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 189, 100, 0.3);
}

.mobile-warning-dismiss:active {
    transform: translateY(0);
}

/* Show warning on mobile screens (≤699px) */
@media (max-width: 699px) {
    .mobile-warning {
        display: flex;
    }
    
    /* Hide when dismissed via JavaScript */
    .mobile-warning.dismissed {
        display: none;
    }
}

/* Ensure hidden on larger screens */
@media (min-width: 700px) {
    .mobile-warning {
        display: none !important;
    }
}
