/* 
   ==========================================================================
   AUTHORITY & UTILITY LAYER
   Phase 3: The "Mineral Powerhouse" Integration
   ========================================================================== 
*/

:root {
    --pulse-active: #10b981;
    --pulse-warning: #f59e0b;
    --glass-authority: rgba(255, 255, 255, 0.03);
}

/* 1. OPERATIONS PULSE (Live Mine Status) */
.ops-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.ops-pulse__dot {
    width: 8px;
    height: 8px;
    background: var(--pulse-active);
    border-radius: 50%;
    position: relative;
}

.ops-pulse__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--pulse-active);
    border-radius: 50%;
    animation: ops-ripple 2s infinite;
}

@keyframes ops-ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* 2. GEOLOGICAL BELT MAP (Stylized) */
.mines-overview--geo {
    padding-bottom: 0;
}

.geo-map-container {
    position: relative;
    isolation: isolate;
    margin: 4rem 0 0;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f7f4 100%);
    border: 1px solid rgba(15, 31, 58, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(15, 31, 58, 0.1);
}

.geo-map-container__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.geo-map-container__kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--primary-gold-600);
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.geo-map-container__title {
    max-width: 100%;
    color: var(--navy-950);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.6vw, 2.125rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.geo-map-container__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    max-width: 340px;
}

.geo-map-container__meta span {
    padding: 0.48rem 0.62rem;
    background: rgba(15, 31, 58, 0.04);
    border: 1px solid rgba(15, 31, 58, 0.1);
    color: var(--primary-gold-600);
    font-family: var(--font-ui);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.geo-map-container__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1rem;
}

.geo-map-container__map {
    min-height: 520px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f8faf8 0%, #eef3f0 100%);
    border: 1px solid rgba(15, 31, 58, 0.12);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.82),
        0 22px 48px rgba(15, 31, 58, 0.08);
}

.geo-map-svg {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
}

.geo-map-frame {
    fill: rgba(255, 255, 255, 0.42);
    stroke: rgba(15, 31, 58, 0.08);
}

.geo-province {
    fill: url(#geoProvinceFill);
    stroke: rgba(15, 31, 58, 0.18);
    stroke-width: 1.5;
}

.geo-contour {
    fill: none;
    stroke: rgba(154, 107, 66, 0.13);
    stroke-width: 1.2;
    stroke-dasharray: 1 10;
    stroke-linecap: round;
}

.geo-contour--soft {
    stroke: rgba(44, 94, 143, 0.12);
}

.geo-belt,
.geo-belt-core {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.geo-belt {
    stroke-width: 12;
    opacity: 0.12;
    transition: opacity 0.3s var(--ease-smooth), stroke-width 0.3s var(--ease-smooth);
}

.geo-belt-core {
    stroke-width: 3;
    stroke-dasharray: 8 14;
    opacity: 0.7;
}

.geo-map-container__map:hover .geo-belt {
    opacity: 0.18;
    stroke-width: 14;
}

.geo-belt--tethyan,
.geo-belt-core--tethyan {
    stroke: #d45a15;
}

.geo-belt--ophiolite,
.geo-belt-core--ophiolite {
    stroke: #2c5e8f;
}

.geo-route,
.geo-route-light {
    fill: none;
    stroke-linecap: round;
}

.geo-route {
    stroke: rgba(15, 31, 58, 0.36);
    stroke-dasharray: 3 14;
    stroke-opacity: 0.42;
    stroke-width: 2;
}

.geo-route-light {
    stroke: #2c5e8f;
    stroke-dasharray: 2 420;
    stroke-opacity: 0.5;
    stroke-width: 2;
    animation: geoRouteTravel 5.8s linear infinite;
}

.geo-marker__halo {
    fill: rgba(255, 255, 255, 0.82);
    stroke: rgba(15, 31, 58, 0.22);
    stroke-width: 2.5;
}

.geo-marker__belt-pin {
    fill: none;
    stroke-linecap: round;
    stroke-width: 3;
}

.geo-marker__belt-pin--tethyan {
    stroke: #d45a15;
}

.geo-marker__belt-pin--ophiolite {
    stroke: #2c5e8f;
}

.geo-marker__dot {
    fill: #d45a15;
}

.geo-marker--chromite .geo-marker__dot {
    fill: #2c5e8f;
}

.geo-marker--barite .geo-marker__dot {
    fill: #9a6b42;
}

.geo-marker__rule {
    fill: none;
    stroke: rgba(15, 31, 58, 0.46);
    stroke-linecap: square;
    stroke-width: 1.1;
}

.geo-marker--chromite .geo-marker__rule {
    stroke: rgba(44, 94, 143, 0.58);
}

.geo-marker--barite .geo-marker__rule {
    stroke: rgba(154, 107, 66, 0.5);
}

.geo-marker__label,
.geo-marker__caption,
.geo-map-label {
    font-family: var(--font-ui);
    text-transform: uppercase;
}

.geo-marker__label {
    fill: var(--navy-950);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.geo-marker__caption {
    fill: rgba(47, 58, 64, 0.62);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.geo-map-label {
    fill: rgba(15, 31, 58, 0.32);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.geo-map-label--small {
    fill: rgba(15, 31, 58, 0.48);
    font-size: 9px;
}

.geo-legend {
    display: grid;
    gap: 0.85rem;
}

.geo-legend__item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    min-height: 0;
    padding: 1.2rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 248, 0.88));
    border: 1px solid rgba(15, 31, 58, 0.11);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 16px 36px rgba(15, 31, 58, 0.06);
}

.geo-legend__item::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-top: 2px solid rgba(212, 90, 21, 0.46);
}

.geo-legend__item--ophiolite::before {
    border-top-color: rgba(44, 94, 143, 0.42);
}

.geo-legend__item--barite::before {
    border-top-color: rgba(154, 107, 66, 0.42);
}

.geo-legend__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(15, 31, 58, 0.045);
    border: 1px solid rgba(15, 31, 58, 0.1);
    border-radius: 999px;
}

.geo-legend__item strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--navy-950);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.geo-legend__item p {
    color: var(--charcoal-700);
    font-size: 0.82rem;
    line-height: 1.62;
}

@keyframes geoRouteTravel {
    0% {
        stroke-dashoffset: 420;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 920px) {
    .geo-map-container__header,
    .geo-map-container__grid {
        grid-template-columns: 1fr;
    }

    .geo-map-container__meta {
        justify-content: flex-start;
    }

    .geo-map-container__map,
    .geo-map-svg {
        min-height: 420px;
    }

    .geo-marker__label {
        font-size: 16px;
    }

    .geo-marker__caption,
    .geo-map-label {
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .geo-map-container {
        margin-top: 2.5rem;
        padding: 0.8rem;
    }

    .geo-map-container__title {
        font-size: 1.25rem;
    }

    .geo-map-container__meta span {
        font-size: 0.58rem;
    }

    .geo-map-container__map {
        min-height: 360px;
        overflow-x: auto;
    }

    .geo-map-svg {
        width: 720px;
        min-height: 360px;
    }

    .geo-legend__item {
        grid-template-columns: 1fr;
    }
}

/* 3. FREIGHT ANALYTICS CALCULATOR */
.freight-hub {
    background: var(--navy-900);
    color: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin: 4rem 0;
}

.freight-form {
    display: grid;
    gap: 1.5rem;
}

.freight-input-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.6);
}

.freight-select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
}

.freight-result {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.freight-metric {
    font-family: var(--font-heading);
    font-size: var(--display-size);
    line-height: 1;
    color: var(--primary-gold-400);
    margin-bottom: 0.5rem;
}

/* 4. DRONE CINEMATICS GALLERY */
.drone-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    margin: 4rem 0;
}

.drone-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.drone-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.drone-item:hover img {
    transform: scale(1.05);
}

.drone-item--lg { grid-column: span 8; grid-row: span 2; }
.drone-item--md { grid-column: span 4; grid-row: span 1; }

.drone-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.drone-item:hover .drone-play-btn {
    background: var(--primary-gold-500);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 5. 3D MINERAL PREVIEW MODAL */
.mineral-3d-frame {
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at center, #2a2a2a, #111111);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.mineral-object {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0 0 30px rgba(230,174,26,0.3));
    animation: mineral-float 6s ease-in-out infinite, mineral-rotate 20s linear infinite;
    transform-style: preserve-3d;
}

@keyframes mineral-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes mineral-rotate {
    from { transform: rotateY(0) rotateX(10deg); }
    to { transform: rotateY(360deg) rotateX(10deg); }
}
