/* Portrait Blocker - Shared component for landscape-only pages
   Import this on any page that needs the portrait orientation blocker.
   Self-contained, no side effects on other styles. */

.portrait-blocker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #0a0f14 0%, #161c2d 100%);
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    padding: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.portrait-blocker-icon {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(34, 197, 94, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: portraitRotateHint 2s ease-in-out infinite;
}

.portrait-blocker-icon svg {
    width: 44px;
    height: 44px;
    color: #22c55e;
}

@keyframes portraitRotateHint {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    75% { transform: rotate(0deg); }
}

.portrait-blocker h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.portrait-blocker p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 300px;
}

/* Show only on tablets (iPads) in portrait — phones are fine in portrait */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
    .portrait-blocker {
        display: flex !important;
    }
}

/* Light mode variant */
html[data-theme="light"] .portrait-blocker {
    background: linear-gradient(135deg, #f0f2f5 0%, #e5e7eb 100%);
    color: #1f2937;
}

html[data-theme="light"] .portrait-blocker p {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .portrait-blocker-icon {
    border-color: rgba(34, 197, 94, 0.3);
}
