﻿
/* =====================================================
   b333fy.com - Main Stylesheet
   ===================================================== */

/* =====================================================
   NAVIGATION COMPONENTS
   ===================================================== */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu a::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 6px;
    top: .8em;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
}

.dropdown-menu.show {
    display: block;
    z-index: 1000; /* Higher than defaultcloud to appear on top */
}

/* Navigation color styles */
.nav-item.active {
    background-color: #60a5ff;
}

.nav-item {
    color: #fff;
}

.nav-item:hover {
    text-decoration: none;
    background-color: #60a5ff;
}

.dropdown-item:focus, .dropdown-item:hover {
    text-decoration: none;
    color: #fff;
    background-color: #60a5ff;
}

.navbar-toggler {
    color: #fff;
    z-index: 1050; /* Higher than defaultcloud to appear on top */
}

.navbar-toggler:hover {
    color: #60a5ff;
}

#collapsingNavbar {
    margin-top: 15px;
    z-index: 1050; /* Higher than defaultcloud to appear on top */
}

/* =====================================================
   LAYOUT COMPONENTS
   ===================================================== */

.rounded-corners {
    border-radius: 10px;
}

.bee-presentation {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    position: relative;
    /* Base styles - will be overridden by media queries for better responsiveness */
    min-height: 300px;
    height: 50vh;
    max-height: 700px;
    /* Ensure content is centered */
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-large-object {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0px top;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    max-height: 900px;
    max-width: 100%;
}

/* =====================================================
   TYPOGRAPHY COMPONENTS
   ===================================================== */

.content-wrapper .content-title, 
.content-subtitle, 
a.link-back, 
a.link-back:active, 
a.link-back:visited {
    font-family: 'Montserrat800', sans-serif;
    display: inline-block;
    text-transform: uppercase;
    line-height: 1.1;
}

/* =====================================================
   HEADER COMPONENTS
   ===================================================== */

.header-wrapper-container {
    display: flex;
    flex-direction: column;
    flex-flow: row wrap;
    padding: 10px;
    justify-content: flex-start;
    gap: 10px;
}

.defaultcloud {
    position: absolute !important;
    top: 20px !important; /* Padding from top of banner */
    left: 20px !important; /* Padding from left of banner */
    overflow: hidden;
    max-width: 350px;
    min-width: 300px; /* Ensure consistent minimum width regardless of content */
    height: auto; /* Auto height to fit content */
    min-height: 200px;
    padding: 20px;
    background-color: white;
    z-index: 100; /* High z-index within banner context */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add subtle shadow */
}

.defaultcloud .content-title {
    font-family: 'Montserrat800', sans-serif;
    font-size: 120%;
    font-weight: 600;
}

.defaultcloud .content-subtitle {
    font-family: 'Montserrat800', sans-serif;
    margin-top: 0;
    font-size: 110%;
    font-weight: 400;
    margin-bottom: 10px;
}

.defaultcloud .content-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 90%;
}

.caption {
    position: absolute;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 50;
    width: fit-content;
    height: fit-content;
    max-width: 30%;
    top: 20px;
}

.caption .content-intro {
    font-family: 'Montserrat800', sans-serif;
    font-size: 90%;
    color: black;
}

/* =====================================================
   CONTENT COMPONENTS
   ===================================================== */

.image-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 90%;
}

.image-container img {
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}

.event-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    background: #f0f0f0;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.event-list .ccnc {
    color: red;
}

.event-list li:hover {
    transform: translateY(-2px);
    background: #e9e9e9;
}

/* =====================================================
   AI TOOLS BUBBLE - RIGHT SIDE
   ===================================================== */

.ai-tools-bubble {
    position: absolute;
    top: 20px; /* Same padding as left bubble within banner */
    right: 20px; /* Padding from right of banner */
    width: 200px;
    min-height: 120px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-bubble-title {
    font-family: 'Montserrat800', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3e3e3e;
    text-align: center;
    margin-bottom: 5px;
}

.ai-bubble-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-tool-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.ai-tool-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    text-decoration: none;
    color: #0056b3;
}

/* =====================================================
   MODAL COMPONENTS
   ===================================================== */

.modal-dialog {
    max-width: 90%;
}

/* =====================================================
   FOOTER COMPONENTS
   ===================================================== */

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background: #3e3e3e;
    margin-top: 15px;
}

.site-footer .social-wrapper {
    text-align: center;
    align-items: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 120%;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@-webkit-keyframes kenburns-bottom-left {
    0% {
        -webkit-transform: scale(1) translate(0, 0);
        transform: scale(1) translate(0, 0);
        -webkit-transform-origin: 16% 84%;
        transform-origin: 16% 84%
    }
    to {
        -webkit-transform: scale(1.25) translate(-20px, 15px);
        transform: scale(1.25) translate(-20px, 15px);
        -webkit-transform-origin: left bottom;
        transform-origin: left bottom
    }
}

@keyframes kenburns-bottom-left {
    0% {
        -webkit-transform: scale(1) translate(0, 0);
        transform: scale(1) translate(0, 0);
        -webkit-transform-origin: 16% 84%;
        transform-origin: 16% 84%
    }
    to {
        -webkit-transform: scale(1.25) translate(-20px, 15px);
        transform: scale(1.25) translate(-20px, 15px);
        -webkit-transform-origin: left bottom;
        transform-origin: left bottom
    }
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    .bee-presentation {
        /* Remove fixed heights to prevent gaps */
        min-height: auto;
        height: auto;
        /* Use min-height only when content is very minimal */
        min-height: 250px;
        /* Add padding to give proper spacing */
        padding: 20px 0;
    }
    
    /* Adjust hero container to center content better */
    .header-wrapper-container {
        min-height: auto;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 10px;
    }
    
    .defaultcloud {
        /* Keep fixed positioning but adjust size for mobile */
        max-width: 300px !important;
        min-width: 250px !important; /* Ensure minimum width on mobile */
        min-height: 150px;
        padding: 15px;
        /* Fixed positioning is maintained from main rule */
    }
    
    .defaultcloud .content-title {
        font-size: 100%;
    }
    
    .defaultcloud .content-subtitle {
        font-size: 95%;
    }
    
    .defaultcloud .content-intro {
        font-size: 85%;
    }
    
    .caption {
        max-width: 80%;
        padding: 8px;
    }
    
    .header-wrapper-container {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    
    .content-wrapper {
        max-width: 95%;
        font-size: 100%;
    }
    
    .nav-item, .dropdown-item {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }
    
    .site-footer .social-wrapper {
        font-size: 100%;
    }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .bee-presentation {
        min-height: 350px;
        height: 45vh;
        /* Limit maximum height to prevent excessive gaps */
        max-height: 500px;
    }
    
    .header-wrapper-container {
        padding: 15px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .defaultcloud {
        /* Keep fixed positioning but adjust size for tablet */
        max-width: 320px !important;
        min-width: 280px !important; /* Ensure minimum width on tablet */
        /* Fixed positioning is maintained from main rule */
    }
    
    .content-wrapper {
        max-width: 95%;
    }
}

/* Large desktop devices (992px and up) */
@media (min-width: 992px) {
    .bee-presentation {
        /* Keep minimum for visual impact but add max to prevent excessive gaps */
        min-height: 400px;
        height: 50vh;
        max-height: 700px;
    }
    
    .header-wrapper-container {
        align-items: center;
        justify-content: flex-start;
    }
}

/* Large screens (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1840px;
    }
}

/* =====================================================
   ACCESSIBILITY UTILITIES
   ===================================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}



.ai-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-bubble-title {
    font-family: 'Montserrat800', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3e3e3e;
    text-align: center;
    margin-bottom: 5px;
}

.ai-bubble-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-tool-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.ai-tool-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    text-decoration: none;
    color: #0056b3;
}

/* =====================================================
   ESSENTIAL UTILITY CLASSES FROM LEGACY CSS CLEANUP
   ===================================================== */

/* Content intro small text variant used in VwTroc and other pages */
.content-intro-sml {
    font-family: 'Montserrat', sans-serif;
    font-size: 80%;
    line-height: 1.4;
}

/* Font main class used in some pages */
.fontmain {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Link back styling used across pages */
a.link-back,
a.link-back:active,
a.link-back:visited {
    color: #ff6060;
    text-decoration: none;
    position: relative;
    font-size: 13px;
    letter-spacing: .12em;
    font-family: 'Montserrat800', sans-serif;
    text-transform: uppercase;
    line-height: 1.1;
}

a.link-back::after,
a.link-back:active::after,
a.link-back:visited::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ff6060;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a.link-back:hover::after {
    transform: scaleX(1);
}

/* Flex utility class */
.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}
