/* ── features.css — shared styles for civilian.html and leo.html ── */

/* =============================================
   PAGE HERO
   ============================================= */
.feat-page-hero {
    position: relative;
    z-index: 10;
    padding: 5.5rem 4rem 3rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 140, 66, 0.07) 0%, transparent 65%);
}

.feat-page-hero-leo {
    background: radial-gradient(ellipse at 50% 0%, rgba(13, 127, 255, 0.07) 0%, transparent 65%);
}

.feat-page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.feat-page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: 3px;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 0.75rem;
}

.highlight-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feat-page-sub {
    font-size: 1.15rem;
    color: rgba(245, 245, 245, 0.6);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.section-rule-blue {
    background: var(--gradient-blue) !important;
}

/* =============================================
   FEATURE ROWS
   ============================================= */
.feat-list-section {
    position: relative;
    z-index: 10;
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.feat-row:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* Image on RIGHT side — reverse column order */
.feat-row-imgRight {
    grid-template-columns: 1fr 1fr;
}

/* =============================================
   IMAGE SIDE
   ============================================= */
.feat-media {
    position: relative;
    overflow: hidden;
    background: #070d1a;
    display: flex;
    align-items: stretch;
    height: 480px;
}

.feat-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #06080f;
}

.feat-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.95);
}

.feat-img-wrap:hover .feat-img {
    transform: scale(1.03);
    filter: brightness(1);
}

/* Placeholder for LEO features without images */
.feat-img-placeholder-leo {
    background: linear-gradient(135deg, #08132a 0%, #0a1e3d 100%);
    width: 100%;
    min-height: 400px;
}

/* =============================================
   CONTENT SIDE
   ============================================= */
.feat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 4rem;
    background: var(--deeper-dark);
}

.feat-row-imgLeft .feat-content {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.feat-row-imgRight .feat-content {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Feature ID badge */
.feat-id-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 140, 66, 0.15);
    border: 1px solid rgba(255, 140, 66, 0.35);
    color: var(--primary-orange);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    width: fit-content;
}

.feat-id-badge-leo {
    background: rgba(13, 127, 255, 0.15);
    border-color: rgba(13, 127, 255, 0.35);
    color: var(--light-blue);
}

/* Feature name */
.feat-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Feature description */
.feat-desc {
    font-size: 0.99rem;
    line-height: 1.85;
    color: rgba(245, 245, 245, 0.72);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* =============================================
   HOW-TO-USE TOOLTIP
   ============================================= */
.feat-how-wrap {
    position: relative;
    display: inline-block;
}

.feat-how-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    color: var(--primary-orange);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.feat-how-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.feat-how-btn:hover {
    background: rgba(255, 140, 66, 0.2);
    border-color: rgba(255, 140, 66, 0.6);
}

.feat-how-btn.active {
    background: rgba(255, 140, 66, 0.25);
    border-color: var(--primary-orange);
}

/* LEO variant */
.feat-how-btn-leo {
    background: rgba(13, 127, 255, 0.1);
    border-color: rgba(13, 127, 255, 0.3);
    color: var(--light-blue);
}

.feat-how-btn-leo:hover {
    background: rgba(13, 127, 255, 0.2);
    border-color: rgba(13, 127, 255, 0.6);
}

.feat-how-btn-leo.active {
    background: rgba(13, 127, 255, 0.25);
    border-color: var(--primary-blue);
}

/* Tooltip panel */
.feat-how-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    min-width: 320px;
    max-width: 420px;
    background: rgba(6, 13, 26, 0.98);
    border: 1px solid rgba(255, 140, 66, 0.25);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245, 245, 245, 0.9);
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: tipFadeIn 0.2s ease;
}

.feat-list-leo .feat-how-tip {
    border-color: rgba(13, 127, 255, 0.25);
}

.feat-how-tip.visible {
    display: block;
}

.feat-how-tip kbd {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: monospace;
    color: #fff;
}

/* Arrow on tooltip */
.feat-how-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 7px solid transparent;
    border-top-color: rgba(255, 140, 66, 0.25);
}

.feat-list-leo .feat-how-tip::after {
    border-top-color: rgba(13, 127, 255, 0.25);
}

@keyframes tipFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active page indicator in dropdown */
.active-page {
    color: var(--primary-orange) !important;
    background: rgba(255, 140, 66, 0.1);
}

/* =============================================
   IMAGE CAROUSEL
   ============================================= */
.carousel-img {
    position: relative;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(6, 13, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    line-height: 1;
    padding-bottom: 2px;
}

.carousel-btn:hover {
    background: rgba(255, 140, 66, 0.5);
    border-color: var(--primary-orange);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.cdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.cdot.active {
    background: var(--primary-orange);
    transform: scale(1.25);
}

/* =============================================
   AND SO MUCH MORE LINE
   ============================================= */
.feat-more-line {
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.feat-more-line::before,
.feat-more-line::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 140, 66, 0.3), transparent);
}

.feat-more-line span {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(255, 140, 66, 0.65);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* =============================================
   FOOTER CTA
   ============================================= */
.feat-cta-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 5rem 2rem;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 140, 66, 0.07) 0%, transparent 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-cta-leo {
    background: radial-gradient(ellipse at 50% 100%, rgba(13, 127, 255, 0.07) 0%, transparent 70%);
}

.feat-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.feat-cta-inner h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 0.75rem;
}

.feat-cta-inner p {
    font-size: 1.05rem;
    color: rgba(245, 245, 245, 0.55);
    margin-bottom: 2rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
    .feat-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Always show image first on mobile */
    .feat-row-imgRight .feat-media {
        order: -1;
    }

    .feat-media {
        min-height: 280px;
    }

    .feat-img-placeholder-leo {
        min-height: 200px;
    }

    .feat-content {
        padding: 2.5rem 2rem;
    }

    .feat-row-imgLeft .feat-content,
    .feat-row-imgRight .feat-content {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .feat-how-tip {
        min-width: 260px;
        max-width: 90vw;
    }

    .feat-list-section {
        padding: 1rem 1.5rem 3rem;
    }

    .feat-page-hero {
        padding: 5.5rem 1.5rem 2.5rem;
    }
}

@media (max-width: 600px) {
    .feat-how-tip {
        position: fixed;
        bottom: 20px;
        left: 10px;
        right: 10px;
        max-width: none;
        min-width: 0;
    }

    .feat-how-tip::after {
        display: none;
    }

    .feat-content {
        padding: 2rem 1.25rem;
    }
}