/* ==========================================================================
   MODERNIZED PEPTIDE PROTOCOLS - MAIN STYLES
   Updated with modern typography, glassmorphism, and interactive elements
   ========================================================================== */

/* ==========================================================================
   MODERN FONT IMPORT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */

.protocol-attribution {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 25%, #2d3748 50%, #1a202c 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background pattern for modern feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   MODERNIZED HEADER & NAVIGATION
   ========================================================================== */

header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.025em;
    text-transform: none;
}

/* ==========================================================================
   MODERNIZED SEARCH CONTAINER
   ========================================================================== */

.search-container {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.search-box {
    width: 100%;
    max-width: 600px;
    padding: 18px 24px;
    font-size: 1.125rem;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    color: #e2e8f0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-box:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.search-box::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ==========================================================================
   MODERNIZED FILTER TAGS
   ========================================================================== */

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.filter-tag {
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    margin: 0;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(5px);
}

.filter-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.filter-tag.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   MODERNIZED PEPTIDE CARDS GRID
   ========================================================================== */

.peptides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 32px;
    margin-top: 40px;
    padding: 20px 0;
}

.peptide-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 8px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.peptide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.peptide-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.peptide-card:hover::before {
    opacity: 1;
}

/* ==========================================================================
   MODERNIZED CARD HEADER
   ========================================================================== */

.card-header {
    padding: 40px 40px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.peptide-name {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: none;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   MODERNIZED PILL TAGS
   ========================================================================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.tag:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tag:hover::before {
    left: 100%;
}

/* ==========================================================================
   MODERNIZED CARD CONTENT
   ========================================================================== */

.card-content {
    padding: 40px;
}

.card-section {
    margin-bottom: 32px;
}

.card-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
    font-family: 'Inter', sans-serif;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.section-content {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
    padding: 24px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
}

.section-content:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Remove old colored section styling */
.section-content.benefits,
.section-content.protocols,
.section-content.side-effects,
.section-content.half-life,
.section-content.notes {
    /* Use the unified modern styling above */
}

/* ==========================================================================
   MODERNIZED PUBMED SECTION
   ========================================================================== */

.pubmed-section {
    margin-top: 32px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pubmed-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.pubmed-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.pubmed-header:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    transform: translateY(-1px);
}

.chevron {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.pubmed-header[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.pubmed-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pubmed-content.show {
    max-height: 1000px;
    padding: 24px;
}

.study-link {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 12px 12px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.study-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.study-link:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.study-link:hover::before {
    left: 100%;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .peptides-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .peptide-card {
        border-radius: 20px;
    }
    
    .card-header {
        padding: 32px 24px 24px;
    }
    
    .peptide-name {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 24px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .tags {
        gap: 8px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .filter-tags {
        gap: 8px;
        padding: 16px;
    }
    
    .filter-tag {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .search-box {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        padding: 30px 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .peptide-card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 24px 20px 20px;
    }
    
    .peptide-name {
        font-size: 1.25rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .section-content {
        padding: 16px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 0.8rem;
        padding-left: 12px;
    }
    
    .section-title::before {
        width: 3px;
        height: 12px;
    }
    
    .tags {
        gap: 6px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .filter-tags {
        gap: 6px;
        padding: 12px;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .search-box {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}