/* Pulse.AI - Modern Social Media Inspired Tech News App */
:root {
    --pulse-primary: #18cb96;
    --pulse-primary-dark: #15b085;
    --pulse-primary-light: #20e6a8;
    --pulse-secondary: #4a5568;
    --pulse-accent: #f7fafc;
    --pulse-dark: #1a202c;
    --pulse-gray: #718096;
    --pulse-light-gray: #edf2f7;
    --pulse-white: #ffffff;
    --pulse-shadow: rgba(0, 0, 0, 0.1);
    --pulse-shadow-dark: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--pulse-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(24, 203, 150, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    flex-direction: row;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-slogan {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pulse-secondary);
    letter-spacing: -0.01em;
}

.brand-slogan-mobile {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pulse-secondary);
    letter-spacing: -0.01em;
}

.btn-refresh {
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 203, 150, 0.2);
}

.btn-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(24, 203, 150, 0.3);
    background: linear-gradient(135deg, var(--pulse-primary-dark), var(--pulse-primary));
    color: white;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 180px);
}

/* Hero Section */
.hero-section {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.05), rgba(32, 230, 168, 0.05));
    border-radius: 24px;
    margin: 0 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2318cb96" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2318cb96" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="%2318cb96" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="%2318cb96" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pulse-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--pulse-gray);
    font-weight: 400;
    margin-bottom: 1.5rem;
    position: relative;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--pulse-gray);
    font-size: 0.875rem;
    border: 1px solid rgba(24, 203, 150, 0.2);
    position: relative;
}

/* Loading States */
.loading-container {
    text-align: center;
    padding: 4rem 2rem;
}

.pulse-loader {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--pulse-primary);
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite ease-in-out;
}

.pulse-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pulse-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse-animation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-text {
    color: var(--pulse-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.d-lg-grid {
    display: grid !important;
}

/* News Cards */
.news-card {
    background: var(--pulse-white);
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(24, 203, 150, 0.1);
    width: 100%;
    max-width: 460px;
    min-width: 460px;
    min-height: 420px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--pulse-primary);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pulse-primary), var(--pulse-primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover::before {
    opacity: 1;
}

/* Card Header */
.news-card-header {
    padding: 1.5rem 1.5rem 0;
}

.source-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.source-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Source-specific colors */
.source-techcrunch { background: #ff6b35; color: white; }
.source-theverge { background: #ff6600; color: white; }
.source-arstechnica { background: #ff4500; color: white; }
.source-wired { background: #000000; color: white; }
.source-venturebeat { background: #1e88e5; color: white; }
.source-engadget { background: #00bcd4; color: white; }

.publish-time {
    display: flex;
    align-items: center;
    color: var(--pulse-gray);
    font-size: 0.75rem;
    font-weight: 500;
}

.time-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* Card Content */
.news-card-content {
    padding: 0 1.5rem 1rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pulse-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.05), rgba(32, 230, 168, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--pulse-primary);
}

.summary-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pulse-primary);
    margin-bottom: 0.5rem;
}

.chinese-summary {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--pulse-secondary);
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Footer */
.news-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(24, 203, 150, 0.1);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 203, 150, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(24, 203, 150, 0.4);
    color: white;
    text-decoration: none;
}

.engagement-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(24, 203, 150, 0.2);
    background: transparent;
    color: var(--pulse-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--pulse-primary);
    color: white;
    border-color: var(--pulse-primary);
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--pulse-white);
    border-radius: 20px;
    margin: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.empty-state-icon i {
    width: 40px;
    height: 40px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pulse-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--pulse-gray);
    margin-bottom: 2rem;
}

/* Footer */
.app-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.05), rgba(32, 230, 168, 0.05));
    border-top: 1px solid rgba(24, 203, 150, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand .brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--pulse-secondary);
}

.footer-tagline, .footer-text {
    font-size: 0.875rem;
    color: var(--pulse-gray);
    margin-top: 4px;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin: 0 1rem;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--pulse-white);
    color: var(--pulse-secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--pulse-primary);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    font-weight: 500;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .news-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .engagement-actions {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-content {
        margin-top: 80px;
    }
    
    .brand-text .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-text .brand-tagline {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin: 0 0.5rem 1rem;
        padding: 2rem 1rem;
    }
    
    .news-grid {
        padding: 0;
    }
    
    .news-card {
        margin: 0 0.5rem;
    }
}

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

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

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

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

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

::-webkit-scrollbar-track {
    background: var(--pulse-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--pulse-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pulse-primary-dark);
}

/* Introduction Guide Styles */
.intro-guide {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.intro-guide.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.intro-content {
    background: var(--pulse-white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(24, 203, 150, 0.1);
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.intro-icon i {
    width: 40px;
    height: 40px;
}

.intro-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pulse-secondary);
    margin-bottom: 0.5rem;
}

.intro-content p {
    color: var(--pulse-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.swipe-instructions {
    margin-bottom: 2rem;
}

.swipe-instruction {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(24, 203, 150, 0.05);
    border-radius: 12px;
    text-align: left;
}

.swipe-arrow {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.swipe-arrow.left {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.swipe-arrow.right {
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    color: white;
}

.swipe-instruction span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pulse-secondary);
}

.intro-start-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(24, 203, 150, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(24, 203, 150, 0.4);
}

/* Mobile Swiper Styles */
.swipe-instruction-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    margin: 0.5rem;
    background: rgba(24, 203, 150, 0.1);
    border-radius: 12px;
    color: var(--pulse-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.swipe-instruction-header i {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

.mobile-scroll-container {
    margin: 0;
    padding: 0.5rem;
    padding-bottom: 100px;
    overflow-y: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.swiper-container {
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
}



.mobile-news-card {
    background: var(--pulse-white);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    min-width: 460px;
    min-height: 420px;
    max-height: 500px;
    position: relative;
    border: 1px solid rgba(24, 203, 150, 0.1);
    display: flex;
    flex-direction: column;
    margin: 0 auto 2rem auto;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .mobile-news-card {
        min-width: 320px;
        max-width: 380px;
        margin: 0 auto 1.5rem auto;
    }
}

.mobile-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}





.mobile-card-header {
    padding: 1.2rem 1.2rem 0;
    flex-shrink: 0;
}

.mobile-card-content {
    padding: 0.5rem 1.2rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.latest-news-footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.02), rgba(32, 230, 168, 0.01));
    border-top: 1px solid rgba(24, 203, 150, 0.15);
    position: relative;
}

.latest-news-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pulse-primary), var(--pulse-primary-light));
    border-radius: 2px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pulse-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--pulse-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--pulse-gray);
    line-height: 1.5;
    opacity: 0.7;
    font-style: italic;
    border-top: 1px solid rgba(24, 203, 150, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.mobile-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pulse-secondary);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mobile-summary-section {
    flex-grow: 1;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(24, 203, 150, 0.08), rgba(32, 230, 168, 0.08));
    border-radius: 16px;
    border-left: 4px solid var(--pulse-primary);
    margin: 1rem 0;
    overflow-y: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pulse-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.chinese-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--pulse-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.mobile-card-footer {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(24, 203, 150, 0.1);
    margin-top: auto;
}

.mobile-read-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--pulse-primary), var(--pulse-primary-light));
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(24, 203, 150, 0.3);
}

.mobile-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(24, 203, 150, 0.4);
    color: white;
    text-decoration: none;
}

.mobile-actions {
    display: flex;
    gap: 12px;
}

.mobile-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(24, 203, 150, 0.2);
    background: transparent;
    color: var(--pulse-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-action-btn:hover {
    background: var(--pulse-primary);
    color: white;
    border-color: var(--pulse-primary);
    transform: translateY(-2px);
}

/* Bottom Navigation Panel */
.bottom-nav-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(24, 203, 150, 0.1);
    padding: 1rem;
    z-index: 1000;
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--pulse-primary);
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.nav-btn:hover {
    background: rgba(24, 203, 150, 0.1);
    transform: translateY(-2px);
}

.nav-btn i {
    width: 20px;
    height: 20px;
    margin-bottom: 0.25rem;
}

.swiper-pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.swiper-pagination {
    position: relative;
    margin: 0;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(24, 203, 150, 0.3);
    opacity: 1;
    margin: 0 3px;
}

.swiper-pagination-bullet-active {
    background: var(--pulse-primary);
    transform: scale(1.3);
}

.card-counter {
    font-size: 0.8rem;
    color: var(--pulse-gray);
    font-weight: 500;
}

#currentCard {
    color: var(--pulse-primary);
    font-weight: 600;
}

.nav-arrows {
    display: flex;
    gap: 0.5rem;
}

.swiper-button-next,
.swiper-button-prev {
    position: static;
    color: var(--pulse-primary);
    width: 36px;
    height: 36px;
    margin: 0;
    background: rgba(24, 203, 150, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--pulse-primary);
    color: white;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 12px;
    font-weight: 600;
}

/* Focus states for accessibility */
.btn-refresh:focus,
.read-more-btn:focus,
.action-btn:focus,
.mobile-read-btn:focus,
.mobile-action-btn:focus {
    outline: 2px solid var(--pulse-primary);
    outline-offset: 2px;
}

/* Category Tabs */
.category-tabs-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(24, 203, 150, 0.15);
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pulse-secondary);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.category-tab svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.category-tab .tab-count {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-tab:hover {
    background: rgba(24, 203, 150, 0.1);
    color: var(--pulse-primary-dark);
}

.category-tab.active {
    background: var(--pulse-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 203, 150, 0.35);
}

.category-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Tab Subtitle Bar */
.tab-subtitle-bar {
    text-align: center;
}

.tab-subtitle {
    display: none;
    font-size: 0.85rem;
    color: var(--pulse-gray);
    font-style: italic;
    letter-spacing: 0.3px;
}

.tab-subtitle.active {
    display: block;
}

/* Tab Sections */
.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
}

@media (max-width: 576px) {
    .category-tabs {
        gap: 2px;
        padding: 3px;
    }
    .category-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .category-tab span:first-of-type {
        display: none;
    }
    .category-tab svg {
        display: block;
    }
}