/* Blog Cards Styles - Integrated with existing UI */
.blog-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
}

/* Blog Card Base */
.blog-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Blog Card Content */
.blog-card-content {
    padding: 1.25rem;
}

.blog-date {
    color: #8e8e93;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #636366;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-card:hover .read-more {
    transform: translateX(4px);
    color: #764ba2;
}

/* Loading State */
.blog-card.loading {
    animation: none;
    opacity: 1;
    transform: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 0.5rem 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Error State */
.blog-error-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-error-message {
    color: #636366;
}

.blog-error-message p {
    margin-bottom: 1rem;
}

.retry-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.blog-error-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 243, 224, 0.9);
    border-radius: 8px;
    text-align: center;
}

.blog-error-note p {
    color: #8b6914;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* More Button Styling */
.more-blogs-button {
    margin-top: 1.5rem;
    text-align: center;
}

.more-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .blog-cards-container {
        gap: 1rem;
        padding: 0.25rem;
    }
    
    .blog-card-image {
        height: 160px;
    }
    
    .blog-card-content {
        padding: 0.875rem;
    }
    
    .blog-title {
        font-size: 0.95rem;
    }
    
    .new-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .blog-card {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .blog-title {
        color: #f0f0f0;
    }
    
    .blog-excerpt {
        color: #b0b0b0;
    }
    
    .blog-date {
        color: #909090;
    }
    
    .blog-error-container {
        background: rgba(30, 30, 30, 0.95);
        color: #f0f0f0;
    }
}