.article-detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem 4rem;
    color: #052E31;
}

@media (min-width: 640px) {
    .article-detail {
        padding-top: 6rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .article-detail {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.article-detail__nav {
    margin-bottom: 1.5rem;
}

.article-detail__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5F777B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-detail__nav-link:hover {
    color: #0CAF60;
}

.article-detail__nav-icon {
    width: 1rem;
    height: 1rem;
}

.article-detail__hero {
    position: relative;
    height: 500px;
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #F5F5F5;
}

.article-detail__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0CAF60;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.article-detail__title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    font-weight: 700;
}

.article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #D7DFE0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.article-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5F777B;
}

.article-detail__meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(12, 175, 96, 0.1);
    color: #0CAF60;
}

.article-detail__meta-icon svg {
    width: 0.875rem;
    height: 0.875rem;
}

.article-detail__content {
    color: #5F777B;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.article-detail__ord {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-bottom: 1.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #D7DFE0;
    background: #F8FBFB;
    color: #5F777B;
    font-size: 0.75rem;
    line-height: 1.45;
}

.article-detail__content p {
    margin-bottom: 1rem;
}

.article-detail__content h2,
.article-detail__content h3 {
    color: #052E31;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-detail__content h2 {
    font-size: 1.25rem;
}

.article-detail__content h3 {
    font-size: 1.125rem;
}

.article-detail__content ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: disc;
    list-style-position: outside;
}

.article-detail__content ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: decimal;
    list-style-position: outside;
}

.article-detail__content li {
    margin-bottom: 0.375rem;
}

.article-detail__content iframe {
    display: block;
    width: min(100%, var(--article-embed-max-width, 720px));
    max-width: 100%;
    margin: 1.5rem auto;
    border: 0;
}

.article-detail__tags {
    margin-bottom: 2rem;
}

.article-detail__section-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.article-detail__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-detail__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 0.75rem;
    background: #F5F5F5;
    color: #5F777B;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-detail__tag:hover {
    background: rgba(12, 175, 96, 0.1);
    color: #0CAF60;
}

.article-detail__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.article-detail__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #D7DFE0;
    background: #ffffff;
    color: #5F777B;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.article-detail__action-btn svg {
    stroke: currentColor;
}

.article-detail__action-btn:hover {
    border-color: #0CAF60;
    color: #0CAF60;
}

.article-detail__action-btn--like {
    background: #0CAF60;
    border: none;
    color: #ffffff;
}

.article-detail__action-btn--like:hover {
    background: rgba(12, 175, 96, 0.9);
    color: #ffffff;
}

.article-detail__action-btn--active {
    background: #0CAF60;
    border-color: #0CAF60;
    color: #ffffff;
}

.article-detail__action-btn--active .article-detail__action-icon {
    fill: currentColor;
    stroke: currentColor;
}

.article-detail__action-icon {
    width: 1rem;
    height: 1rem;
}

.article-detail__comment-form {
    margin-bottom: 2.5rem;
}

.article-detail__comment-box {
    border: 1px solid #D7DFE0;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 1rem;
}

.article-detail__comment-textarea {
    width: 100%;
    border: 1px solid #D7DFE0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #5F777B;
    resize: vertical;
    margin-bottom: 0.75rem;
    outline: none;
}

.article-detail__comment-textarea:focus {
    border-color: #0CAF60;
    box-shadow: 0 0 0 3px rgba(12, 175, 96, 0.15);
}

.article-detail__comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background: #0CAF60;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.article-detail__comment-submit:hover {
    background: rgba(12, 175, 96, 0.9);
}

.article-detail__comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.article-detail__comments {
    margin-bottom: 2rem;
}

.article-detail__comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-detail__comment {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #D7DFE0;
    background: #ffffff;
}

.article-detail__comment--author {
    border-color: #0CAF60;
}

.article-detail__comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(12, 175, 96, 0.1);
    color: #0CAF60;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.article-detail__comment-avatar--author {
    background: #0CAF60;
    color: #ffffff;
}

.article-detail__comment-body {
    flex: 1;
}

.article-detail__comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.article-detail__comment-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #052E31;
}

.article-detail__comment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(12, 175, 96, 0.1);
    color: #0CAF60;
    font-size: 0.7rem;
    font-weight: 600;
}

.article-detail__comment-date {
    font-size: 0.75rem;
    color: #5F777B;
    margin-left: auto;
}

.article-detail__comment-text {
    font-size: 0.875rem;
    color: #5F777B;
    line-height: 1.6;
    margin: 0;
}

.article-detail__comments-more {
    margin-top: 1rem;
}

.article-detail__comment-more-btn {
    border: 1px solid #D7DFE0;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #5F777B;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article-detail__comment-more-btn:hover {
    border-color: #0CAF60;
    color: #0CAF60;
}

.article-detail__empty {
    color: #5F777B;
    font-size: 0.875rem;
}

.article-detail__toast {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    background: #052E31;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    z-index: 1000;
}

.article-detail__toast--visible {
    opacity: 1;
    transform: translateY(0);
}
