/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #4F46E5;
    --secondary-color: #EC4899;
    --accent-color: #F59E0B;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Max Width */
    --max-width: 800px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    padding-bottom: 10px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-sm);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    padding: var(--spacing-md) 0 var(--spacing-xl) 0;
    min-height: calc(100vh - 200px);
}

/* ========================================
   Ad Containers (애드센스 사용 시 주석 해제)
   ======================================== */
/*
.ad-container {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-sm);
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top {
    margin-top: var(--spacing-md);
}

.ad-middle,
.ad-bottom {
    margin: var(--spacing-xl) 0;
}
*/

/* ========================================
   Promo Banner Slider
   ======================================== */
.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background-color: #f5f5f5;
}

.promo-slider {
    position: relative;
    width: 100%;
    height: 300px;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    color: white;
    text-decoration: none;
    pointer-events: none;
}

/* 각 슬라이드별 배경색 */
.promo-slide:nth-child(1) {
    background: #2f2362;
}

.promo-slide:nth-child(2) {
    background: #2a92ff;
}

.promo-slide:nth-child(3) {
    background: #ff9b4d;
}

.promo-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.promo-slide-content {
    flex: 1;
    padding-right: var(--spacing-md);
}

.promo-slide-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.promo-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.promo-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.promo-indicator.active {
    background-color: white;
}

.promo-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.promo-subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

/* 좌우 네비게이션 버튼 */
.promo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promo-nav-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.promo-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.promo-nav-btn svg {
    color: #333;
}

.promo-nav-prev {
    left: 10px;
}

.promo-nav-next {
    right: 10px;
}

/* PC에서 글씨 왼쪽 정렬 + 들여쓰기 */
@media (min-width: 769px) {
    .promo-slide-content {
        padding-left: 10%;
        text-align: left;
    }
    .promo-slide-image {
        transform: translateX(-15px);
    }
}

/* 모바일/태블릿에서 텍스트 중앙 정렬 */
@media (max-width: 768px) {
    .promo-slide-content {
        padding-left: 0;
        text-align: center;
    }
}

/* ========================================
   Section Styles
   ======================================== */
.services-section,
.benefits-section {
    margin-bottom: var(--spacing-xl);
}

/* 마지막 섹션은 추가 여백 */
.benefits-section {
    margin-bottom: calc(var(--spacing-xl) * 1.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.more-btn:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.service-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Benefits Grid
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: var(--spacing-md);
}

/* 각 혜택 카드마다 다른 배경색 */
.benefit-card:nth-child(1) { background-color: #FEE2E2; }
.benefit-card:nth-child(2) { background-color: #FEF3C7; }
.benefit-card:nth-child(3) { background-color: #DBEAFE; }
.benefit-card:nth-child(4) { background-color: #D1FAE5; }

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.benefit-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: calc(var(--spacing-xl) * 1.2) 0;
    margin-top: 0;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    padding: 10px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin: var(--spacing-sm) 0 0 0;
    padding: 0 var(--spacing-sm);
    max-width: 100%;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet - 768px */
@media (max-width: 768px) {
    /* 모바일에서 로고 숨김 */
    .logo-text {
        display: none;
    }

    .header-content {
        justify-content: center;
        gap: 0;
    }

    .main-nav {
        margin-top: 5px;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-slide {
        flex-direction: column;
        text-align: center;
    }

    .promo-slide-content {
        padding-right: 0;
    }

    .promo-slide-image {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 1.125rem;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .service-card {
        padding: var(--spacing-sm);
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-label {
        font-size: 0.75rem;
    }

    .promo-title {
        font-size: 1.25rem;
    }

    .promo-subtitle {
        font-size: 0.875rem;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }
}

/* Desktop - Larger than 800px */
@media (min-width: 801px) {
    .container {
        box-shadow: var(--shadow-lg);
        background-color: var(--bg-secondary);
    }

    .main-content {
        background-color: var(--bg-secondary);
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.benefit-card {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Subpage Styles
   ======================================== */
.subpage-header {
    display: flex;
    align-items: center;
	justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.back-button:hover {
    color: var(--primary-color);
}

.subpage-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.subpage-content {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.content-section {
    margin-bottom: var(--spacing-xl);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.content-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.content-item {
    margin-bottom: var(--spacing-lg);
}

.content-item:last-child {
    margin-bottom: 0;
}

.content-item-title {
    display: inline-block;
    padding: 5px 10px;
    margin: 0.2em 0;
    border-left: 8px solid #2c6ed5;
    font-weight: bold;
    color: #2c6ed5;
    font-size: 1rem;
}

.content-item-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.content-notice {
    background-color: #EFF6FF;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.content-notice p {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.content-textbox {
    background-color: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-sm);
}

.content-textbox p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.content-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-link:hover {
    color: var(--primary-color);
}

.action-button-container {
    margin-top: var(--spacing-xl);
}

.action-button {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    background-color: #2563EB;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-button:hover {
    background-color: #1D4ED8;
}

.back-to-home-button {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    background-color: #DC2626;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: var(--spacing-sm);
}

.back-to-home-button:hover {
    background-color: #B91C1C;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none !important;
}
   Realtime Keywords Section
   ======================================== */
.realtime-section {
    margin-bottom: var(--spacing-xl);
}

/* Date & Time Controls */
.rt-update-time {
    text-align: center;
    font-size: 16px;
    color: #64748b;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rt-text-label {
    color: #64748b;
    font-weight: 500;
}

.rt-update-time select {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    background-color: #fff;
    border: 1px solid transparent;
    padding: 6px 28px 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.rt-update-time select:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.rt-update-time select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Keywords Container */
.rt-keywords-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rt-keyword-item {
    display: flex;
    flex-direction: column;
}

/* Keyword Card */
.rt-keyword-card {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.08);
    position: relative;
    overflow: hidden;
}

.rt-keyword-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.rt-keyword-card:active {
    transform: scale(0.98);
}

.rt-keyword-card.active {
    border: 1px solid #3b82f6;
    background: #f0f7ff;
}

/* Rank Badge */
.rt-rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.rt-keyword-info {
    flex: 1;
    min-width: 0;
}

.rt-keyword-text {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.3px;
}

/* Badges */
.rt-keyword-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rt-badge-new {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.rt-badge-change {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.rt-badge-up {
    color: #ef4444;
    background: #fee2e2;
}

.rt-badge-down {
    color: #3b82f6;
    background: #dbeafe;
}

/* News Section */
.rt-news-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    opacity: 0;
}

.rt-news-section.open {
    max-height: 2000px;
    margin-top: -10px;
    opacity: 1;
    padding-bottom: 10px;
}

.rt-news-content {
    background: #f8fafc;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 24px 20px 20px 20px;
    border: 1px solid #e2e8f0;
    border-top: none;
    position: relative;
    z-index: 0;
}

.rt-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.rt-news-title {
    font-size: 15px;
    font-weight: 700;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rt-news-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.rt-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rt-news-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: block;
}

.rt-news-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.rt-news-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.rt-news-item-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rt-news-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.rt-news-item-source {
    color: #3b82f6;
    font-weight: 600;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Loading States */
.rt-loading, .rt-news-loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

.rt-loading-progress {
    font-size: 32px;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.rt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: rt-spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 0 auto 16px;
}

@keyframes rt-spin {
    to { transform: rotate(360deg); }
}

.rt-error, .rt-news-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .rt-update-time {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 16px;
        gap: 4px;
    }

    .rt-update-time select {
        font-size: 16px;
        padding: 4px 24px 4px 10px;
    }

    .rt-keyword-card {
        padding: 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .rt-rank-badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .rt-keyword-text {
        font-size: 16px;
    }

    .rt-news-content {
        padding: 20px 16px 16px 16px;
    }
}
