/* Peptides Site - Modern Design System */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --accent: #20c997;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    --gradient-3: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #f5f7fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Navbar */
.navbar {
    background: var(--gradient-3) !important;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand .text-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-2);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-section .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title a {
    color: var(--dark);
}

.card-title a:hover {
    color: var(--primary);
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card .icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-3);
    padding: 4rem 0;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 50px;
}

.badge.bg-primary {
    background: var(--gradient-2) !important;
}

/* Sections */
section {
    padding: 5rem 0;
}

section.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Article Content */
.article-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-content h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.article-content h3 {
    margin-top: 2rem;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 1.25rem;
    color: #555;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: #555;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-card .card-header {
    background: var(--gradient-2);
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

/* Footer */
footer {
    background: var(--gradient-3);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-2);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
    background: var(--gradient-2);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}

.btn-outline-primary:hover {
    background: var(--gradient-2);
    border-color: transparent;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-article img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.featured-article .content {
    padding: 2rem;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item .number {
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
    color: var(--secondary);
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* Pagination */
.pagination .page-link {
    border: none;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-2);
}

/* Alert */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #d4e9ff 100%);
    color: #0c5460;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 4px solid #ffc107;
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    section {
        padding: 3rem 0;
    }

    .article-content {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Placeholder images */
.placeholder-img {
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Category Icons */
.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Page Header (dark background sections) */
.page-header {
    background: var(--gradient-3);
    padding: 4rem 0;
}

.page-header h1 {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-header p {
    color: rgba(255,255,255,0.9);
}

.page-header .badge {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
