/* Peptide Detail Page Specific Styles */

/* Peptide Layout (for pages using old structure) */
.peptide-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.peptide-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

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

.sidebar-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 12px;
}

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

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

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: #f8f9fa;
    color: #667eea;
}

.sidebar-nav a.active {
    background: #667eea;
    color: white;
}

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

/* Quick Facts Box */
.quick-facts {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.quick-facts h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fact-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.fact-label {
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.fact-value {
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin: 10px 5px 10px 0;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.research {
    background: #fff3cd;
    color: #856404;
}

.status-badge.prohibited {
    background: #f8d7da;
    color: #721c24;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Protocol Cards */
.protocol-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.protocol-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.protocol-card h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Dosing Schedule */
.dosing-schedule {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.dosing-phase {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.dosing-phase:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dosing-phase h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.dose-highlight {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 600;
}

/* Side Effects List */
.side-effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.side-effect-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.side-effect-category h4 {
    color: #333;
    margin-bottom: 15px;
}

.side-effect-category.severe {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.side-effect-category.common {
    border-left-color: #ffc107;
}

.side-effect-category.rare {
    border-left-color: #28a745;
    background: #f0fff4;
}

/* Research Quality Indicators */
.evidence-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin: 10px 0;
}

.evidence-level.strong {
    background: #d4edda;
    color: #155724;
}

.evidence-level.moderate {
    background: #fff3cd;
    color: #856404;
}

.evidence-level.limited {
    background: #f8d7da;
    color: #721c24;
}

.evidence-level.minimal {
    background: #e7e7e7;
    color: #666;
}

/* Star Rating */
.star-rating {
    color: #ffc107;
    font-size: 1.2em;
}

/* Mechanism Diagrams */
.mechanism-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.mechanism-box h3 {
    color: white;
    margin-top: 0;
}

.mechanism-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mechanism-step {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-date {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    .peptide-layout {
        grid-template-columns: 1fr;
    }
    
    .peptide-sidebar {
        position: static;
        order: 2;
    }
    
    .peptide-content {
        order: 1;
    }
    
    .fact-grid {
        grid-template-columns: 1fr;
    }
    
    .side-effects-grid {
        grid-template-columns: 1fr;
    }
    
    .mechanism-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .peptide-content {
        padding: 20px;
    }
    
    .quick-facts {
        padding: 15px;
    }
    
    .protocol-card {
        padding: 15px;
    }
}