/*
 * Why Choose Us section styles
 * Source reference: new_web/src/app/components/WhyChooseSection.tsx
 * All rules scoped under #wcu-section to prevent leakage into other components.
 */

/* ── Section wrapper ── */
#wcu-section {
    background: var(--why-bg);
    padding: clamp(40px, 5vw, 80px) 0;
    position: relative;
    overflow: hidden;
}

/* Ambient glow orbs (ref: absolute rounded-full pointer-events-none blur orbs) */
#wcu-section .wcu-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
#wcu-section .wcu-orb-1 {
    width: 160px; height: 160px;
    top: 60px; left: 3%;
    background: rgba(212,175,55,0.18);
    filter: blur(50px);
}
#wcu-section .wcu-orb-2 {
    width: 200px; height: 200px;
    bottom: 80px; right: 3%;
    background: rgba(212,175,55,0.1);
    filter: blur(60px);
}

/* ── Two-column layout grid ── */
#wcu-section .wcu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 1;
}
#wcu-section .wcu-left { min-width: 0; }

/* ── Title (ref: fontWeight 900, clamp(32,4vw,52), uppercase, nowrap) ── */
#wcu-section .wcu-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    color: var(--text-main, #fff);
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 16px;
    white-space: nowrap;
}
/* Last word: gold gradient clip — italic and text-stroke removed per spec */
#wcu-section .wcu-title .wcu-accent {
    background: linear-gradient(135deg, #D4AF37, #F6E27A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold divider bar below title */
#wcu-section .wcu-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F6E27A);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Description (ref: fontSize 17px, lineHeight 1.75) */
#wcu-section .wcu-desc {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-sub);
    margin-bottom: 32px;
    max-width: 560px;
}

/* ── Feature grid (ref: grid sm:grid-cols-2 gap-4) ── */
#wcu-section .wcu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

#wcu-section .wcu-card {
    position: relative;
    background: linear-gradient(180deg, #140606, #0b0202);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    padding: 22px 20px;
    min-height: 140px;
    width: 90%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* entrance: start hidden */
    opacity: 0;
    transform: translateY(22px);
    transition: all 0.3s ease;
}
/* Inset glow overlay — grows on hover via pseudo-element (ref: inset 0 0 20px rgba(212,175,55,0.08)) */
#wcu-section .wcu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 rgba(212,175,55,0);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
    z-index: 0;
}
/* Entrance animation complete */
#wcu-section .wcu-card.wcu-loaded {
    opacity: 1;
    transform: translateY(0);
}
/* Hover — dark card stays, subtle gold tint + border glow (ref: new_web WhyChooseSection) */
#wcu-section .wcu-card:hover {
    background: rgba(212,175,55,0.07);
    border: 1px solid rgba(212,175,55,0.6);
    box-shadow: 0 12px 40px rgba(212,175,55,0.15);
    transform: translateY(-5px);
}
#wcu-section .wcu-card.wcu-loaded:hover::before {
    box-shadow: inset 0 0 20px rgba(212,175,55,0.08);
}

/* ── Icon wrap ── */
#wcu-section .wcu-icon-wrap {
    position: relative;
    z-index: 1;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(212,175,55,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
/* Icon wrap hover: gold gradient fill + glow (icon turns black) */
#wcu-section .wcu-card:hover .wcu-icon-wrap {
    background: linear-gradient(163deg, rgb(212,175,55) 0%, rgb(251,245,183) 50%, rgb(153,101,21) 100%);
    box-shadow: 0 0 20px rgba(212,175,55,0.4);
    color: #000;
    transform: scale(1.1) rotate(-5deg);
}
/* Icon image — drop-shadow glow follows actual PNG shape */
#wcu-section .wcu-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1)
            drop-shadow(0 0 6px rgba(212,175,55,0.4))
            drop-shadow(0 0 12px rgba(212,175,55,0.25));
    transition: filter 0.35s ease, transform 0.35s ease;
}
#wcu-section .wcu-card:hover .wcu-icon {
    filter: brightness(0) invert(0);
    transform: scale(1.05);
}

/* ── Card text ── */
#wcu-section .wcu-card-title {
    position: relative; z-index: 1;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px; font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(165deg, rgb(212,175,55) 0%, rgb(251,245,183) 50%, rgb(153,101,21) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
    transition: filter 0.3s ease;
}
/* Title glow intensifies on hover — gradient text stays gold */
#wcu-section .wcu-card:hover .wcu-card-title {
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.55));
}
#wcu-section .wcu-card-desc {
    position: relative; z-index: 1;
    font-family: 'Inter', sans-serif;
    font-size: 12px; line-height: 1.6;
    color: #94A3B8;
    margin: 0;
}

/* ── Light theme overrides ── */
[data-theme="light"] #wcu-section .wcu-card {
    background: #ffffff !important;
    border: 1px solid rgba(212,175,55,0.25) !important;
    color: #1a1a1a !important;
}
[data-theme="light"] #wcu-section .wcu-card .wcu-card-title {
    background: linear-gradient(165deg, rgb(212,175,55) 0%, rgb(251,245,183) 50%, rgb(153,101,21) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
[data-theme="light"] #wcu-section .wcu-card .wcu-card-desc {
    color: #555 !important;
}
[data-theme="light"] #wcu-section .wcu-card:hover {
    background: rgba(212,175,55,0.08) !important;
    border: 1px solid rgba(212,175,55,0.6) !important;
    box-shadow: 0 12px 40px rgba(212,175,55,0.15) !important;
    transform: translateY(-5px);
}
[data-theme="light"] #wcu-section .wcu-icon {
    filter: brightness(0.5) contrast(1.2)
            drop-shadow(0 0 6px rgba(212,175,55,0.4))
            drop-shadow(0 0 12px rgba(212,175,55,0.25));
}
[data-theme="light"] #wcu-section .wcu-card:hover .wcu-icon {
    filter: brightness(0);
    transform: scale(1.05);
}
[data-theme="light"] #wcu-section .wcu-card:hover .wcu-card-title {
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.55));
}

/* ── Right column: floating framed image ── */
#wcu-section .wcu-right {
    width: min(480px, 90vw);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Glow disk centered behind the image (ref: 380px blur(60px) translate(-50%,-50%)) */
#wcu-section .wcu-right-glow {
    position: absolute;
    width: 380px; height: 380px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212,175,55,0.08);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
}
/* Float wrapper (ref: floatImg 5s ease-in-out infinite) */
#wcu-section .wcu-img-group {
    position: relative;
    animation: wcuFloatImg 5s ease-in-out infinite;
}
/* Framed image container — size only, no visual decoration */
#wcu-section .wcu-img-frame {
    position: relative;
    border-radius: 24px;
    width: min(480px, 90vw);
    height: min(480px, 90vw);
}
/* Image — drop-shadow glow follows actual image shape (works with PNG transparency) */
#wcu-section .wcu-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.4))
            drop-shadow(0 0 12px rgba(212,175,55,0.25));
    transition: transform 0.7s ease, filter 0.25s ease;
}
#wcu-section .wcu-img-frame:hover .wcu-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.6))
            drop-shadow(0 0 20px rgba(212,175,55,0.35));
}
/* Badge: half-overlaps bottom of frame (ref: absolute -bottom-4 left-1/2 -translate-x-1/2) */
#wcu-section .wcu-badge {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(163deg, rgb(212,175,55) 0%, rgb(251,245,183) 50%, rgb(153,101,21) 100%);
    padding: 10px 28px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px; font-weight: 900;
    letter-spacing: 2px;
    color: #000;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(212,175,55,0.4);
    text-transform: uppercase;
    transition: transform 0.3s ease;
}
/* Badge scales up on group hover (ref: group-hover:scale-105) */
#wcu-section .wcu-img-group:hover .wcu-badge {
    transform: translateX(-50%) scale(1.05);
}

/* ── Float keyframes (ref: floatImg, -18px travel) ── */
@keyframes wcuFloatImg {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-18px); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    #wcu-section .wcu-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    #wcu-section .wcu-right {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        order: -1;
    }
    #wcu-section .wcu-img-frame {
        width: min(340px, 90vw);
        height: min(340px, 90vw);
    }
}
@media (max-width: 600px) {
    #wcu-section .wcu-title {
        white-space: normal;
        font-size: clamp(28px, 8vw, 38px);
    }
}
@media (max-width: 480px) {
    #wcu-section .wcu-grid { grid-template-columns: 1fr; }
}
