/**
 * SML News Card Widget CSS
 * Clinical Precision Design - 연구소/바이오텍 스타일
 */

/* ============================================
   SML News Card - Clinical Precision Design
   ============================================ */

.sml-news-section {
    --sml-primary: #0A2540;
    --sml-secondary: #00C9A7;
    --sml-accent: #00D4FF;
    --sml-bg-white: #FFFFFF;
    --sml-bg-gray: #F8FAFB;
    --sml-border: #E2E8F0;
    --sml-text: #1A1A2E;
    --sml-text-muted: #64748B;
    
    padding: 100px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFB 100%);
    position: relative;
}

.sml-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 167, 0.3), transparent);
}

.sml-news-header {
    text-align: center;
    margin-bottom: 48px;
}

.sml-news-title {
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--sml-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.sml-news-subtitle {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 16px;
    color: var(--sml-text-muted);
}

/* Filter Buttons */
.sml-news-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sml-news-filter-btn {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid var(--sml-border);
    border-radius: 30px;
    background: var(--sml-bg-white);
    color: var(--sml-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sml-news-filter-btn:hover {
    border-color: var(--sml-secondary);
    color: var(--sml-secondary);
}

.sml-news-filter-btn.active {
    background: var(--sml-secondary);
    border-color: var(--sml-secondary);
    color: #FFFFFF;
}

/* Grid Layout */
.sml-news-grid {
    display: grid;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.sml-news-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.sml-news-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.sml-news-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card Styles */
.sml-news-card {
    background: var(--sml-bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--sml-border);
    position: relative;
}

.sml-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sml-secondary), var(--sml-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sml-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 201, 167, 0.18);
    border-color: rgba(0, 201, 167, 0.3);
}

.sml-news-card:hover::before {
    opacity: 1;
}

.sml-news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
}

.sml-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sml-news-card:hover .sml-news-image img {
    transform: scale(1.08);
}

.sml-news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--sml-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, var(--sml-secondary), var(--sml-accent));
    padding: 6px 12px;
    border-radius: 20px;
}

.sml-news-content {
    padding: 24px;
}

.sml-news-date {
    font-family: var(--sml-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    color: var(--sml-secondary);
    margin-bottom: 12px;
}

.sml-news-card-title {
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--sml-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sml-news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sml-news-card-title a:hover {
    color: var(--sml-secondary);
}

.sml-news-excerpt,
.sml-news-card-excerpt {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--sml-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sml-news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--sml-secondary);
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.sml-news-link:hover {
    color: var(--sml-accent);
    gap: 10px;
}

.sml-news-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sml-news-link:hover svg {
    transform: translateX(2px);
}

/* List Layout */
.sml-news-list {
    max-width: 900px;
    margin: 0 auto;
}

.sml-news-list-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--sml-bg-white);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--sml-border);
    transition: all 0.3s ease;
}

.sml-news-list-item:hover {
    transform: translateX(8px);
    border-color: var(--sml-secondary);
    box-shadow: 0 4px 20px rgba(0, 201, 167, 0.1);
}

.sml-news-list-item .sml-news-image {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
}

.sml-news-list-item .sml-news-content {
    padding: 0;
    flex: 1;
}

/* View All Button */
.sml-news-view-all {
    text-align: center;
    margin-top: 48px;
}

.sml-news-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--sml-secondary), var(--sml-accent));
    border: none;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}

.sml-news-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .sml-news-grid.columns-4 { grid-template-columns: repeat(2, 1fr); }
    .sml-news-grid.columns-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sml-news-section {
        padding: 60px 16px;
    }

    .sml-news-grid.columns-2,
    .sml-news-grid.columns-3,
    .sml-news-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .sml-news-list-item {
        flex-direction: column;
    }

    .sml-news-list-item .sml-news-image {
        width: 100%;
        height: 180px;
    }
}
