/* Modern Blog Style - Professional Design */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 15px;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.header p {
    color: #718096;
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    transform: translateZ(0);
    will-change: transform;
}

.article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

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

/* Article Image */
.article-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}

.article-image::after {
    content: '📖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 2;
}

/* Article Content */
.article-content {
    padding: 28px;
    position: relative;
    z-index: 2;
    background: white;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-excerpt {
    color: #718096;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.article-date {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.article-date::before {
    content: '📅';
    margin-right: 8px;
}

.read-more {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
}

.author-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.author-details p {
    font-size: 0.8rem;
    color: #718096;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading {
    animation: shimmer 1.5s ease-in-out infinite;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        margin-bottom: 0;
        border-radius: 16px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    .header {
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .grid {
        gap: 15px;
    }
    
    .article-content {
        padding: 16px;
    }
    
    .article-image {
        height: 180px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .article-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .article-title {
        color: #f7fafc;
    }
    
    .article-excerpt {
        color: #cbd5e0;
    }
    
    .article-meta {
        border-top-color: #4a5568;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }
    
    .article-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .article-card:hover {
        transform: none !important;
    }
}
