/* --- PIZZAZZ & ANIMATIONS (Identical to your template) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-container { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

.article-page-wrapper {
    position: relative;
    background-color: #050505;
    min-height: 100vh;
    margin-top: 0rem;
    overflow-x: hidden;
}

/* Ambient Glows */
.article-page-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 600px;
    background: radial-gradient(circle at 50% 0%, rgba(207, 0, 0, 0.15), transparent 70%);
    z-index: 0; pointer-events: none;
}

/* Parallax Hero */
.article-hero {
    height: 60vh;
    min-height: 450px;
    position: relative;
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    z-index: 1;
}
.article-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #050505 100%);
}

.article-header-content {
    position: relative; z-index: 2;
    width: 90%; max-width: 900px; margin: 0 auto;
    padding-bottom: 6rem;
    animation: fadeInUp 1s ease-out;
}

.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 600;
    background: rgba(0,0,0,0.5); padding: 0.5rem 1rem; border-radius: 50px;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.back-link:hover { color: #fff; background: rgba(207, 0, 0, 0.8); border-color: #cf0000; }

.article-meta {
    display: flex; align-items: center; gap: 1rem;
    color: #cf0000; font-weight: 800; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1.5px; margin-bottom: 1rem;
}

.article-title {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1;
    color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    margin: 0;
}

/* Glass Content Container */
.article-content-wrapper {
    position: relative; z-index: 5;
    margin-top: -4rem; /* Overlap hero */
    margin-bottom: 4rem;
}

.article-glass-card {
    width: 90%; max-width: 850px; margin: 0 auto;
    background: rgba(20, 20, 20, 0.85); /* Darker glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Typography */
.article-body { font-size: 1.15rem; line-height: 1.9; color: #d1d1d1; }
.article-body p { margin-bottom: 1.8rem; }

/* TinyMCE generated content adjustments */
.article-body h2, .article-body h3, .article-body h4 {
    color: #fff; margin: 3rem 0 1.5rem 0; font-weight: 700;
}
.article-body h3 {
     border-left: 4px solid #cf0000; padding-left: 1rem;
}
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { margin-bottom: 2rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; color: #ccc; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

/* Blockquote Styling */
.article-body blockquote {
    margin: 2.5rem 0; padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid #3b82f6;
    font-style: italic; font-size: 1.3rem; color: #fff;
}

/* Author Section */
.author-divider {
    height: 1px; background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 3rem 0;
}

.author-box {
    display: flex; align-items: center; gap: 1.5rem;
}
.author-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    background-color: #222; border: 2px solid #333;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #555;
}
.author-info h4 { margin: 0 0 0.3rem 0; font-size: 1.2rem; color: #fff; }
.author-info span { color: #cf0000; font-size: 0.85rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* =============================
   REACTIONS & SHARE SECTION
   ============================= */
.engagement-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.engagement-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(207, 0, 0, 0.1);
    border: 2px solid rgba(207, 0, 0, 0.5);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-button:hover {
    background: rgba(207, 0, 0, 0.3);
    border-color: #cf0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(207, 0, 0, 0.3);
}

.reaction-button.active {
    background: #cf0000;
    border-color: #cf0000;
    box-shadow: 0 5px 20px rgba(207, 0, 0, 0.5);
}

.reaction-button .fire-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.reaction-button:hover .fire-icon,
.reaction-button.active .fire-icon {
    transform: scale(1.2);
}

.reaction-button .count {
    color: #ffd700;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn.copy-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

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

.share-btn.facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
}

/* =============================
   COMMENTS SECTION
   ============================= */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comments-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.comments-count {
    background: rgba(207, 0, 0, 0.2);
    color: #cf0000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Comment Form */
.comment-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.comment-form-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(207, 0, 0, 0.5);
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #cf0000;
    box-shadow: 0 0 0 3px rgba(207, 0, 0, 0.1);
}

.comment-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.comment-char-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.btn-submit-comment {
    padding: 0.75rem 2rem;
    background: #cf0000;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(207, 0, 0, 0.4);
}

.btn-submit-comment:disabled {
    background: rgba(207, 0, 0, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Login Prompt */
.login-prompt {
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
}

.login-prompt a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

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

.comment-item {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
}

/* No Comments Message */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-comments-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(207, 0, 0, 0.5);
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #22c55e;
}

.toast.error {
    border-color: #cf0000;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .article-title { font-size: 2.2rem; }
    .article-hero { height: 50vh; background-attachment: scroll; }
    .article-glass-card { padding: 2rem; width: 95%; }
    .engagement-buttons { flex-direction: column; align-items: stretch; }
    .share-buttons { justify-content: center; }
    .comment-form-actions { flex-direction: column; gap: 1rem; align-items: stretch; }
    .btn-submit-comment { width: 100%; }
    .comment-item { flex-direction: column; gap: 0.75rem; }
}

/* Guest Name Input */
.guest-name-input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
}

.guest-name-input:focus {
    outline: none;
    border-color: #cf0000;
    box-shadow: 0 0 0 3px rgba(207, 0, 0, 0.1);
}

.guest-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Comment Textarea Wrapper */
.comment-textarea-wrapper {
    position: relative;
}

/* Emoji Picker Styles - positioned relative to textarea wrapper */
.emoji-picker-battle {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-width: 340px;
    min-width: 280px;
}

.emoji-picker-battle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #1a1a1f;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transform: rotate(45deg);
}

.emoji-picker-battle.hidden,
.emoji-picker-battle[style*="display: none"] {
    display: none !important;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    font-size: 1.4rem;
    line-height: 1;
}

.emoji-grid span {
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
}

.emoji-grid span:hover {
    background: rgba(255,255,255,0.15);
}

.emoji-toggle-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}

.emoji-toggle-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
}

/* Comment Actions Left */
.comment-actions-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Guest Author */
.guest-author {
    color: #888;
    font-style: italic;
}

/* Comment Delete Button */
.comment-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.comment-delete-btn:hover {
    opacity: 1;
}

/* Admin Comments Page Styles */
.admin-comments-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.admin-tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab-btn:hover,
.admin-tab-btn.active {
    background: #cf0000;
    border-color: #cf0000;
}

.comment-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.comment-type-badge.news {
    background: #3b82f6;
    color: #fff;
}

.comment-type-badge.battle {
    background: #cf0000;
    color: #fff;
}

.comment-type-badge.beatbox {
    background: #8b5cf6;
    color: #fff;
}
