/* ===== MAIN CONTAINER ===== */
.as-main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* ===== BREADCRUMB ===== */
.as-breadcrumb {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #4a5568;
    padding: 8px 0;
}

.as-breadcrumb-link {
    text-decoration: none;
    color: #4299e1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.as-breadcrumb-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.as-breadcrumb-sep {
    margin: 0 8px;
    color: #a0aec0;
}

.as-breadcrumb-current {
    color: #2d3748;
    font-weight: 600;
    max-width: 300px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== CONTENT ROW ===== */
.as-content-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.as-main-column {
    flex: 0 0 70%;
    max-width: 70%;
}

.as-sidebar {
    flex: 0 0 28%;
    max-width: 28%;
}

/* ===== ARTICLE HEADER ===== */
.as-article-header {
    margin-bottom: 20px;
}

.as-article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 10px;
    color: #0a0a0a;
    line-height: 1.3;
}

.as-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.as-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.as-meta-author {
    color: #0f50c1;
    font-weight: 600;
}

.as-meta-date, .as-meta-comments, .as-meta-reading {
    color: #0a0a0a;
}

.as-share-buttons {
    display: flex;
    gap: 10px;
}

.as-share-link {
    transition: transform 0.3s ease;
}

.as-share-link:hover {
    transform: scale(1.1);
}

.as-share-icon {
    width: 24px;
    height: 24px;
}

/* ===== ARTICLE CONTENT ===== */
.as-content-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 20px;
}

.as-content-body p {
    margin-bottom: 1.5em;
}

.as-content-body h1, .as-content-body h2, .as-content-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #2d3748;
}

/* ===== SIDEBAR ===== */
.as-sidebar-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 20px;
}

.as-sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4299e1;
}

.as-latest-list {
    margin-bottom: 20px;
}

.as-latest-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.as-latest-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.as-latest-number {
    font-weight: 600;
    color: #4299e1;
    margin-right: 10px;
    min-width: 20px;
    font-size: 14px;
}

.as-latest-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.as-latest-link:hover {
    color: #4299e1;
}

.as-see-more {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.as-see-more-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.as-see-more-link:hover {
    color: #2b6cb0;
}

/* ===== RELATED ARTICLES ===== */
.as-related-section {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.as-related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.as-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.as-related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.as-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.as-related-img {
    height: 150px;
    overflow: hidden;
}

.as-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.as-related-card:hover .as-related-img img {
    transform: scale(1.05);
}

.as-related-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.as-related-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.as-related-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.as-related-card-title a:hover {
    color: #4299e1;
}

.as-related-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #4299e1;
    font-weight: 600;
    text-transform: uppercase;
}

.as-related-footer {
    text-align: center;
}

.as-related-footer-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4299e1;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #4299e1;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.as-related-footer-link:hover {
    background: #4299e1;
    color: white;
}

/* ===== IMAGE SLIDER ===== */
.as-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.as-slider-prev, .as-slider-next, .as-slider-dots {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.as-slider:hover .as-slider-prev,
.as-slider:hover .as-slider-next,
.as-slider:hover .as-slider-dots {
    opacity: 1;
}

.as-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.as-slide {
    min-width: 100%;
}

.as-slide-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.as-slider-prev, .as-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.as-slider-prev { left: 15px; }
.as-slider-next { right: 15px; }

.as-slider-dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.as-dot {
    height: 12px;
    width: 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.as-dot.as-active {
    background: #4299e1;
    box-shadow: 0 0 5px rgba(66,153,225,0.7);
}

.as-single-img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
}

.as-single-img-elem {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== COMMENTS SECTION ===== */
.as-comments-wrapper {
    max-width: 100%;
    margin: 40px 0;
}

.as-comments-title {
    font-family: 'Montserrat', sans-serif;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Comment Form */
.as-comment-form {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#as-comment-content {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
}

#as-comment-content:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.as-bad-word-warning {
    display: none;
    background: #ffebee;
    border-left: 4px solid #d93b00;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 12px;
}

.as-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.as-char-count {
    font-size: 0.8rem;
    color: #718096;
}

.as-submit-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: background 0.3s ease;
}

.as-submit-btn:hover {
    background: #2b6cb0;
}

.as-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Guest Prompt */
.as-guest-prompt {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
    border: 1px solid #b6e0fe;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.as-guest-icon {
    font-size: 48px;
    color: #4299e1;
    margin-bottom: 15px;
}

.as-guest-prompt h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.as-guest-prompt p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.as-guest-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.as-guest-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.as-guest-btn-login {
    background: #4299e1;
    color: white;
}

.as-guest-btn-register {
    background: #48bb78;
    color: white;
}

.as-guest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.as-guest-subtext {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Restricted Prompt */
.as-restricted-prompt {
    background: #fff8e6;
    border: 1px solid #ffd54f;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.as-restricted-prompt i {
    font-size: 32px;
    color: #f59e0b;
    margin-bottom: 15px;
}

.as-restricted-prompt h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.as-restricted-prompt p {
    color: #92400e;
    margin: 0;
}

/* Comments List */
.as-empty-state {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.as-see-more-comments {
    text-align: center;
    margin-top: 15px;
}

.as-toggle-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease;
}

.as-toggle-btn:hover {
    background: #2b6cb0;
}

/* ===== COMMENT CARD ===== */
.as-comment-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.as-comment-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d0d9e8;
}

.as-comment-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.as-comment-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

.as-comment-user-info {
    flex: 1;
}

.as-comment-user-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.as-comment-username {
    font-family: 'Montserrat', sans-serif;
    color: #1a2634;
    font-size: 1rem;
    font-weight: 700;
}

.as-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.as-badge-admin {
    background: linear-gradient(135deg, #f5365c 0%, #f56036 100%);
    color: white;
}

.as-badge-author {
    background: linear-gradient(135deg, #2dce89 0%, #2dcecc 100%);
    color: white;
}

.as-badge-pinned {
    background: #f59e0b;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.as-badge-pinned i {
    font-size: 0.65rem;
}

.as-comment-timestamp {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.as-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.as-history-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.as-history-btn:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.as-comment-actions {
    position: relative;
    margin-left: auto;
}

.as-dropdown-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.as-dropdown-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.as-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 150px;
    margin-top: 8px;
    padding: 6px;
}

.as-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.as-dropdown-menu button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.as-dropdown-menu button:hover {
    background: #f8f9fa;
}

.as-edit-btn:hover {
    color: #0d6efd;
}

.as-delete-btn:hover {
    color: #dc3545;
}

.as-comment-body {
    margin-bottom: 16px;
    padding-left: 64px;
}

.as-comment-content {
    font-family: 'Montserrat', sans-serif;
    color: #2d3748;
    line-height: 1.7;
    font-size: 0.95rem;
}

.as-comment-text {
    max-height: none;
    overflow: visible;
    position: relative;
}

.as-comment-text.as-truncated {
    max-height: 120px;
    overflow: hidden;
}

.as-read-more {
    background: none;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.as-read-more:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
    color: #2d3748;
}

/* Edit Form */
.as-edit-form {
    margin-top: 20px;
}

.as-edit-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.as-edit-textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.as-edit-actions {
    display: flex;
    gap: 12px;
}

.as-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.as-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.as-cancel-edit {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.as-cancel-edit:hover {
    background: #cbd5e0;
}

/* Comment Footer */
.as-comment-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    padding-left: 64px;
}

.as-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.as-like-btn, .as-reply-btn, .as-report-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    border-radius: 30px;
    font-weight: 500;
}

.as-like-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 4px;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
}

.as-reply-count {
    font-size: 0.8rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

/* Reply Form */
.as-reply-form {
    margin-top: 20px;
    margin-left: 64px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.as-reply-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    min-height: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 16px;
    background: white;
    transition: all 0.2s ease;
}

.as-reply-textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.as-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.as-post-reply {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.as-post-reply:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.as-cancel-reply {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.as-cancel-reply:hover {
    background: #cbd5e0;
}

/* ===== REPLY THREAD ===== */
.as-replies-thread {
    position: relative;
    margin-left: 64px;
    margin-top: 20px;
    padding-left: 20px;
}

.as-thread-connector {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, #cbd5e0);
    border-radius: 2px;
}

.as-replies-container {
    position: relative;
}

/* ===== REPLY CARD ===== */
.as-reply-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e0;
    transition: all 0.2s ease;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.as-reply-card:hover {
    background: #f1f5f9;
    border-left-color: #667eea;
}

/* NO INDENTATION - All replies stacked directly */
.as-reply-card[data-depth="1"],
.as-reply-card[data-depth="2"],
.as-reply-card[data-depth="3"],
.as-reply-card[data-depth="4"],
.as-reply-card[data-depth="5"] {
    margin-left: 0;
}

/* Visual depth indicator using border color only */
.as-reply-card[data-depth="1"] {
    border-left-color: #cbd5e0;
}

.as-reply-card[data-depth="2"] {
    border-left-color: #94a3b8;
}

.as-reply-card[data-depth="3"] {
    border-left-color: #64748b;
}

.as-reply-card[data-depth="4"] {
    border-left-color: #475569;
}

.as-reply-card[data-depth="5"] {
    border-left-color: #334155;
}

/* Reply Header */
.as-reply-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.as-reply-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.as-reply-user-info {
    flex: 1;
}

.as-reply-user-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.as-reply-username {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.as-reply-to {
    font-size: 0.8rem;
    color: #718096;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.as-reply-to i {
    font-size: 0.7rem;
}

.as-reply-timestamp {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.as-reply-actions {
    position: relative;
}

/* Reply Body */
.as-reply-body {
    margin-bottom: 12px;
}

.as-reply-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3748;
}

.as-reply-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3748;
}

.as-reply-text.as-truncated {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.as-reply-text.as-truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #f8fafc);
    pointer-events: none;
}

/* Reply Footer */
.as-reply-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.as-reply-footer .as-footer-left {
    display: flex;
    gap: 12px;
}

.as-reply-footer button {
    background: none;
    border: none;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.as-reply-footer button i {
    font-size: 0.8rem;
}

.as-reply-footer button:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Nested Reply Form */
.as-nested-reply-form {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.as-nested-reply-form .as-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.as-nested-reply-form .as-post-reply {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.as-nested-reply-form .as-post-reply:hover {
    background: #5a67d8;
}

.as-nested-reply-form .as-cancel-nested-reply {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.as-nested-reply-form .as-cancel-nested-reply:hover {
    background: #cbd5e0;
}

/* Nested Replies Container - Single level only */
.as-nested-replies {
    margin-top: 16px;
    position: relative;
    padding-left: 20px;
    border-left: 2px dashed #e2e8f0;
}

/* Show more replies button */
.as-show-more-replies {
    background: none;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 8px 20px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.as-show-more-replies:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.as-show-more-replies i {
    font-size: 0.75rem;
}

.as-show-more-replies:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== MODALS ===== */
.as-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: asFadeIn 0.2s ease;
}

.as-modal.show {
    display: flex;
}

.as-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.as-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.as-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}

.as-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.as-modal-close:hover {
    color: #212529;
}

.as-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.as-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Delete Modal Specific */
.as-delete-icon {
    text-align: center;
    margin-bottom: 20px;
}

.as-delete-icon-circle {
    width: 60px;
    height: 60px;
    background: #f8d7da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.as-delete-icon-circle i {
    color: #dc3546;
    font-size: 1.5rem;
}

.as-comment-preview {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.as-delete-reason {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    min-height: 60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.as-delete-reason:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.as-cancel-modal {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.as-cancel-modal:hover {
    background: #5a6268;
}

.as-confirm-delete {
    background: #dc3546;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.as-confirm-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.as-confirm-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Report Modal */
.as-report-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.as-report-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.as-report-option:hover {
    border-color: #ffc107;
    background: #fff9e6;
}

.as-report-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #ffc107;
}

.as-report-option span {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.as-report-details {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    min-height: 80px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.as-report-details:focus {
    border-color: #ffc107;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.as-submit-report {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.as-submit-report:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.as-submit-report:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* History Modal */
.as-history-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.as-history-version {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.as-history-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.as-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.as-history-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

.as-history-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.as-history-current {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.as-history-original {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
    border: 1px solid #dee2e6;
}

.as-history-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.as-history-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

/* ===== SCROLL TO TOP ===== */
.as-scroll-top {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    cursor: pointer;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.as-scroll-top:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.as-scroll-top.show {
    display: flex;
}

/* ===== NOTIFICATION ===== */
.as-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    animation: asSlideIn 0.3s ease;
}

.as-notification.as-hidden {
    display: none;
}

.as-notification.as-error {
    background: linear-gradient(135deg, #dc3546 0%, #c82333 100%);
    border-left-color: #721c24;
}

.as-notification.as-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-left-color: #856404;
    color: #212529;
}

.as-notification-icon {
    font-size: 20px;
}

.as-notification-content {
    flex: 1;
}

.as-notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.as-notification-message {
    font-size: 0.8rem;
    opacity: 0.9;
}

.as-notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.as-notification-close:hover {
    opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes asFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes asSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes asSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes asHeartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.as-heart-beat {
    animation: asHeartBeat 0.5s ease;
}

.as-slide-out {
    animation: asSlideOut 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .as-content-row {
        flex-direction: column;
    }

    .as-main-column,
    .as-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .as-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .as-sidebar-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .as-main-container {
        padding: 15px;
    }

    .as-article-title {
        font-size: 24px;
    }

    .as-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .as-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .as-related-grid {
        grid-template-columns: 1fr;
    }

    .as-related-section {
        padding: 25px;
    }

    .as-sidebar-section {
        padding: 20px;
    }

    .as-guest-actions {
        flex-direction: column;
    }

    .as-slide-img {
        height: 300px;
    }

    .as-single-img-elem {
        height: 300px;
    }
    
    .as-comment-body,
    .as-comment-footer,
    .as-reply-form,
    .as-replies-thread {
        padding-left: 0;
        margin-left: 0;
    }

    .as-replies-thread {
        margin-left: 16px;
        padding-left: 12px;
    }

    .as-nested-replies {
        padding-left: 12px;
    }

    .as-footer-left {
        gap: 8px;
    }

    .as-footer-left button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .as-comment-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .as-show-more-replies {
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .as-article-title {
        font-size: 20px;
    }

    .as-related-section {
        padding: 20px;
    }

    .as-comments-wrapper {
        margin: 20px 0;
    }
    
    .as-footer-left {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .as-footer-left button {
        flex: 1;
        justify-content: center;
        padding: 8px 0;
    }

    .as-reply-footer .as-footer-left {
        width: 100%;
    }

    .as-reply-footer button {
        flex: 1;
        justify-content: center;
    }

    .as-comment-card,
    .as-reply-card {
        padding: 16px;
    }

    .as-comment-user-row,
    .as-reply-user-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .as-comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .as-reply-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .as-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .as-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ===== ADDITIONAL UTILITY CLASSES ===== */
.as-hidden {
    display: none !important;
}

.as-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.as-text-center {
    text-align: center;
}

.as-text-left {
    text-align: left;
}

.as-text-right {
    text-align: right;
}

.as-mt-1 { margin-top: 0.25rem; }
.as-mt-2 { margin-top: 0.5rem; }
.as-mt-3 { margin-top: 0.75rem; }
.as-mt-4 { margin-top: 1rem; }
.as-mt-5 { margin-top: 1.25rem; }

.as-mb-1 { margin-bottom: 0.25rem; }
.as-mb-2 { margin-bottom: 0.5rem; }
.as-mb-3 { margin-bottom: 0.75rem; }
.as-mb-4 { margin-bottom: 1rem; }
.as-mb-5 { margin-bottom: 1.25rem; }

.as-p-1 { padding: 0.25rem; }
.as-p-2 { padding: 0.5rem; }
.as-p-3 { padding: 0.75rem; }
.as-p-4 { padding: 1rem; }
.as-p-5 { padding: 1.25rem; }

/* ===== LOADING STATES ===== */
.as-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.as-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===== FOCUS STATES ===== */
.as-focus-visible:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* ===== DISABLED STATES ===== */
.as-disabled,
.as-disabled * {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
