/* PeptideLaws.com - Legal Database & Regulatory News */
/* Using Bulma-inspired design with custom legal styling */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --secondary: #744210;
    --accent: #c53030;
    --success: #276749;
    --warning: #b7791f;
    --info: #2b6cb0;
    --light: #f7fafc;
    --dark: #1a202c;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --border-radius: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

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

body {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--gray-100);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

a {
    color: var(--info);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-tagline {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.header-search {
    display: flex;
    gap: 0.5rem;
}

.header-search input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    width: 280px;
    font-size: 0.9rem;
}

.header-search button {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #8b5a2b;
}

/* Navigation */
.main-nav {
    background: rgba(0,0,0,0.15);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.9);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-list a:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
}

.nav-list a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    background: var(--gray-200);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-300);
}

.card-header h2, .card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}

/* News Items */
.news-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.news-item:hover {
    background: var(--gray-100);
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.news-category {
    background: var(--primary);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.news-category.fda { background: var(--accent); }
.news-category.state { background: var(--info); }
.news-category.international { background: var(--success); }
.news-category.legal { background: var(--secondary); }

.news-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

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

.news-excerpt {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Featured Story */
.featured-story {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, white 100%);
    border-left: 4px solid var(--accent);
}

.featured-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.featured-story .news-title {
    font-size: 1.5rem;
}

/* Law Database */
.law-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.law-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.law-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.law-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.law-card h3 a {
    color: var(--primary);
}

.law-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
}

.law-status.legal { background: #c6f6d5; color: #276749; }
.law-status.restricted { background: #feebc8; color: #744210; }
.law-status.illegal { background: #fed7d7; color: #c53030; }
.law-status.gray { background: #e2e8f0; color: #4a5568; }

.law-summary {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.75rem;
}

/* Sidebar */
.sidebar .card {
    margin-bottom: 1.5rem;
}

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

.sidebar-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: var(--gray-700);
}

.sidebar-list a:hover {
    color: var(--primary);
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid var(--info);
    color: #1e40af;
}

.alert-danger {
    background: #fee2e2;
    border-left: 4px solid var(--accent);
    color: #991b1b;
}

/* Article Page */
.article-header {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-content {
    font-size: 1.05rem;
    padding: 1.5rem 2rem 2rem;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.data-table th {
    background: var(--gray-200);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.data-table tr:hover {
    background: var(--gray-100);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-700);
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.breadcrumb a {
    color: var(--gray-600);
}

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

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }

    .header-search input {
        width: 200px;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .law-grid {
        grid-template-columns: 1fr;
    }
}

/* Print */
@media print {
    .site-header, .site-footer, .sidebar {
        display: none;
    }

    .content-grid {
        display: block;
    }
}
