/* AI News Aggregator - Frontend Styles */

/* OpenGraph 프리뷰 카드 */
.ana-og-preview-card {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    transition: box-shadow 0.3s ease;
}

.ana-og-preview-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ana-og-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f6f8fa;
}

.ana-og-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ana-og-preview-card:hover .ana-og-image img {
    transform: scale(1.05);
}

.ana-og-content {
    padding: 20px;
}

.ana-og-site-name {
    color: #586069;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ana-og-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 1.3;
}

.ana-og-title a {
    color: #0366d6;
    text-decoration: none;
}

.ana-og-title a:hover {
    text-decoration: underline;
}

.ana-og-description {
    color: #586069;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ana-og-url {
    color: #959da5;
    font-size: 13px;
}

/* 짧은 요약 */
.ana-short-summary {
    background: #f6f8fa;
    border-left: 4px solid #0366d6;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.ana-short-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #24292e;
    font-size: 18px;
}

.ana-short-summary p {
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

/* 무료 회원 콘텐츠 */
.ana-free-member-content {
    margin: 30px 0;
}

/* 광고 배너 */
.ana-ad-banner {
    margin: 30px 0;
    padding: 20px;
    background: #f6f8fa;
    border: 1px dashed #d1d5da;
    border-radius: 8px;
    text-align: center;
    position: relative;
    z-index: 5; /* 프리미엄 박스보다 위에 표시 */
}

.ana-ad-before-premium {
    margin-bottom: 20px; /* 프리미엄 박스와의 간격 */
}

.ana-ad-after-premium {
    margin-top: 20px; /* 프리미엄 박스와의 간격 */
    margin-bottom: 30px;
}

/* 프리미엄 알림 */
.ana-premium-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ana-premium-notice p {
    margin: 0 0 20px 0;
    font-size: 18px;
    line-height: 1.5;
}

.ana-premium-notice strong {
    font-size: 20px;
}

.ana-upgrade-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ana-upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #667eea;
}

/* 프리미엄 콘텐츠 */
.ana-premium-content {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
}

.ana-premium-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #24292e;
    font-size: 22px;
    border-bottom: 2px solid #0366d6;
    padding-bottom: 10px;
}

.ana-premium-content p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

/* 출처 링크 */
.ana-source-links {
    margin: 40px 0;
    padding: 25px;
    background: #f6f8fa;
    border-radius: 8px;
}

.ana-source-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #24292e;
    font-size: 18px;
}

.ana-source-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ana-source-links li {
    margin-bottom: 10px;
}

.ana-source-links a {
    color: #0366d6;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ana-source-links a:hover {
    background: #e1e4e8;
}

/* 면책 조항 */
.ana-disclaimer {
    margin: 30px 0;
    padding: 15px;
    background: #fff8dc;
    border-left: 4px solid #ffb700;
    border-radius: 4px;
}

.ana-disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 13px;
}

/* 멤버십 업그레이드 알림 (인라인) */
.ana-membership-upgrade-notice {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ana-membership-upgrade-notice .notice-icon {
    font-size: 48px;
    line-height: 1;
}

.ana-membership-upgrade-notice .notice-content {
    flex: 1;
}

.ana-membership-upgrade-notice h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.ana-membership-upgrade-notice p {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.95;
}

.notice-benefits {
    margin: 20px 0;
}

.notice-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.notice-benefits li {
    font-size: 14px;
    opacity: 0.95;
}

/* 프리미엄 잠금 콘텐츠 */
.ana-premium-locked {
    text-align: center;
    padding: 60px 20px;
    background: #f6f8fa;
    border: 2px dashed #d1d5da;
    border-radius: 8px;
    margin: 30px 0;
}

.ana-premium-locked p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #586069;
}

/* 블룸버그 스타일 페이월 */
.ana-free-preview {
    position: relative;
    margin: 30px 0;
}

.ana-preview-text {
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a1a;
}

.ana-paywall-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.ana-paywall-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin: 30px 0;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 10;
}

.ana-paywall-content h3 {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.ana-paywall-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
    text-align: left;
}

.benefit-item {
    font-size: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.ana-paywall-pricing {
    margin: 30px 0 25px 0;
}

.price-tag {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ana-subscribe-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 20px 0;
}

.ana-subscribe-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    color: #667eea;
}

.ana-paywall-note {
    margin: 15px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
}

.ana-premium-full-content {
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a1a;
    margin: 30px 0;
}

.ana-article-content {
    max-width: 720px;
    margin: 0 auto;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .ana-og-image {
        height: 200px;
    }
    
    .ana-og-title {
        font-size: 20px;
    }
    
    .ana-premium-notice {
        padding: 20px;
    }
    
    .ana-premium-notice p {
        font-size: 16px;
    }
    
    .ana-premium-notice strong {
        font-size: 18px;
    }
    
    .ana-membership-upgrade-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ana-membership-upgrade-notice .notice-icon {
        font-size: 36px;
    }
    
    .ana-membership-upgrade-notice h4 {
        font-size: 20px;
    }
    
    .notice-benefits ul {
        grid-template-columns: 1fr;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .ana-og-preview-card {
        border-color: #30363d;
        background: #0d1117;
    }
    
    .ana-og-image {
        background: #161b22;
    }
    
    .ana-og-content {
        background: #0d1117;
    }
    
    .ana-og-site-name {
        color: #8b949e;
    }
    
    .ana-og-title a {
        color: #58a6ff;
    }
    
    .ana-og-description {
        color: #8b949e;
    }
    
    .ana-short-summary {
        background: #161b22;
        border-left-color: #58a6ff;
    }
    
    .ana-short-summary h3 {
        color: #c9d1d9;
    }
    
    .ana-premium-content {
        background: #0d1117;
        border-color: #30363d;
    }
    
    .ana-premium-content h3 {
        color: #c9d1d9;
        border-bottom-color: #58a6ff;
    }
    
    .ana-source-links {
        background: #161b22;
    }
    
    .ana-source-links h4 {
        color: #c9d1d9;
    }
    
    .ana-source-links a {
        color: #58a6ff;
    }
    
    .ana-source-links a:hover {
        background: #30363d;
    }
}

/* 인쇄 스타일 */
@media print {
    .ana-premium-notice,
    .ana-ad-banner,
    .ana-membership-upgrade-notice,
    .ana-upgrade-button {
        display: none;
    }
    
    .ana-premium-content {
        border: none;
        padding: 0;
    }
}
