@import url("global.css");

body,
.container-fluid {
    background-color: var(--bg-color) !important;
    color: var(--text-color);
    width: 100%;
    overflow-x: hidden;
    padding: 15px;
   
}

code {
    display: block;
    position: relative;
    color: var(--text-secondary) !important;
    font-family: "Fira Code", monospace !important;
    font-size: 14px;
    line-height: 1.5;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: pre-wrap;
}

code:hover {
    background: #2b2b3c !important;
}

code::after {
    content: "Click to copy";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 12px;
    color: #999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

code:hover::after {
    opacity: 1;
}

code.copied::after {
    content: "Copied!";
    color: #4caf50 !important;
    opacity: 1;
}

.blog-post,
.sidebar {
    background-color: var(--bg-color);
}

.blog-post img {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}
.blog-post h1{
    color: var(--text-color);
    font-size: 25px;
    margin-bottom: 10px;
}


.btn-custom {
    border: 1px solid #ccc;
    background-color: var(--info);
    color: var(--text-color);
    transition: all 0.3s;
}
.btn-custom:hover {
    background-color: var(--bg-color);
}

.video-container {
    width: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.blogdesc {
    color: var(--text-color) !important;
}

.list-group {
    background-color: var(--bg-color);
}

.text-muted2 p {
    color: var(--text-secondary) !important;
}

/* Comment Box */
.bcomments {
    width: 75%;
}
.comment-box {
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 12px;
    margin-top: 10px;
    padding: 10px;
    position: relative;
    margin-bottom: 5px;
}

/* Add arrow/thread for replies */
.comment-box.reply::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -15px;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--text-color);
    border-bottom: 2px solid var(--info);
    border-bottom-left-radius: 4px;
}

/* Indent replies */
.comment-box.reply {
    margin-left: 20px;
}

.comment-input-container {
    display: flex;
    align-items: center;
    width: 75%;
    gap: 8px;
    border-radius: 8px;
    padding: 5px;
    margin-top: 5px;
}
.comment-input-container textarea {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comment-input-container textarea::-webkit-scrollbar {
    display: none;
}

.combox {
    width: 100%;
    min-height: 40px;
    border: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 8px;
    font-size: 14px;
    resize: none;
    outline: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.comment-input-container i {
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}
.comname {
    font-size: 10px;
    color: var(--text-secondary);
}
.comtime {
    font-size: 10px;
    color: var(--text-secondary);
}
.comempty {
    font-size: 14px;
    color: var(--text-secondary);
}

.replies-container {
    margin-left: 5px;
    padding-left: 5px;
    position: relative;
    border-left: none;
}

.replies-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
}

.comment-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.comment-text {
    flex-grow: 1;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-actions i {
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.reply-btn,
.delete-btn,
.sender,
.close {
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}
.reply-btn:hover {
    transform: scale(1.1);
    color: var(--info);
}

.delete-btn:hover {
    transform: scale(1.1);
    color: var(--error);
}

.sender:hover {
    transform: scale(1.1);
    color: var(--success);
}
.close:hover {
    transform: scale(1.1);
    color: var(--error);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .combox {
        min-height: 35px;
    }

    .comment-input-container {
        width: 100%;
    }
    .bcomments {
        width: 100%;
    }
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-color);
    transition: color 0.3s ease-in-out;
    padding: 5px 10px;
    border-radius: 5px;
}

.like-button i {
    font-size: 22px;
    margin-right: 5px;
    transition: transform 0.2s ease-in-out;
}

.like-button i.bx-heart {
    color: var(--text-secondary);
}

.like-button i.bxs-heart {
    color: var(--error);
}

.like-button:hover {
    color: var(--info);
}

.like-button:hover i {
    transform: scale(1.1);
}

.livewire-comments h2 {
    font-size: 12px;
}

#imageModal .modal-content {
    background-color: var(--bg-color);
}
