/* 금융 뉴스 전용 스타일 - 전문적이고 깔끔한 금융 디자인 */

/* 메인 컨테이너 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

/* 헤더 섹션 - 금융 전문가 스타일 */
.news-header {
    margin-top: 0px;
    margin-bottom: 30px;
    padding: 25px 0;
    background: linear-gradient(135deg, #0c5460 0%, #1a6b7a 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(12, 84, 96, 0.15);
}

.news-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-header p {
    font-size: 1.1rem;
    margin: 10px 0 0 0;
    text-align: center;
    opacity: 0.95;
    font-weight: 300;
}

/* 날짜 및 업데이트 정보 - Info section 색상 통일 */
.news-meta {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 18px 25px;
    border-radius: 12px;
    border: 1px solid #bee5eb;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(190, 229, 235, 0.3);
}

.news-date {
    font-size: 1rem;
    color: #0c5460;
    font-weight: 600;
    margin: 0;
}

.news-date i {
    color: #3b82f6;
    margin-right: 8px;
}

/* 뉴스 카드 컨테이너 */
.news-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* 개별 뉴스 카드 스타일 - Info section 색상 통일 및 금융 전문가 디자인 */
.news-card {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

/* 금융 전문가 스타일의 미묘한 강조선 - 회색 톤 */
.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(to bottom, #495057, #6c757d);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #495057;
    background: linear-gradient(145deg, #f1f3f4 0%, #f8f9fa 100%);
}

.news-card:hover::before {
    width: 4px;
}

/* 금융 전문가를 위한 추가 인터랙티브 효과 */
.news-card:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.2s ease;
}

/* 뉴스 헤더 (제목 + 메타 정보) */
.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #495057;
    text-decoration: none;
}

.news-importance {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* 뉴스 메타 정보 */
.news-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.news-source {
    font-weight: 600;
    color: #3b82f6;
    background-color: #eff6ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-time i {
    color: #94a3b8;
}

/* 뉴스 요약 */
.news-summary {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

/* 원문보기 버튼 - 금융 전문가 스타일 */
.news-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    margin: 15px 15px 15px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(73, 80, 87, 0.2);
    position: relative;
    overflow: visible;
}

.news-link-btn:hover {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(73, 80, 87, 0.3);
    color: white;
    text-decoration: none;
}

.news-link-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.news-link-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.news-link-btn:hover i {
    transform: translateX(2px);
}

/* 리워드 배지 - 더 눈에 띄게 개선 */
.reward-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    border: 2px solid white;
    animation: pulse 2s infinite;
    z-index: 10;
    min-width: 45px;
    text-align: center;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
}

/* 리워드 획득 완료 표시 */
.reward-claimed {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    border: 2px solid white;
    z-index: 10;
    display: none;
}

.reward-claimed.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkAppear 0.5s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 빈 상태 메시지 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.empty-state i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #475569;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* 관리자 버튼 */
.admin-controls {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.collect-news-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.collect-news-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.collect-news-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .news-container {
        padding: 15px;
    }
    
    .news-header {
        margin-top: 5px;
        padding: 20px 15px;
    }
    
    .news-header h1 {
        font-size: 1.8rem;
    }
    
    .news-card {
        padding: 20px;
    }
    
    .news-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-meta-info {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 성공/오류 메시지 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}