/**
custom comments home page one
**/

/* Modern Comments System Styles */
.modern-comments-area {
    margin: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.modern-comments-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e59f2, #2563eb, #3b82f6, #60a5fa);
    border-radius: 24px 24px 0 0;
}

/* Comments Header */
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 30px 0;
    border-bottom: 2px solid rgba(14, 89, 242, 0.1);
    position: relative;
}

.comments-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0e59f2, #2563eb);
    border-radius: 1px;
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.comments-title::before {
    content: '💬';
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.comments-title span {
    background: linear-gradient(135deg, #0e59f2, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0e59f2, #2563eb);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(14, 89, 242, 0.3);
    position: relative;
    overflow: hidden;
}

.comments-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.comments-count:hover::before {
    left: 100%;
}

.count-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* Comments Container */
.comments-container {
    margin-bottom: 50px;
}

.modern-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-comment-list .children {
    list-style: none;
    padding-left: 80px;
    margin-top: 25px;
    position: relative;
}

.modern-comment-list .children::before {
    content: '';
    position: absolute;
    left: 30px;
    top: -10px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(180deg, #0e59f2, transparent);
    border-radius: 1px;
}

/* Individual Comment */
.modern-comment-item {
    margin-bottom: 35px;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-comment-body {
    display: flex;
    gap: 25px;
    background: #ffffff;
    border: 1px solid rgba(14, 89, 242, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-comment-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e59f2, #2563eb, #3b82f6);
    border-radius: 20px 20px 0 0;
}

.modern-comment-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 89, 242, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.modern-comment-body:hover {
    box-shadow: 0 12px 40px rgba(14, 89, 242, 0.15);
    border-color: rgba(14, 89, 242, 0.2);
    transform: translateY(-4px);
}

/* Comment Avatar */
.comment-avatar {
    flex-shrink: 0;
    position: relative;
}

.modern-comment-body:hover .comment-avatar::before {
    opacity: 0.2;
    transform: scale(1);
}

.comment-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.modern-comment-body:hover .comment-avatar img {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 35px rgba(14, 89, 242, 0.3);
    border-color: rgba(14, 89, 242, 0.2);
}

/* Comment Content */
.comment-content {
    flex: 1;
    min-width: 0;
}

/* Comment Meta */
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-name {
    font-weight: 700;
    color: #1a202c;
    font-style: normal;
    font-size: 18px;
    position: relative;
}

.author-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0e59f2, #2563eb);
    transition: width 0.3s ease;
}

.author-name:hover::after {
    width: 100%;
}

.author-name a {
    color: #0e59f2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-name a:hover {
    color: #2563eb;
    text-shadow: 0 0 20px rgba(14, 89, 242, 0.3);
}

.author-website {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.author-website:hover {
    background: linear-gradient(135deg, #0e59f2, #2563eb);
    color: white;
    border-color: #0e59f2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 89, 242, 0.3);
}

.website-icon {
    margin-left: 6px;
    font-size: 11px;
}

.comment-meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(14, 89, 242, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.comment-date:hover {
    background: rgba(14, 89, 242, 0.1);
    color: #0e59f2;
}

.date-icon {
    font-size: 13px;
}

.comment-awaiting-moderation {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.moderation-icon {
    font-size: 11px;
}

/* Comment Text */
.comment-text {
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
    font-size: 15px;
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 15px;
    border: 1px solid rgba(14, 89, 242, 0.08);
}

.comment-text p {
    margin: 0 0 15px 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 2px solid rgba(14, 89, 242, 0.08);
}

.reply-link a,
.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reply-link a::before,
.edit-link a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.reply-link a:hover::before,
.edit-link a:hover::before {
    left: 100%;
}

.reply-link a:hover,
.edit-link a:hover {
    background: linear-gradient(135deg, #0e59f2, #2563eb);
    color: white;
    border-color: #0e59f2;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 89, 242, 0.4);
}

.reply-icon,
.edit-icon {
    font-size: 13px;
}

/* Comment Navigation */
.modern-comment-navigation {
    margin: 50px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid rgba(14, 89, 242, 0.1);
    border-radius: 15px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    position: relative;
    overflow: hidden;
}

.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 89, 242, 0.1), transparent);
    transition: left 0.6s;
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    left: 100%;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: linear-gradient(135deg, #0e59f2, #2563eb);
    color: white;
    border-color: #0e59f2;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(14, 89, 242, 0.4);
}

.nav-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* Comments Closed Notice */
.comments-closed-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.comments-closed-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.notice-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.no-comments {
    margin: 0;
    color: #92400e;
    font-weight: 600;
    font-size: 16px;
}

/* No Comments Section */
.no-comments-section {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.no-comments-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 89, 242, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-comments-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    position: relative;
}

.no-comments-text {
    color: #64748b;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

/* Modern Comment Form */
.modern-comment-form-container {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid rgba(14, 89, 242, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.modern-comment-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e59f2, #2563eb, #3b82f6);
    border-radius: 20px 20px 0 0;
}

.modern-comment-form {
    margin: 0;
    position: relative;
}

.modern-comment-form h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 30px 0;
    position: relative;
}

.form-title-icon {
    font-size: 20px;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Comment Form Fields */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 25px;
    position: relative;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.form-label {
    display: block;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
    font-size: 15px;
    position: relative;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.modern-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(14, 89, 242, 0.1);
    border-radius: 15px;
    font-size: 15px;
    color: #1a202c;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus,
.modern-textarea:focus {
    outline: none;
    border-color: #0e59f2;
    box-shadow: 0 0 0 4px rgba(14, 89, 242, 0.1);
    transform: translateY(-2px);
}

.modern-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Comment Notes */
.comment-notes {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(14, 89, 242, 0.05), rgba(37, 99, 235, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(14, 89, 242, 0.1);
}

.comment-notes-text {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Submit Button */
.modern-submit-btn {
    background: linear-gradient(135deg, #0e59f2, #2563eb);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(14, 89, 242, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.modern-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.modern-submit-btn:hover::before {
    left: 100%;
}

.modern-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(14, 89, 242, 0.5);
}

.modern-submit-btn:active {
    transform: translateY(-2px);
}

/* Cancel Reply Link */
#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cancel-comment-reply-link:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-comments-area {
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 0;
    }
    
    .comments-count {
        align-self: flex-start;
    }
    
    .modern-comment-body {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .comment-avatar {
        align-self: flex-start;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .comment-meta-right {
        align-self: flex-start;
    }
    
    .modern-comment-list .children {
        padding-left: 30px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
    }
    
    .modern-comment-form-container {
        padding: 30px 20px;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        margin-bottom: 20px;
    }
    
    .no-comments-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .modern-comment-body {
        padding: 20px;
    }
    
    .comment-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .comments-title {
        font-size: 22px;
    }
    
    .modern-comment-form-container {
        padding: 25px 15px;
    }
    
    .modern-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }
    
    .comment-text {
        padding: 15px;
        font-size: 14px;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Comment Success Message */
.comment-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.comment-success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    border-radius: 16px 16px 0 0;
}

.comment-success-message.show {
    transform: translateX(0);
    opacity: 1;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    position: relative;
}

.success-icon {
    font-size: 24px;
    animation: bounce 0.6s ease-out;
    flex-shrink: 0;
}

.success-text {
    flex: 1;
    color: white;
}

.success-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.success-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.success-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.success-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Success message animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive design for success message */
@media (max-width: 768px) {
    .comment-success-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .comment-success-message.show {
        transform: translateY(0);
    }
    
    .success-content {
        padding: 16px;
        gap: 12px;
    }
    
    .success-icon {
        font-size: 20px;
    }
    
    .success-text h4 {
        font-size: 15px;
    }
    
    .success-text p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .comment-success-message {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .success-content {
        padding: 14px;
        gap: 10px;
    }
    
    .success-icon {
        font-size: 18px;
    }
    
    .success-text h4 {
        font-size: 14px;
    }
    
    .success-text p {
        font-size: 11px;
    }
    
    .success-close-btn {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}
/*end Modern Comments System Styles */