/**
 * Rotation Prompt Overlay
 * Beautiful overlay that encourages users to rotate their device to landscape
 */

/* Rotation Overlay */
.rotation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.rotation-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.rotation-logo-bg img {
    width: 100%;
    max-width: 1200px;
    max-height: 95vh;
    height: auto;
    object-fit: contain;
}

.rotation-content {
    text-align: center;
    max-width: 90%;
    animation: slideUp 0.4s ease-out;
    position: relative;
    z-index: 2;
}

.rotation-logo-bottom {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 1;
}

.rotation-logo-bottom img {
    height: 40px;
    width: auto;
    display: block;
}

/* Phone Animation */
.phone-animation {
    position: relative;
    height: 120px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-device {
    font-size: 80px;
    animation: phoneRotate 2s ease-in-out infinite;
    display: inline-block;
}

/* Typography */
.rotation-overlay h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.rotation-message {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.rotation-message strong {
    color: #f472b6;
    font-weight: 600;
    font-size: 16px;
}

/* Buttons */
.rotation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.rotation-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.rotation-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.rotation-btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.rotation-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rotation-btn-secondary:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

/* Rotation Banner */
.rotation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 12px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rotation-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    gap: 12px;
}

.rotation-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rotation-banner-icon .phone-rotate {
    display: inline-block;
    animation: phoneWiggle 2s ease-in-out infinite;
}

.rotation-banner-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rotation-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rotation-banner-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.rotation-banner-close:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.95);
}

.rotation-banner-close i {
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes phoneRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(-90deg);
    }
    75% {
        transform: rotate(-75deg);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes phoneWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .rotation-overlay,
    .rotation-banner {
        display: none !important;
    }
}

/* Hide in landscape mode */
@media (max-width: 1024px) and (orientation: landscape), (max-height: 600px) and (orientation: landscape) {
    .rotation-overlay,
    .rotation-banner {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 374px) {
    .rotation-overlay h2 {
        font-size: 20px;
    }

    .rotation-message {
        font-size: 14px;
    }

    .phone-device {
        font-size: 60px;
    }

    .rotation-arrow {
        font-size: 40px;
    }
}
