/* Roland Trading Competition - Landing Page Styles */
/* Based on Metronic 8 Landing SCSS */

/* Landing Variables */
:root {
    --landing-dark-color: #13263C;
    --landing-header-height: 100px;
    --landing-header-height-tablet-and-mobile: 70px;
    --landing-header-sticky-height: 70px;
    --landing-header-sticky-height-tablet-and-mobile: 70px;
}

/* Utility classes */
.landing-dark-bg {
    background-color: var(--landing-dark-color);
}

.landing-dark-color {
    color: var(--landing-dark-color);
}

.landing-dark-border {
    border: 1px dashed #2C3F5B;
}

.landing-dark-separator {
    border-top: 1px dashed #2C3F5B;
}

.landing-curve {
    position: relative;
}

.landing-curve svg {
    position: relative;
    top: 0;
    display: block;
}

/* Landing header */
.landing-header {
    display: flex;
    align-items: center;
    height: var(--landing-header-height);
    background-color: transparent;
    position: relative;
    z-index: 95;
}

.landing-header .logo-default {
    display: block;
}

.landing-header .logo-sticky {
    display: none;
}

/* Menu wrapper - flex container */
.landing-header #kt_header_nav_wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Reactivate button transitions for landing page (overrides Metronic's transition:none) */
.btn {
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
    transform: none !important;
}

.btn:hover {
    transform: none !important;
}

/* Sticky header modes */
[data-kt-sticky-landing-header="on"] .landing-header {
    padding: 0;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    height: var(--landing-header-sticky-height);
}

[data-kt-sticky-landing-header="on"] .landing-header .logo-sticky {
    display: block;
}

[data-kt-sticky-landing-header="on"] .landing-header .logo-default {
    display: none;
}

/* Fix body padding top when Landing sticky header is on */
body[data-kt-sticky-landing-header="on"] {
    padding-top: var(--landing-header-height);
}

/* Badge circle */
.badge-circle {
    border-radius: 50% !important;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Symbol sizing */
.symbol-100px {
    width: 100px;
    height: 100px;
}

.symbol-circle {
    border-radius: 50% !important;
}

.symbol-circle .symbol-label {
    border-radius: 50% !important;
}

/* Hover elevate effect */
.hover-elevate-up {
    transition: all 0.3s ease;
}

.hover-elevate-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Gap utilities */
.gap-5 {
    gap: 1.25rem !important;
}

.gap-10 {
    gap: 2.5rem !important;
}

/* Separator */
.separator {
    display: block;
    border-bottom: 1px solid;
}

.separator-dashed {
    border-bottom-style: dashed !important;
}

.separator.border-gray-300 {
    border-color: #e4e6ef !important;
}

/* Badge sizes */
.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.925rem;
}

/* Min heights */
.min-h-350px {
    min-height: 350px !important;
}

.min-h-lg-500px {
    min-height: 500px !important;
}

/* Z-index for overlapping sections */
.z-index-2 {
    z-index: 2;
    position: relative;
}

/* Mobile menu drawer (Metronic compatible) */
[data-kt-drawer-name="landing-menu"] {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

[data-kt-drawer="true"][data-kt-drawer-activate="on"] {
    left: 0 !important;
}

/* Overlay when drawer is open */
body.drawer-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Additional font size utilities */
.fs-7 {
    font-size: 0.825rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

.fs-2tx {
    font-size: 2.5rem !important;
}

.fs-3tx {
    font-size: 3rem !important;
}

/* Width utilities */
.w-lg-auto {
    width: auto !important;
}

/* Row gaps */
.row.g-10 {
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 2.5rem;
}

/* Responsive - Tablet & mobile modes */
@media (max-width: 991px) {
    /* Landing header tablet/mobile */
    .landing-header {
        height: var(--landing-header-height-tablet-and-mobile);
    }

    [data-kt-sticky-landing-header="on"] .landing-header {
        height: var(--landing-header-sticky-height-tablet-and-mobile);
    }

    body[data-kt-sticky-landing-header="on"] {
        padding-top: var(--landing-header-height-tablet-and-mobile);
    }

    /* Mobile menu styling */
    [data-kt-drawer-name="landing-menu"] .menu {
        flex-direction: column;
    }

    [data-kt-drawer-name="landing-menu"] .menu-item {
        width: 100%;
        border-bottom: 1px solid #e4e6ef;
    }

    [data-kt-drawer-name="landing-menu"] .menu-link {
        padding: 1rem 1.5rem !important;
        color: #181c32 !important;
    }

    [data-kt-drawer-name="landing-menu"] .menu-link:hover {
        background: #f5f8fa;
        color: #009ef7 !important;
    }
}

/* Large screens */
@media (min-width: 992px) {
    /* Hide mobile toggle on desktop */
    #kt_landing_menu_toggle {
        display: none !important;
    }

    [data-kt-drawer-name="landing-menu"] {
        position: relative;
        left: 0;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
    }

    /* Font sizes on large screens */
    .fs-lg-2 {
        font-size: 1.5rem !important;
    }

    .fs-lg-3 {
        font-size: 1.35rem !important;
    }

    .fs-lg-3x {
        font-size: 3rem !important;
    }

    .fs-lg-2hx {
        font-size: 2.75rem !important;
    }

    .fs-lg-5 {
        font-size: 1.15rem !important;
    }

    .min-h-lg-500px {
        min-height: 500px !important;
    }

    .h-lg-250px {
        height: 250px !important;
    }

    .w-lg-250px {
        width: 250px !important;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    /* Hero section */
    .landing-dark-bg .fs-2x {
        font-size: 1.75rem !important;
    }

    .landing-dark-bg .fs-lg-3x {
        font-size: 2rem !important;
    }

    /* Statistics section */
    .h-200px {
        height: 150px !important;
    }

    .w-200px {
        width: 150px !important;
    }

    .fs-2hx {
        font-size: 1.5rem !important;
    }

    /* Podium section */
    .symbol-100px {
        width: 80px !important;
        height: 80px !important;
    }

    /* Card padding */
    .card-body.p-lg-20 {
        padding: 1.5rem !important;
    }

    /* Gap adjustments */
    .gap-10 {
        gap: 1rem !important;
    }

    .row.g-10 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    /* Hide separator on mobile */
    .d-flex .separator {
        display: none !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .h-lg-250px {
        height: 200px !important;
    }

    .w-lg-250px {
        width: 200px !important;
    }
}

/* Animation for sticky header */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

[data-kt-sticky-landing-header="on"] .landing-header {
    animation: slideDown 0.3s ease;
}
