/* Article Style Theme for Alic AI Blog */
/* Inspired by the clean article page design */

:root {
    /* Colors based on article pages */
    --primary: #667eea;
    --secondary: #764ba2;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border: #e5e7eb;
    --accent: #2563eb;
    --hover-bg: rgba(102, 126, 234, 0.05);
    
    /* Gradients */
    --gradient-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--gradient-header);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.status {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.stats-bar {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stats-bar span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.tab {
    background: white;
    border: 2px solid var(--border);
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--hover-bg);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Articles Section */
#articles {
    display: grid;
    gap: 2rem;
}

/* Article Cards */
.article {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.article:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* Article Title */
.article h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Badges */
.new-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge.badge-night {
    background: #6366f1;
}

.new-badge.badge-message {
    background: #8b5cf6;
}

.new-badge.badge-special {
    background: #ec4899;
}

.new-badge.badge-stats {
    background: #f59e0b;
}

.new-badge.badge-curation {
    background: #10b981;
}

/* Article Meta */
.article .meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity var(--transition);
}

.meta a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Article Preview */
.preview {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
}

.read-more:hover {
    gap: 0.7rem;
    color: var(--secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0;
}

.page-btn, .page-num {
    background: white;
    border: 2px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.page-btn:hover:not(.disabled), .page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--hover-bg);
}

.page-num.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: var(--background-light);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .stats-bar {
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .article {
        padding: 1.5rem;
    }
    
    .article h2 {
        font-size: 1.3rem;
    }
}