

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #64748b;
}

.breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #dc2626;
}

.breadcrumb i {
    font-size: 10px;
    color: #94a3b8;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

/* Main Article */
.main-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    align-self: start;
}

/* Article Header */
.article-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.category.politics { background: #3b82f6; }
.category.economy { background: #059669; }
.category.society { background: #dc2626; }
.category.tech { background: #f59e0b; }
.category.culture { background: #8b5cf6; }
.category.sports { background: #06b6d4; }
.category.international { background: #6b7280; }

.article-badges {
    display: flex;
    gap: 8px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.badge.trending {
    background: #dc2626;
    animation: pulse-badge 2s infinite;
}

.badge.breaking {
    background: #f59e0b;
    animation: blink 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
}

.article-info {
    display: flex;
    align-items: center;
    justify-content: end;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.author-email {
    font-size: 12px;
    color: #64748b;
}

.article-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #64748b;
}

.stat-item i {
    font-size: 14px;
}

/* Article Actions */
.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.action-group {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.action-btn.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-label {
    font-size: 12px;
    color: #64748b;
    margin-right: 4px;
}

.font-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-btn:hover {
    background: #f9fafb;
}

.font-btn.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.font-btn[data-size="small"] { font-size: 12px; }
.font-btn[data-size="medium"] { font-size: 14px; }
.font-btn[data-size="large"] { font-size: 16px; }

/* Featured Image */
.featured-image {
    margin-bottom: 32px;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    background: #f8fafc;
    padding: 12px 32px;
    border-top: 1px solid #f1f5f9;
}

.image-caption p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Article Content */
.article-content {
    padding: 32px;
}

.article-content.font-small {
    font-size: 14px;
}

.article-content.font-medium {
    font-size: 16px;
}

.article-content.font-large {
    font-size: 18px;
}


/* Article Footer */
.article-footer {
    padding: 24px 32px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #cbd5e1;
    color: #334155;
}

.article-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.source-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.source-desc {
    font-size: 12px;
    color: #64748b;
}

.copyright p {
    font-size: 12px;
    color: #64748b;
}

/* Social Share */
.social-share {
    padding: 24px 32px;
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.social-share h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.share-btn.link {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Comments Section */
.comments-section {
    padding: 32px;
    border-top: 1px solid #f1f5f9;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.comments-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sort-select {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* Comment Form */
.comment-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
}

.user-name {
    font-weight: 500;
    color: #64748b;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    background: #f9fafb;
    color: #9ca3af;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.login-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background: #2563eb;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}


.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    order: 2;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: auto;
}

.sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.publish-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
}

.trending-list {
    display: flex
;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex
;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.rank.up {
    background: #dc2626;
}
.sidebar-title i {
    color: #dc2626;
}

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .article-title {
        font-size: 24px;
    }
}