/* Blog Tech Specific Styles */

/* Hero Section for Blog */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero .hero-description {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Active nav link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
}

/* Loading Section */
.loading-section {
    padding: 80px 0;
    text-align: center;
    background: var(--light-gray);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
}

.loading-spinner p {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: var(--white);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Card */
.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--dark-gray);
    font-size: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.article-source {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
}

.article-date {
    font-style: italic;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--dark-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.article-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.telegram {
    background: #0088cc;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

#load-more-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error Section */
.error-section {
    padding: 80px 0;
    text-align: center;
    background: var(--light-gray);
}

.error-message {
    max-width: 500px;
    margin: 0 auto;
}

.error-message i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.error-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Category Tags */
.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.article-category.marketing {
    background: var(--primary-color);
}

.article-category.tech {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero .hero-description {
        font-size: 1.1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .social-share {
        gap: 0.3rem;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 60px;
    }
    
    .blog-hero .hero-title {
        font-size: 2rem;
    }
    
    .articles-section {
        padding: 60px 0;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .social-share {
        align-self: stretch;
        justify-content: center;
    }
}

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

.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(even) {
    animation-delay: 0.1s;
}

.article-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Loading animation for images */
.article-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

