/* =====================================================
   VENTRX COMMON STYLES
   Shared CSS across all pages
   ===================================================== */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
    --ventrx-teal: #3AAFBF;
    --ventrx-dark: #1E6D7E;
    --ventrx-medium: #247D92;
    --text-color: #404040;
    --nav-text: #1A1A1A;
    --bg-midnight: #030810;
    --bg-dark-blue: #050C16;
    --bg-dark-blue-light: #081020;
}

/* ========== BASE STYLES ========== */
* { box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.font-nunito { font-family: 'Nunito', sans-serif; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
}

.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.brand-color { color: var(--ventrx-dark); }
.bg-midnight { background: var(--bg-midnight); }

/* ========== NAVIGATION ========== */
.nav-container {
    backdrop-filter: blur(12px);
    background: #FFFFFF;
}

.nav-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    color: #1E6D7E;
}

.nav-link:hover {
    color: #3AAFBF;
    text-shadow: 0 0 8px rgba(30,109,126,0.8), 0 0 20px rgba(30,109,126,0.5), 0 0 40px rgba(30,109,126,0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #1E6D7E;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    background: #FFFFFF !important;
    border: 1px solid #1E6D7E !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.dropdown-menu a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #247D92 !important;
    font-weight: 100;
    transition: all 0.3s ease;
    background: transparent;
    border: 0.5px solid transparent;
    border-radius: 8px;
    margin: 2px 6px;
    padding: 8px 14px !important;
}

.dropdown-menu a:hover {
    background: transparent !important;
    border-color: #247D92;
    color: #1E6D7E !important;
    text-shadow: 0 0 8px rgba(30,109,126,0.8), 0 0 20px rgba(30,109,126,0.5), 0 0 40px rgba(30,109,126,0.3);
}

.dropdown-menu a.active-page {
    color: #247D92 !important;
    font-weight: 100;
    border-color: #247D92;
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open { max-height: 500px; }

/* ========== IMAGE SECTIONS ========== */
.image-section {
    position: relative;
    overflow: hidden;
}

.image-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

/* ========== PUZZLE CONTAINER ========== */
.puzzle-container {
    background:
        radial-gradient(ellipse 200% 150% at 30% 20%, rgba(12,22,40,0.6) 0%, transparent 50%),
        radial-gradient(ellipse 180% 120% at 70% 80%, rgba(8,16,32,0.5) 0%, transparent 45%),
        radial-gradient(ellipse 150% 100% at 85% 15%, rgba(15,25,45,0.4) 0%, transparent 40%),
        radial-gradient(ellipse 120% 80% at 15% 75%, rgba(10,20,38,0.35) 0%, transparent 35%);
    background-color: var(--bg-midnight);
}

/* ========== SECTION BLOCKS ========== */
.section-block {
    background:
        radial-gradient(ellipse 150% 100% at 50% 30%, rgba(15,28,50,0.4) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5,12,22,0.95) 0%, rgba(8,16,30,1) 50%, rgba(5,12,22,0.95) 100%);
    background-color: var(--bg-dark-blue);
    border: 1px solid rgba(58,175,191,0.35);
    box-shadow: 0 0 8px rgba(58,175,191,0.08);
}

.section-block.light {
    background:
        radial-gradient(ellipse 140% 90% at 40% 60%, rgba(18,32,55,0.45) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8,16,30,0.95) 0%, rgba(12,22,40,1) 50%, rgba(8,16,30,0.95) 100%);
    background-color: var(--bg-dark-blue-light);
}

/* ========== DIGITAL PULSE ANIMATION ========== */
@keyframes digital-pulse {
    0%, 100% { text-shadow: 0 0 12px rgba(58,175,191,0.6), 0 0 24px rgba(58,175,191,0.35), 0 0 40px rgba(58,175,191,0.2), 0 1px 3px rgba(0,0,0,0.4); }
    50% { text-shadow: 0 0 18px rgba(58,175,191,0.8), 0 0 36px rgba(58,175,191,0.5), 0 0 60px rgba(58,175,191,0.3), 0 1px 3px rgba(0,0,0,0.4); }
}

.teal-glow-text {
    color: rgba(58,175,191,1);
    text-shadow: 0 0 12px rgba(58,175,191,0.6), 0 0 24px rgba(58,175,191,0.35), 0 0 40px rgba(58,175,191,0.2);
    animation: digital-pulse 3s ease-in-out infinite;
}

/* ========== PRODUCT MODEL BADGES ========== */
.model-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
}

.model-badge.clickable-badge {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.model-badge.clickable-badge:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 15px rgba(58,175,191,0.3);
    border-color: rgba(58,175,191,0.5);
}

/* ========== MODAL STYLES ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(180deg, rgba(8,16,30,0.98) 0%, rgba(12,22,40,1) 50%, rgba(8,16,30,0.98) 100%);
    background-color: var(--bg-dark-blue-light);
    border: 1px solid rgba(58,175,191,0.35);
    border-radius: 20px;
    padding: 36px;
    max-width: 520px;
    width: 90%;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 30px rgba(58,175,191,0.1);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--modal-accent, linear-gradient(90deg, #3AAFBF, #247D92));
}

.modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-close svg {
    color: rgba(255,255,255,0.7);
}

.modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-feature-item:last-child {
    border-bottom: none;
}

.modal-feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(58,175,191,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== LEGAL/PRIVACY MODAL STYLES ========== */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.legal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: linear-gradient(180deg, rgba(5,12,22,0.98) 0%, rgba(8,16,30,1) 50%, rgba(5,12,22,0.98) 100%);
    background-color: var(--bg-dark-blue);
    border: 1px solid rgba(58,175,191,0.5);
    box-shadow: 0 0 30px rgba(58,175,191,0.15), 0 25px 60px rgba(0,0,0,0.5);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    z-index: 201;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.legal-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(58,175,191,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-size: 24px;
    color: rgba(58,175,191,1);
    text-shadow: 0 0 12px rgba(58,175,191,0.4);
    margin-bottom: 20px;
}

.legal-modal-body h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-modal-body p, .legal-modal-body li {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-modal-body ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.legal-modal-body li {
    margin-bottom: 6px;
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(58,175,191,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    background: rgba(58,175,191,0.2);
    border-color: rgba(58,175,191,0.5);
}

.legal-modal-close svg {
    color: rgba(255,255,255,0.7);
}

/* ========== COOKIE CONSENT STYLES ========== */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a1628 0%, #050C16 100%);
    border-top: 1px solid rgba(58,175,191,0.3);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--ventrx-teal);
    color: white;
}

.cookie-btn-accept:hover {
    background: #2d9aa8;
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
    border-color: rgba(255,255,255,0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--ventrx-teal);
    border: 1px solid rgba(58,175,191,0.5);
}

.cookie-btn-settings:hover {
    border-color: var(--ventrx-teal);
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-modal {
    background: linear-gradient(135deg, #0a1628 0%, #050C16 100%);
    border: 1px solid rgba(58,175,191,0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cookie-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.cookie-close:hover {
    opacity: 1;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
    padding-right: 20px;
}

.cookie-option-info h4 {
    margin-bottom: 4px;
}

.cookie-toggle {
    width: 48px;
    height: 26px;
    appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle:checked {
    background: var(--ventrx-teal);
}

.cookie-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.cookie-toggle:checked::before {
    transform: translateX(22px);
}

.cookie-settings-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: right;
}

/* ========== COMMON MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
    .section-block { padding: 32px 20px !important; }
    .p-12 { padding: 24px !important; }
    h2 { font-size: 1.75rem !important; }
}
