/* PepKey Premium Medical Theme - Shared Styles */

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    --medical-blue: #1e40af;
    --medical-teal: #0d9488;
    --medical-navy: #1e293b;
    --medical-platinum: #f8fafc;
    --medical-silver: #e2e8f0;
    
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0d9488 50%, #059669 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --blur-glass: blur(24px);
    --blur-frost: blur(16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--medical-platinum);
    color: var(--medical-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--medical-navy);
}

/* Premium Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.brand:hover .brand-icon {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e40af;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--medical-blue);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--medical-blue);
    background: rgba(30, 64, 175, 0.1);
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--medical-navy);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(226, 232, 240, 0.5);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--shadow-2xl);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-menu-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.mobile-menu-close button {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 0.5rem;
}

.mobile-menu-close button:hover {
    background: rgba(226, 232, 240, 0.5);
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--medical-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.mobile-nav-link:hover {
    background: rgba(30, 64, 175, 0.05);
    color: var(--medical-blue);
}

.mobile-nav-link.active {
    background: rgba(30, 64, 175, 0.1);
    color: var(--medical-blue);
}

.mobile-nav-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

/* Page Header */
.page-header {
    background: var(--gradient-hero);
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    33% { opacity: 0.8; transform: scale(1.05) rotate(1deg); }
    66% { opacity: 0.9; transform: scale(0.98) rotate(-0.5deg); }
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--blur-glass);
    border-radius: 2rem 2rem 0 0;
    margin: 0 2rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    margin-top: -2rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Cards and Sections */
.content-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-frost);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 1rem;
}

.section-content {
    color: #475569;
    line-height: 1.7;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.9);
    color: var(--medical-navy);
    padding: 0.875rem 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        margin: 0 1rem;
        margin-top: -1rem;
    }
    
    .content-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 1280px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .navigation {
        padding: 1rem;
    }
    
    .page-header {
        padding: 6rem 1rem 3rem;
    }
    
    .main-content {
        margin: 0 0.5rem;
        border-radius: 1rem 1rem 0 0;
        margin-top: -1rem;
    }
    
    .content-container {
        padding: 1.5rem 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(226,232,240,0.8);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    padding: 0.5rem;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--medical-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(30,64,175,0.05);
    color: var(--medical-blue);
}

.nav-dropdown-label {
    display: block;
    padding: 0.375rem 1rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(226,232,240,0.6);
    margin: 0.375rem 0;
}

/* Site Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 2rem 2rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}