/*
* File: /css/cases.css
*/
/* Light Theme Styles (Default) */
.comments-section {
    margin-top: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333;
}

.comments-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.comments-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #dc3e88;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-body {
    /* margin-bottom: 18px;
    padding: 15px;
    background: #F6F6F6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef; */
    transition: all 0.3s ease;
}

/* .comment-body:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

.comment-body button {
    display: none;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author img {
    display: none !important;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #dc3e88;
}

.comment-author .fn {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.reply {
    margin-top: 10px;
    display: none;
}

.reply a {
    display: inline-block;
    color: #dc3e88;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.reply a:hover {
    color: #c62973;
    text-decoration: underline;
}

#respond {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

#respond h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: none;
}

#commentform p {
    margin-bottom: 1rem;
}

#commentform label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.8);
}

#commentform input[type="submit"] {
    background-color: #000000;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

#commentform input[type="submit"]:hover {
    background-color: #1c1b1c;
}

.logged-in-as {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.logged-in-as a {
    color: #dc3e88;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

.comment-notes {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.required {
    color: #dc3e88;
}

/* Dark Theme Styles - Uses body.dark class to detect theme */
body.dark .comments-section {
    background-color: #1a1a1a;
    color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark .comments-section h3 {
    color: #e0e0e0;
}

body.dark .comments-section h3:after {
    background-color: #ff4f9e;
}

body.dark .comment-body {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark .comment-body:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark .comment-author .fn {
    color: #e0e0e0;
}

body.dark .comment-author img {
    border-color: #ff4f9e;
}

body.dark .comment-metadata {
    color: #adb5bd;
}

body.dark .comment-content p {
    color: #e0e0e0;
}

body.dark .reply a {
    color: #ff4f9e;
}

body.dark .reply a:hover {
    color: #ff73b3;
}

body.dark #respond {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark #respond h3 {
    color: #e0e0e0;
}

body.dark #commentform p,
body.dark #commentform label {
    color: #e0e0e0;
}

body.dark #commentform input[type="text"],
body.dark #commentform input[type="email"],
body.dark #commentform input[type="url"],
body.dark #commentform textarea {
    background-color: #3a3a3a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark #commentform input[type="text"]:focus,
body.dark #commentform input[type="email"]:focus,
body.dark #commentform input[type="url"]:focus,
body.dark #commentform textarea:focus {
    border-color: #ff4f9e;
    box-shadow: 0 0 0 0.2rem rgba(255, 79, 158, 0.25);
}

body.dark #commentform input[type="submit"] {
    background-color: #ff4f9e;
}

body.dark #commentform input[type="submit"]:hover {
    background-color: #ff73b3;
}

body.dark .logged-in-as {
    color: #adb5bd;
}

body.dark .logged-in-as a {
    color: #ff4f9e;
}

body.dark .comment-notes {
    color: #adb5bd;
}

body.dark .required {
    color: #ff4f9e;
}

body.dark .comment-limit-notice {
    background-color: #332424;
    color: #ffb0b0;
    border-left-color: #ff4f4f;
}

/* Comment Number Circle Styling */
/* Target the commentlist */
ol.commentlist {
    counter-reset: comment-counter;
    list-style: none;
    padding-left: 2rem;
    position: relative;
}

/* Reset default list styling */
ol.commentlist li {
    list-style: none;
    position: relative;
    padding-left: 3.5rem;
}

/* Hide the default markers */
ol.commentlist li::marker {
    content: none;
    display: none;
}

/* Create your custom number circles */
ol.commentlist>li:before {
    content: counter(comment-counter);
    counter-increment: comment-counter;
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc3e88;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(220, 62, 136, 0.3);
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Connector line between comments */
ol.commentlist>li:not(:last-child):after {
    content: '';
    position: absolute;
    left: -0.25rem;
    top: 4rem;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(220, 62, 136, 0.7), rgba(220, 62, 136, 0.2));
    z-index: 1;
}

/* Hover effect */
ol.commentlist>li:hover:before {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(220, 62, 136, 0.4);
}

/* Dark theme support */
body.dark ol.commentlist>li:before {
    background: #ff4f9e;
    box-shadow: 0 3px 8px rgba(255, 79, 158, 0.3);
}

body.dark ol.commentlist>li:hover:before {
    box-shadow: 0 5px 12px rgba(255, 79, 158, 0.4);
}

body.dark ol.commentlist>li:not(:last-child):after {
    background: linear-gradient(to bottom, rgba(255, 79, 158, 0.7), rgba(255, 79, 158, 0.2));
}

ol.commentlist li {
    list-style: none !important;
}

ol.commentlist li::marker {
    content: none !important;
    display: none !important;
}

.comment-body span.says {
    margin-left: 8px;
}

.comment-body .commentmetadata {
    display: none;
}
.comment-body .commentmetadata a {
    color: #000000;
    text-decoration: none;
    padding: 0;
    margin: 0;
}
.comment-body p {
    padding: 8px 4px;
    margin: 0;
}

.login-trigger {
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.login-trigger:hover {
    color: #0056b3 !important;
}

/* Make it look exactly like a link */
button.btn-link.login-trigger {
    display: inline;
    font-weight: normal;
    padding: 0;
    margin: 0;
    vertical-align: baseline;
}

/* Media queries for better responsive design */
@media (max-width: 768px) {
    ol.commentlist {
        padding-left: 0.5rem;
    }

    ol.commentlist li {
        padding-left: 2.5rem;
    }

    ol.commentlist>li:before {
        left: -0.5rem;
        top: 0.75rem;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1rem;
    }

    ol.commentlist>li:not(:last-child):after {
        left: 0.6rem;
        top: 3rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    section.comments-section {
        padding: 0.5rem;
    }

    ol.commentlist {
        padding-left: 0.25rem;
    }

    ol.commentlist li {
        padding-left: 2.25rem;
    }

    ol.commentlist>li:before {
        left: -0.25rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    ol.commentlist>li:not(:last-child):after {
        left: 0.75rem;
    }

    .comments-section h3 {
        font-size: 14px;
    }
}

#certificatedownload {
    background-color: #09701C;
}

li.certificate-btn #upgradeplan {
    font-size: 14px;
    margin-top: 10px !important;
}

#upgradeplan {
      background: #de3f8a !important;
}