/* Merged Modern Comment Styles - Combined from comment-area.css and modern-comment.css */

/* ===== MAIN COMMENT CONTAINERS ===== */

/* Modern Comment Section Wrapper */
.modern-comment-section {
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Legacy Comment Area (for backward compatibility) */
.comment-area-modern {
    max-width: 980px;
    margin: 20px auto;
    background: var(--text-white); /* Changed from white */
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Kept as is, no direct variable */
    overflow: hidden;
    transition: all var(--transition-medium); /* Changed from 0.3s ease */
    border: 2px solid var(--btn-primary); /* Changed from #560085 */
}

.comment-area-modern:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); /* Kept as is, no direct variable */
}

/* ===== FORM CONTAINERS ===== */

.comment-form-container {
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.comment-form-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* ===== PROFILE PICTURE COLUMN ===== */

.profile-pic-column {
    flex: 0 0 20%;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px;
}


.profile-pic-container img{
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

/* ===== COMMENT AREA COLUMN ===== */

.comment-area-column {
    flex: 0 0 80%;
    min-width: 0;
}

.comment-area-modern-wrapper {
    background: rgba(0, 0, 0, 0.1); /* Kept as is, no direct variable */
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* ===== HEADERS ===== */

.comment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Kept as is, no direct variable */
    color: var(--text-white); /* Changed from white */
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
}

.comment-header-modern {
    padding: 1rem 1.5rem;
    color: var(--text-white); /* Changed from white */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== FORM STYLES ===== */

.comment-form-modern {
    padding: 25px;
}

.comment-form-modern .form-group {
    margin-bottom: 20px;
}

.comment-form-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333; /* Kept as is, no direct variable */
}

.comment-form-modern .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9; /* Kept as is, no direct variable */
    border-radius: 10px;
    font-size: 16px;
    transition: all var(--transition-medium); /* Changed from 0.3s ease */
    background: #fafafa; /* Kept as is, no direct variable */
}

.comment-form-modern .form-control:focus {
    outline: none;
    border-color: #667eea; /* Kept as is, no direct variable */
    background: var(--text-white); /* Changed from white */
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); /* Kept as is, no direct variable */
}

.comment-form-modern .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comment-form-modern .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.comment-form-modern ::after{
    content: '';
    position: absolute;
    border: 7px solid transparent;
    top: 21px;
}

/* ===== LOGIN PROMPT ===== */

.login-prompt-modern {
    display: flex;
    justify-content: center;
    align-items: baseline;
    max-width: 700px;
    height: 50px;
    text-align: center;
    margin: 2rem auto;
    border: 2px solid var(--primary-purple-light);
    border-radius: 15px;
    color: var(--primary-purple-light); /* Changed from #560085 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Kept as is, no direct variable */
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.login-prompt-modern i {
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: var(--opacity-dark); /* Changed from 0.8 */
}
.login-prompt-modern p {
    text-align: center;
}

.login-link {
    color: var(--text-white); /* Changed from #fff */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--text-white); /* Changed from #fff */
    transition: all var(--transition-medium); /* Changed from 0.3s ease */
}

.login-link:hover {
    color: #f0f0f0; /* Kept as is, no direct variable */
    border-bottom-color: #f0f0f0; /* Kept as is, no direct variable */
}

/* ===== CKEditor Modern Styling ===== */

/* CKEditor container styling */
.comment-form-modern .cke {
    border: 2px solid var(--btn-primary) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.comment-form-modern .cke_bottom {
    background: #6e7882 !important;
    border-top: 1px solid #e1e5e9 !important;
}


.comment-form-container .comment-form-modern .cke {
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.comment-form-container .comment-form-modern .cke_top {
    background: linear-gradient(135deg, rgb(184 232 255), #7376ff) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important; 
}

.cke_bottom .cke_reset_all{
    background: linear-gradient(135deg, rgb(184 232 255), #7376ff) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important; 
}

.comment-form-container .comment-form-modern .cke_bottom {
    background: linear-gradient(135deg, rgb(184 232 255), #7376ff) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}


.cke_top {
    background: linear-gradient(135deg, rgb(184 232 255), #7376ff) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important; 
}

.cke_reset_all, .cke_reset_all *, .cke_reset_all a, .cke_reset_all textarea{
    color: var(--bg-black) !important;
}

.cke_wysiwyg_frame, .cke_wysiwyg_div,.cke_inner ,.cke_wysiwyg_frame, .cke_wysiwyg_div .cke_reset{
    background-color: var(--bg-black) !important;
    border: 2px solid var(--btn-primary);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Combined responsive breakpoints */

/* Tablet and smaller screens */
@media (max-width: 850px) {
    .comment-area-modern {
        margin: 15px;
        border-radius: 10px;
    }
    
    .comment-header {
        padding: 15px;
        font-size: 16px;
    }
    
    .comment-form-modern {
        padding: 20px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .comment-form-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-pic-column {
        flex: 0 0 auto;
        max-width: 100px;
    }
    
    .comment-area-column {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .comment-form-container {
        padding: 1.5rem;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    .comment-area-modern {
        margin: 10px;
        border-radius: 8px;
    }
    
    .comment-header {
        padding: 12px;
        font-size: 14px;
    }
    
    .comment-form-modern {
        padding: 15px;
    }
    
    .comment-form-modern .btn-submit {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .comment-form-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .profile-pic-column {
        max-width: 80px;
    }
    
    .profile-pic-modern {
        width: 60px;
        height: 60px;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-submit-modern, .btn-cancel-modern {
        width: 100%;
        justify-content: center;
    }
}
