/**
 * Watlow Refinery 3D Web UI - Responsive & Orientation Guard Styling
 */

/* ==========================================================================
   Master 16:9 Canvas Container Scaling
   ========================================================================== */
:root {
    --design-width: 2560;
    --design-height: 1440;
    --ui-scale: min(calc(100vw / 2560), calc(100vh / 1440));
}

.fullscreen-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hud-dark);
}

/* Widescreen Desktop Stage */
.canvas-stage-16x9 {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Fluid responsive wrapper for standard layout pages (e.g. Industries) */
.fluid-stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Portrait Orientation Blocker Modal (Orientation Guard)
   ========================================================================== */
#orientation-guard {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: radial-gradient(circle at center, rgba(16, 24, 40, 0.98) 0%, rgba(6, 10, 18, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    color: #ffffff;
}

#orientation-guard .rotate-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    color: var(--watlow-red);
    animation: rotateDeviceNotice 2.5s infinite ease-in-out;
}

@keyframes rotateDeviceNotice {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
}

#orientation-guard h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

#orientation-guard p {
    color: #94a3b8;
    max-width: 420px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Activate Blocker in Portrait or Tall Aspect Ratios on Mobile/Tablet */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-aspect-ratio: 1/1) {
    #orientation-guard {
        display: flex !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints for Standard Content Pages
   ========================================================================== */
@media (max-width: 992px) {
    .watlow-header-notch {
        min-width: 260px;
        padding: 0.4rem 1.5rem 0.6rem;
    }
    .watlow-header-notch .logo-img {
        height: 22px;
    }
    .watlow-header-notch .tagline {
        font-size: 0.55rem;
    }
}
