/* News Analysis Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --go-green: #69B846;
    --go-dark: #1a1a1a;
    --go-light: #f8f9fa;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
}

.text-go-green { color: var(--go-green); }
.bg-go-green { background-color: var(--go-green); }
.border-go-green { border-color: var(--go-green); }

/* Navigation */
.nav-item {
    transition: color 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--go-green);
}

/* Category Tabs */
.category-tab {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.category-tab:hover {
    color: var(--go-green);
    background-color: rgba(105, 184, 70, 0.05);
}

.category-tab.active {
    color: var(--go-green);
    background-color: rgba(105, 184, 70, 0.1);
    border-color: var(--go-green);
}

/* Article Cards */
.article-card {
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.pagination a:hover {
    color: var(--go-green);
    border-color: var(--go-green);
    background-color: rgba(105, 184, 70, 0.05);
}

.pagination a.active,
.pagination span.current {
    color: white;
    background-color: var(--go-green);
    border-color: var(--go-green);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pagination Styles for EyouCMS rendered HTML */
nav.inline-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Remove default list styles */
nav.inline-flex li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Style for all pagination links and text */
nav.inline-flex > a,
nav.inline-flex > li > a,
nav.inline-flex > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background-color: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

/* Hover effect for pagination links */
nav.inline-flex > a:hover,
nav.inline-flex > li > a.page-link:hover {
    color: var(--go-green);
    border-color: var(--go-green);
    background-color: rgba(105, 184, 70, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Active/Current page style */
nav.inline-flex > li.active > span.current {
    color: white;
    background-color: var(--go-green);
    border-color: var(--go-green);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(105, 184, 70, 0.3);
}

/* Specific style for page-link class */
nav.inline-flex > li > a.page-link {
    color: #4b5563;
}

nav.inline-flex > li > a.page-link:active {
    transform: translateY(0);
}

/* Style for first/prev/next/last page links */
nav.inline-flex > a {
    font-weight: 500;
    padding: 0 1rem;
}

/* Disabled state for first/prev links when on first page */
nav.inline-flex > a:not([href]) {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Add some spacing between page numbers and navigation buttons */
nav.inline-flex > li:first-of-type {
    margin-left: 0.25rem;
}

nav.inline-flex > li:last-of-type {
    margin-right: 0.25rem;
}

/* Featured Article */
.featured-article {
    position: relative;
    overflow: hidden;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(105, 184, 70, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Image Hover Effects */
.article-image-container {
    position: relative;
    overflow: hidden;
}

.article-image-container img {
    transition: transform 0.5s ease;
}

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

/* Card Shadows */
.card-hover {
    transition: box-shadow 0.3s, transform 0.3s;
}

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

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: rgba(105, 184, 70, 0.1);
    color: var(--go-green);
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Button Styles */
.btn-primary {
    background-color: var(--go-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #559e38;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--go-green);
    color: var(--go-green);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--go-green);
    color: white;
}

/* Section Backgrounds */
.section-alt {
    background-color: #fafafa;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
    
    /* Mobile pagination adjustments */
    nav.inline-flex > a,
    nav.inline-flex > li > a,
    nav.inline-flex > li > span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }
    
    nav.inline-flex > a {
        padding: 0 0.75rem;
    }
    
    /* Reduce gap on mobile */
    nav.inline-flex {
        gap: 0.375rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--go-green);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: rgba(105, 184, 70, 0.2);
    color: inherit;
}

/* Animated Arrow */
.arrow-animate {
    transition: transform 0.3s;
}

.arrow-animate:hover i {
    transform: translateX(4px);
}

/* Grid Gap Responsive */
@media (min-width: 1024px) {
    .article-grid {
        gap: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

