﻿.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-card:hover {
    background-color: #f9fafb;
}

.category-tag:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Medium-style article list */
.article-card {
    border-bottom: 1px solid #f3f4f6;
    padding: 2rem 0;
    position: relative;
}

.article-card:last-child {
    border-bottom: none;
}

/* Enhanced article image styling */
.article-image {
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card:hover .article-image {
    transform: scale(1.02);
}

.article-image-placeholder {
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
}

/* Improved line clamping - only for subtitle */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Article title styling - full display without truncation */
.article-title {
    overflow: visible;
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

/* Mobile-first responsive image sizing with better positioning */
@media (max-width: 639px) {
    /* Mobile: Keep smaller, compact layout */
    .article-image-container {
        width: 80px !important;
        height: 64px !important;
        margin-top: 1rem !important; /* Align with title area */
    }
    
    .article-card > div {
        gap: 1rem !important;
    }
    
    /* Hide categories on mobile for cleaner look */
    .article-categories {
        display: none !important;
    }
    
    /* Adjust padding for mobile */
    .article-card {
        padding: 1.5rem 0;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    /* Small tablets */
    .article-image-container {
        width: 128px !important;
        height: 80px !important;
        margin-top: 1.5rem !important; /* Align with title */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Medium tablets */
    .article-image-container {
        width: 144px !important;
        height: 96px !important;
        margin-top: 2rem !important; /* Align with title */
    }
}

@media (min-width: 1024px) {
    /* Desktop */
    .article-image-container {
        width: 160px !important;
        height: 112px !important;
        margin-top: 2rem !important; /* Align with title */
    }
    
    .article-card > div {
        gap: 2rem !important;
    }
}

/* Enhanced hover effects for better UX */
@media (hover: hover) {
    .article-card:hover {
        background-color: #f9fafb;
        transition: background-color 0.2s ease-in-out;
    }
    
    .article-card:hover .article-title {
        color: #374151;
        transition: color 0.2s ease-in-out;
    }
}
