/* ============================================================
   CMS OBJECT: Hero
   Views: _Hero.cshtml, Shared/Hero/*
   Dependencies: Bootstrap 5, cmscontainermanagement.js video modal
   Dynamic content values remain inline in the Razor views.
   ============================================================ */

/* CMS-configurable height options do not have Bootstrap equivalents. */
.cms-hero__stage--height-fullscreen {
    min-height: 100vh;
}

.cms-hero__stage--height-medium {
    min-height: 600px;
}

.cms-hero__stage--height-small {
    min-height: 400px;
}

/* Preview editor fields intentionally resemble rendered hero text. */
.cms-hero__editor-preview textarea {
    overflow-y: hidden;
    resize: none;
    border: 0;
    background-color: transparent !important;
    box-shadow: none;
    margin-bottom: .5rem;
}

.cms-hero__editor-preview textarea:focus {
    border: 1px solid #f58025 !important;
}

.cms-hero__heading {
    max-width: 1200px;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0;
    background-color: transparent !important;
    box-shadow: none;
    font-size: 42px !important;
    font-weight: 300 !important;
}

.cms-hero__subheading {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0;
    background-color: transparent !important;
    box-shadow: none;
    font-size: 1.8rem;
    font-weight: 500;
}

.cms-hero__stage--theme-light {
    color: #212529;
}

.cms-hero__stage--theme-dark,
.cms-hero__stage--theme-dark .cms-hero__subheading,
.cms-hero__stage--theme-dark .cms-hero__body {
    color: #fff !important;
}

.cms-hero__stage--theme-light .cms-hero__subheading,
.cms-hero__stage--theme-light .cms-hero__body {
    color: #212529 !important;
}

/* The surrounding layout uses Bootstrap positioning and flex utilities. */
.cms-hero__video-control {
    width: 70px;
    height: 70px;
    z-index: 1;
    pointer-events: none;
    background: rgba(245, 128, 37, .8);
    transition: all .3s;
}

.cms-hero__video-control span {
    margin-left: 5px;
    font-size: 30px;
}

.cms-hero__video-trigger:hover .cms-hero__video-control {
    background: rgb(245, 128, 37);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.cms-hero__selection {
    min-height: 80vh;
    padding: 20px 0 60px;
    margin-bottom: 40px;
    position: relative;
    background-color: #fafafa;
    border-bottom: 3px solid #dee2e6;
}

.cms-hero__selection::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f58025, transparent);
    box-shadow: 0 2px 8px rgba(245, 128, 37, .3);
    transform: translateX(-50%);
}

.cms-hero__selection-card {
    margin-top: 20px;
    margin-bottom: 25px;
    position: relative;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .3s ease;
}

.cms-hero__selection-card:hover {
    border-color: #f58025;
    box-shadow: 0 8px 25px rgba(245, 128, 37, .15);
    transform: translateY(-2px);
}

.cms-hero__selection-card::before {
    content: "Hero Preview";
    position: absolute;
    top: -12px;
    left: 20px;
    z-index: 25;
    padding: 4px 12px;
    color: #6c757d;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 500;
}

.cms-hero__selection-action {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    padding: 8px;
    color: #f58025;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: all .2s ease;
}

.cms-hero__selection-action:hover {
    color: #fff;
    background: #f58025;
    transform: scale(1.1);
}

.cms-hero__selection-card:hover .cms-hero__selection-action {
    display: block;
}

@media (max-width: 767.98px) {
    .cms-hero__selection-action {
        display: block;
    }
}
