/* ==========================================================================
   Kaleidoscope Common Styles
   Shared across all pages for consistent branding and navigation
   ========================================================================== */

/* Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Layout Containers
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 80px 0;
}

/* Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1800px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-left .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 25px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF8300;
}

.nav-right a.nav-intelligence {
    color: #5C008B;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-right a.nav-intelligence::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #5C008B, #8B2AAE);
    border-radius: 2px;
}

.nav-right a.nav-intelligence:hover {
    color: #8B2AAE;
}

/* Mobile Menu Toggle
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Only Links */
.mobile-only-links {
    display: none;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Dropdown Navigation
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid currentColor;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu Base Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu-wide {
    min-width: 450px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced Dropdown Items with Icons and Descriptions */
.dropdown-menu a.dropdown-item {
    display: flex !important;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-menu a.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(92, 0, 139, 0.05) 0%, rgba(255, 131, 0, 0.05) 100%);
    padding-left: 24px;
}

.dropdown-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #E9D5FF, #DDD6FE);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5C008B;
    font-size: 1.125rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.dropdown-menu a.dropdown-item:hover .dropdown-item-icon {
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    color: #FF5E00;
    transform: scale(1.1);
}

.dropdown-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    display: block;
    color: #374151;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.dropdown-menu a.dropdown-item:hover .dropdown-item-title {
    color: #5C008B;
}

.dropdown-item-desc {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Legacy Support for Simple Dropdown Links */
.dropdown-menu a:not(.dropdown-item) {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.dropdown-menu a:not(.dropdown-item):last-child {
    border-bottom: none;
}

.dropdown-menu a:not(.dropdown-item):hover {
    background: #f9fafb;
    color: #FF8300;
    padding-left: 20px;
}

.dropdown-menu a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-menu a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Buttons
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, #FF8300, #FF5E00);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px 0 rgba(255, 131, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF5E00, #FF8300);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -1px rgba(255, 131, 0, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
