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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 10px;
    color: #e8e8e8;
}

.container {
    max-width: 800px;
    margin: 0;
    background: rgba(25, 25, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #f7fafc;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 8px;
    color: #ffc107;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 12px;
    margin-bottom: 10px;
    text-align: left;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.ai-model-info {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
    border-radius: 8px;
    color: #3498db;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px;
    margin-bottom: 15px;
    text-align: left;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.02) 20px,
        rgba(255, 255, 255, 0.02) 40px
    );
    animation: movePattern 30s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    color: #f7fafc;
    letter-spacing: -0.02em;
}

.title-icon {
    display: inline-block;
    animation: bounce 3s infinite ease-in-out;
    margin-right: 8px;
    filter: brightness(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.date-display {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    color: #cbd5e0;
}

.total-count-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.count-main {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-number {
    color: #f39c12;
    font-size: 1rem;
    font-weight: 700;
}

.count-breakdown {
    font-size: 0.75rem;
    color: #a0aec0;
    opacity: 0.9;
    line-height: 1.3;
}

.main-content {
    padding: 25px 15px;
    background: rgba(26, 32, 44, 0.3);
}

.loading {
    text-align: center;
    padding: 40px 15px;
    color: #a0aec0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(160, 174, 192, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.events-container {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.events-list {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.event-card {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-left-color: #a0aec0;
    background: rgba(55, 65, 81, 0.9);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #a0aec0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.event-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.event-description {
    color: #cbd5e0;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.credibility-rating {
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.credibility-label {
    color: #9ca3af;
    font-weight: 500;
}

.credibility-score {
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.credibility-score.high {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.credibility-score.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.credibility-score.low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.credibility-reason {
    color: #9ca3af;
    font-size: 0.7rem;
    opacity: 0.8;
}

.event-year {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 6px;
    opacity: 0.9;
}

.event-source {
    font-size: 0.75rem;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.event-link {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.event-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.event-no-link {
    color: #718096;
    font-size: 0.8rem;
    font-style: italic;
}

.refresh-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #f7fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #667eea, #4a5568);
    border-color: rgba(255, 255, 255, 0.2);
}

.refresh-btn:active {
    transform: translateY(0);
}

.footer {
    background: rgba(26, 32, 44, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        border-radius: 12px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .ai-warning {
        font-size: 0.8rem;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .ai-model-info {
        font-size: 0.75rem;
        padding: 8px 12px;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .title-icon {
        margin-right: 8px;
    }
    
    .date-display {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 25px 15px;
    }
    
    .event-card {
        padding: 18px 15px;
    }
    
    .event-title {
        font-size: 1.1rem;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .event-icon {
        font-size: 1.2rem;
    }
    
    .event-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .credibility-rating {
        padding: 6px 10px;
        margin-bottom: 10px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .credibility-score {
        padding: 1px 6px;
        font-size: 0.75rem;
    }
    
    .credibility-reason {
        font-size: 0.7rem;
        flex-basis: 100%;
        margin-top: 2px;
    }
    
    .event-year {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .event-source {
        font-size: 0.75rem;
        padding-top: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .refresh-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        max-width: 180px;
    }
    
    .footer {
        padding: 15px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 1.6rem;
    }
    
    .main-content {
        padding: 20px 12px;
    }
    
    .event-card {
        padding: 15px 12px;
    }
    
    .event-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
    
    .refresh-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        max-width: 160px;
    }
    
    .total-count-info {
        margin-top: 10px;
        padding: 8px 10px;
    }
    
    .count-main {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .count-number {
        font-size: 0.85rem;
    }
    
    .count-breakdown {
        font-size: 0.65rem;
    }
}