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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Main Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.3em;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #764ba2;
}

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

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Peptide Page Tabs - NEW! */
.peptide-tabs {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 5px;
    min-height: 50px;
}

.tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

/* Delivery Tags */
.delivery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.delivery-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
}

.delivery-tag:hover {
    background: #1976d2;
    color: white;
}

/* Content Layout */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
}

.sidebar-section ul li a:hover,
.sidebar-section ul li a.active {
    color: #667eea;
    background: #f8f9fa;
}

/* Main Content */
.main-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Breadcrumb */
.breadcrumb {
    color: #999;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Typography */
h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2em;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.warning-box strong {
    color: #856404;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Protocol Summary Box */
.protocol-summary {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.protocol-summary h3 {
    color: #1565c0;
    margin-top: 0;
    margin-bottom: 15px;
}

.protocol-summary ul {
    list-style: none;
    padding-left: 0;
}

.protocol-summary li {
    margin-bottom: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

/* Related Links */
.related-links {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
}

.related-links h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.related-links ul {
    list-style: none;
    padding-left: 0;
}

.related-links li {
    margin-bottom: 12px;
}

.related-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.related-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .tabs-container {
        overflow-x: scroll;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 640px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
}

/* Page Layout with Sidebar */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.page-main {
    min-width: 0;
}

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    color: #2c5282;
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 8px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.sidebar-nav a:hover {
    background: #eef2ff;
    color: #667eea;
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}
