﻿.blog-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: fit-content;
}

.blog-comments:hover {
    background: rgba(2, 32, 121, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.4);
}

.comment-icon {
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comments-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 15px;
    text-align: center;
}


.comments-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comments-modal-overlay.show {
    display: flex;
    opacity: 1;
}

body.dark-mode .comments-modal-overlay {
    
}

.comments-modal {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(2, 32, 121, 0.3);
    border: 2px solid rgba(2, 32, 121, 0.2);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.comments-modal-overlay.show .comments-modal {
transform: scale(1) translateY(0);
animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .comments-modal {
background: rgba(26, 26, 46, 0.98);
backdrop-filter: blur(25px);
border-color: rgba(250, 255, 4, 0.3);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.comments-modal-header {
padding: 20px 25px;
border-bottom: 2px solid rgba(2, 32, 121, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(135deg, rgba(2, 32, 121, 0.05), rgba(0, 72, 179, 0.02));
}

body.dark-mode .comments-modal-header {
border-bottom-color: rgba(250, 255, 4, 0.2);
background: linear-gradient(135deg, rgba(250, 255, 4, 0.1), rgba(255, 204, 0, 0.05));
}

.comments-modal-title {
display: flex;
align-items: center;
gap: 12px;
margin: 0;
}

.comments-modal-title i {
font-size: 24px;
color: #022079;
}

.comments-modal-title h3 {
font-size: 20px;
font-weight: 700;
color: #022079;
margin: 0;
}

body.dark-mode .comments-modal-title i,
body.dark-mode .comments-modal-title h3 {
color: #faff04;
}

.close-comments {
background: rgba(0, 0, 0, 0.05);
border: none;
width: 35px;
height: 35px;
border-radius: 50%;
font-size: 18px;
color: #666;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}

.close-comments:hover {
background: rgba(2, 32, 121, 0.1);
color: #022079;
transform: rotate(90deg);
}

body.dark-mode .close-comments {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .close-comments:hover {
background: rgba(250, 255, 4, 0.2);
color: #faff04;
}


.comments-list-container {
flex: 1;
overflow-y: auto;
padding: 20px 25px;
}

.comments-list-container::-webkit-scrollbar {
width: 6px;
}

.comments-list-container::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 3px;
}

.comments-list-container::-webkit-scrollbar-thumb {
background: rgba(2, 32, 121, 0.3);
border-radius: 3px;
}

.comments-list-container::-webkit-scrollbar-thumb:hover {
background: rgba(2, 32, 121, 0.5);
}

body.dark-mode .comments-list-container::-webkit-scrollbar-thumb {
background: rgba(250, 255, 4, 0.3);
}

body.dark-mode .comments-list-container::-webkit-scrollbar-thumb:hover {
background: rgba(250, 255, 4, 0.5);
}

.comment-item {
position: relative;
background: rgba(2, 32, 121, 0.03);
padding: 15px 15px 45px 15px; 
border-radius: 12px;
margin-bottom: 20px;
transition: all 0.3s ease;
animation: fadeInUp 0.4s ease forwards;
}

.comment-item:hover {
background: rgba(2, 32, 121, 0.05);
transform: translateX(5px);
}

body.dark-mode .comment-item {
background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .comment-item:hover {
background: rgba(255, 255, 255, 0.08);
}

.comment-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}

.comment-author {
display: flex;
align-items: center;
gap: 8px;
}

.comment-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, #022079, #0048b3);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 14px;
flex-shrink: 0;
}

body.dark-mode .comment-avatar {
background: linear-gradient(135deg, #faff04, #ffcc00);
color: #022079;
}

.comment-author-name {
font-weight: 600;
font-size: 14px;
color: #022079;
}

body.dark-mode .comment-author-name {
color: #faff04;
}

.comment-date {
font-size: 12px;
color: #666;
white-space: nowrap;
}

body.dark-mode .comment-date {
color: rgba(255, 255, 255, 0.6);
}

.comment-text {
font-size: 14px;
line-height: 1.6;
color: #333;
margin: 0;
word-wrap: break-word;
}

body.dark-mode .comment-text {
color: rgba(255, 255, 255, 0.9);
}

/* ============================================
COMMENT ACTIONS (EDIT & DELETE)
============================================ */

.comment-actions-border {
position: absolute;
bottom: -15px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 12px;
z-index: 10;
}

.comment-action-circle {
width: 36px;
height: 36px;
border-radius: 50%;
background: white;
border: 2px solid rgba(2, 32, 121, 0.2);
color: #666;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
font-size: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-action-circle:hover {
transform: translateY(-3px) scale(1.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment-action-circle:active {
transform: translateY(-1px) scale(1.05);
}

.comment-action-circle.edit-comment-btn {
border-color: rgba(0, 123, 255, 0.3);
}

.comment-action-circle.edit-comment-btn:hover {
background: #007bff;
border-color: #007bff;
color: white;
}

.comment-action-circle.delete-comment-btn {
border-color: rgba(220, 53, 69, 0.3);
}

.comment-action-circle.delete-comment-btn:hover {
background: #dc3545;
border-color: #dc3545;
color: white;
}

body.dark-mode .comment-action-circle {
background: rgba(26, 26, 46, 0.95);
border-color: rgba(250, 255, 4, 0.3);
color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .comment-action-circle.edit-comment-btn {
border-color: rgba(77, 171, 247, 0.4);
}

body.dark-mode .comment-action-circle.edit-comment-btn:hover {
background: #4dabf7;
border-color: #4dabf7;
color: #022079;
}

body.dark-mode .comment-action-circle.delete-comment-btn {
border-color: rgba(255, 107, 107, 0.4);
}

body.dark-mode .comment-action-circle.delete-comment-btn:hover {
background: #ff6b6b;
border-color: #ff6b6b;
color: white;
}

/* ============================================
COMMENT EDIT FORM
============================================ */

.comment-edit-form {
margin-top: 12px;
animation: slideDown 0.3s ease;
}

@keyframes slideDown {
from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
}

to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
}
}

.comment-edit-textarea {
width: 100%;
min-height: 80px;
max-height: 200px;
padding: 12px;
border: 2px solid rgba(2, 32, 121, 0.2);
border-radius: 10px;
font-family: "Poppins", Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
resize: vertical;
transition: all 0.3s ease;
background: white;
color: #333;
}

.comment-edit-textarea:focus {
outline: none;
border-color: #022079;
box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
}

.comment-edit-textarea::placeholder {
color: #999;
}

body.dark-mode .comment-edit-textarea {
background: rgba(0, 0, 0, 0.3);
border-color: rgba(250, 255, 4, 0.3);
color: white;
}

body.dark-mode .comment-edit-textarea:focus {
border-color: #faff04;
box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

body.dark-mode .comment-edit-textarea::placeholder {
color: rgba(255, 255, 255, 0.5);
}

.comment-edit-actions {
display: flex;
gap: 8px;
margin-top: 10px;
justify-content: flex-end;
}

.comment-edit-save,
.comment-edit-cancel {
padding: 8px 16px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-weight: 600;
font-family: "Poppins", Arial, sans-serif;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 6px;
}

.comment-edit-save {
background: linear-gradient(135deg, #022079, #0048b3);
color: white;
}

.comment-edit-save:hover {
background: linear-gradient(135deg, #0048b3, #0066cc);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(2, 32, 121, 0.3);
}

.comment-edit-save:active {
transform: translateY(0);
}

.comment-edit-cancel {
background: rgba(0, 0, 0, 0.08);
color: #666;
}

.comment-edit-cancel:hover {
background: rgba(0, 0, 0, 0.12);
color: #333;
}

.comment-edit-cancel:active {
background: rgba(0, 0, 0, 0.15);
}

body.dark-mode .comment-edit-save {
background: linear-gradient(135deg, #faff04, #ffcc00);
color: #022079;
}

body.dark-mode .comment-edit-save:hover {
background: linear-gradient(135deg, #ffcc00, #faff04);
box-shadow: 0 4px 12px rgba(250, 255, 4, 0.4);
}

body.dark-mode .comment-edit-cancel {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .comment-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ============================================
NO COMMENTS MESSAGE
============================================ */

.no-comments {
text-align: center;
padding: 40px 20px;
color: #666;
}

.no-comments i {
    font-size: 48px;
    color: #022079;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-comments p {
    font-size: 15px;
    margin: 0;
}

body.dark-mode .no-comments i {
color: #faff04;
}

body.dark-mode .no-comments p {
color: rgba(255, 255, 255, 0.6);
}

/* ============================================
COMMENT INPUT SECTION
============================================ */

.comment-input-section {
padding: 20px 25px;
border-top: 2px solid rgba(2, 32, 121, 0.1);
background: linear-gradient(135deg, rgba(2, 32, 121, 0.02), rgba(0, 72, 179, 0.01));
}

body.dark-mode .comment-input-section {
border-top-color: rgba(250, 255, 4, 0.2);
background: linear-gradient(135deg, rgba(250, 255, 4, 0.05), rgba(255, 204, 0, 0.02));
}

.comment-input-wrapper {
display: flex;
gap: 12px;
align-items: flex-end;
}

.comment-textarea {
flex: 1;
min-height: 50px;
max-height: 120px;
padding: 12px 15px;
border: 2px solid rgba(2, 32, 121, 0.2);
border-radius: 12px;
font-size: 14px;
font-family: "Poppins", Arial, sans-serif;
resize: vertical;
transition: all 0.3s ease;
background: white;
line-height: 1.5;
}

.comment-textarea:focus {
    outline: none;
    border-color: #022079;
    box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
}

.comment-textarea::placeholder {
    color: #999;
}

body.dark-mode .comment-textarea {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(250, 255, 4, 0.3);
color: white;
}

body.dark-mode .comment-textarea:focus {
    border-color: #faff04;
    box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

body.dark-mode .comment-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-comment-btn {
padding: 12px 20px;
background: linear-gradient(135deg, #022079, #0048b3);
color: white;
border: none;
border-radius: 12px;
font-size: 14px;
font-weight: 600;
font-family: "Poppins", Arial, sans-serif;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
white-space: nowrap;
}

.send-comment-btn:hover {
    background: linear-gradient(135deg, #0048b3, #0066cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.3);
}

.send-comment-btn:active {
    transform: translateY(0);
}

.send-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-comment-btn i {
    font-size: 16px;
}

body.dark-mode .send-comment-btn {
background: linear-gradient(135deg, #faff04, #ffcc00);
color: #022079;
}

body.dark-mode .send-comment-btn:hover {
    background: linear-gradient(135deg, #ffcc00, #faff04);
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.4);
}

/* ============================================
ANIMATIONS
============================================ */

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(10px);
}

to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes bounceIn {
0% {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
}

50% {
    transform: scale(1.02) translateY(-5px);
}

100% {
    transform: scale(1) translateY(0);
    opacity: 1;
}
}

/* ============================================
RESPONSIVE DESIGN
============================================ */

@media (max-width: 768px) {
.comments-modal {
    max-width: 95%;
    max-height: 85vh;
}

.comments-modal-header {
    padding: 15px 20px;
}

.comments-modal-title h3 {
    font-size: 18px;
}

.comments-modal-title i {
    font-size: 20px;
}

.comments-list-container {
    padding: 15px 20px;
}

.comment-input-section {
    padding: 15px 20px;
}

.comment-item {
    padding: 12px 12px 40px 12px;
    margin-bottom: 18px;
}

.comment-action-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.comment-date {
    font-size: 11px;
}
}

.confirmation-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
z-index: 10002;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
opacity: 0;
transition: opacity 0.3s ease;
}

.confirmation-modal-overlay.show {
    display: flex;
    opacity: 1;
}

body.dark-mode .confirmation-modal-overlay {
background: rgba(0, 0, 0, 0.85);
}

.confirmation-modal {
background: white;
border-radius: 20px;
padding: 30px;
max-width: 420px;
width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
transform: scale(0.9) translateY(30px);
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
text-align: center;
}

.confirmation-modal-overlay.show .confirmation-modal {
transform: scale(1) translateY(0);
animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .confirmation-modal {
background: rgba(26, 26, 46, 0.98);
backdrop-filter: blur(25px);
border: 2px solid rgba(250, 255, 4, 0.3);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.confirmation-icon {
width: 70px;
height: 70px;
margin: 0 auto 20px;
background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.2));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
animation: pulse 2s infinite;
}

.confirmation-icon i {
    font-size: 36px;
    color: #dc3545;
}

body.dark-mode .confirmation-icon {
background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.3));
}

body.dark-mode .confirmation-icon i {
    color: #ff6b6b;
}

@keyframes pulse {
0%, 100% {
    transform: scale(1);
}

50% {
    transform: scale(1.05);
}
}

.confirmation-title {
font-size: 22px;
font-weight: 700;
color: #022079;
margin: 0 0 12px 0;
}

body.dark-mode .confirmation-title {
color: #faff04;
}

.confirmation-message {
font-size: 15px;
color: #666;
line-height: 1.6;
margin: 0 0 25px 0;
}

body.dark-mode .confirmation-message {
color: rgba(255, 255, 255, 0.8);
}

.confirmation-actions {
display: flex;
gap: 12px;
justify-content: center;
}

.confirmation-btn {
flex: 1;
padding: 12px 20px;
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
font-family: "Poppins", Arial, sans-serif;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s ease;
min-width: 120px;
}

.confirmation-cancel {
background: rgba(0, 0, 0, 0.08);
color: #666;
}

.confirmation-cancel:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
    transform: translateY(-2px);
}

.confirmation-confirm {
background: linear-gradient(135deg, #dc3545, #c82333);
color: white;
}

.confirmation-confirm:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.confirmation-btn:active {
transform: translateY(0);
}

body.dark-mode .confirmation-cancel {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .confirmation-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.dark-mode .confirmation-confirm {
background: linear-gradient(135deg, #ff6b6b, #fa5252);
color: white;
}

body.dark-mode .confirmation-confirm:hover {
    background: linear-gradient(135deg, #fa5252, #f03e3e);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}


@media (max-width: 500px) {
.comments-modal-title i {
    font-size: 18px;
}

.comments-modal-title h3 {
    font-size: 16px;
}

.comment-item {
    padding: 10px 10px 38px 10px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.comment-author-name {
    font-size: 13px;
}

.comment-text {
    font-size: 13px;
}

.comment-input-wrapper {
    flex-direction: column;
    align-items: stretch;
}

.send-comment-btn {
    width: 100%;
    justify-content: center;
}

.blog-comments {
    font-size: 11px;
    padding: 5px 10px;
}

.comment-icon {
    font-size: 12px;
}

.comments-count {
    font-size: 11px;
}

.comment-edit-actions {
    flex-wrap: wrap;
}

.comment-edit-save,
.comment-edit-cancel {
    flex: 1;
    min-width: 100px;
}

.comment-action-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.comment-actions-border {
    gap: 10px;
}

.confirmation-modal {
    padding: 25px 20px;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.confirmation-icon i {
    font-size: 30px;
}

.confirmation-title {
    font-size: 19px;
}

.confirmation-message {
    font-size: 14px;
}

.confirmation-actions {
    flex-direction: column;
}

.confirmation-btn {
    width: 100%;
}
}

@media (max-width: 380px) {
.comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.comment-action-circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.comment-actions-border {
    gap: 8px;
    bottom: -13px;
}
}
