 * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Raleway', sans-serif;
    background: #f8fafc;
    color: #2d3748;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    max-width: 100vw;
    flex: 1;
    display: flex;
    flex-direction: column;
}
#main_part {
    max-width: 1650px;
    margin: 0 auto;
    flex: 1;
}

/* Стилі для #container_preview */
#container_preview {
  width: 100vw;
  min-height: 70vh;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35)),
    var(--preview-bg);
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  color: #ffffff;
  position: relative;
  margin-left: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#container_preview .header-card {
  width: 92%;
  max-width: 1050px;
  text-align: left;

  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  border-radius: 18px;
  padding: 28px 28px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);

  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#container_preview .header-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
#block_for_back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
#block_for_back a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#block_for_back a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#back_img {
    width: 24px;
    filter: brightness(0);
}
#show_article_title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px 0;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}
#show_article_title::after { display: none; }
#category_text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1220;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 12px;
  border-radius: 999px;
  margin: 0 0 12px 0;
  text-shadow: none;
}

#meta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 14px;
  margin-top: 10px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}

.meta-item img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
#article_tagline {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

#author_info {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px;
}

.author_avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.65);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
#author_info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    transition: transform 0.3s ease;
}
#author_info img:hover {
    transform: scale(1.1);
}
.author_avatar.user { border-color: #41f256; }
.author_avatar.admin { border-color: #ecc94b; }
.author_avatar.publisher { border-color: #63b3ed; }

#author_info .author_details {
    text-align: left;
}
#author_info .author_name {
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}
#author_info .author_university {
    font-size: 14px;
    color: #e0e0e0;
}
#author_info a.profile_link {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #44cf46;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    margin-top: 8px;
    display: inline-block;
}
#author_info a.profile_link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
#share_article {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}
#share_article span {
    font-size: 14px;
    color: #ffffff;
}
#share_article a {
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s;
}
#share_article a:hover {
    transform: scale(1.2);
}

/* Стилі для контенту статті */
#content_article {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
#article_content_text {
    flex: 1;
    max-width: 1400px;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


#article_content_text .article_illustration img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.img_art{
    
    max-width: 70%;
    
}

.img_box {
    text-align: center;
    margin: 15px 0;
}
.img_box .article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#show_article_text {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 20px;
}
#show_article_text p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #2d3748;
    padding-top: 10px;
}
#show_article_text a {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #3a9dcf;
    text-decoration: none;
}
#show_article_text a:hover {
    color: #e53e3e;
    transition: color 0.3s;
}
#show_article_text b,
#show_article_text strong {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 16px;
}
#show_article_text i {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
}
ul {
    padding-left: 50px;
    list-style-type: disc;
    padding: 10px;
    border-radius: 4px;
}
ul ul {
    padding-left: 50px;
    list-style-type: circle;
    padding: 5px;
    border-radius: 4px;
}
ul li {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    padding-top: 5px;
    color: #2d3748;
}
ul li a {
    font-size: 16px;
}

/* Стилі для навігації */
#nav_art {
    width: 250px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4a90e2;
}
#content_overview_text {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #44cf46;
    margin-bottom: 10px;
    border-bottom: 1px solid #2d3748;
}
#navigation_list {
    list-style: none;
}
#navigation_list ul {
    padding-left: 15px;
}
#navigation_list li {
    position: relative;
    margin-bottom: 5px;
}
#navigation_list li a {
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    padding: 5px 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}
#navigation_list li a:hover {
    background: #e0e7ff;
    color: #4a90e2;
}
#navigation_list li.active a {
    font-weight: 700;
    color: #4a90e2;
    background: #e0e7ff;
}
#navigation_list li.nav_h3 a {
    font-size: 13px;
    padding-left: 20px;
}
#navigation_list li.nav_h4 a {
    font-size: 12px;
    padding-left: 35px;
}
#navigation_list li.nav_h3 a::before {
    content: '—';
    position: absolute;
    left: 5px;
    color: #4a90e2;
}
#navigation_list li.nav_h4 a::before {
    content: '◦';
    position: absolute;
    left: 20px;
    color: #4a90e2;
}

/* Стилі для кнопки "вгору" */
#to_top_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a90e2;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    z-index: 1000;
}
#to_top_btn:hover {
    background: #357abd;
}
#img_top {
    width: 24px;
    filter: invert(1);
}


/* Стилі для розгортаючих секцій */
.collapsible-section {
    margin-bottom: 15px;
}
.collapsible-header {
    padding: 15px 20px;
    background: #f9fbfd;
    border-radius: 10px;
    color: #1a202c;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding-left: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
}
.collapsible-header:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}
.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    width: 10px;
    height: 10px;
    border: 2px solid #1a202c;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}
.toggle-icon.rotated {
    transform: rotate(-135deg);
}
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-top: -1px;
}
.collapsible-content.open {
    max-height: 500px;
}

/* Стилі для лайків */
#likes_section {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(to right, #efefff, #e7effb);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#likes_header {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}
#likes_container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 25px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
#like_button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
#like_button:hover {
    transform: scale(1.1);
}
#like_button i {
    font-size: 32px;
    color: #4a90e2;
    transition: color 0.3s ease;
}
#like_button.liked i {
    color: #e53e3e;
}
#likes_list {
    display: flex;
    align-items: center;
    gap: 5px;
}
.like_user {
    position: relative;
}
.like_user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a0aec0;
    transition: transform 0.2s;
    cursor: pointer;
}
.like_user img.user { border-color: #41f256; }
.like_user img.admin { border-color: #ecc94b; }
.like_user img.publisher { border-color: #63b3ed; }
.like_user img:hover {
    transform: scale(1.1);
}
.like_user .tooltip {
    visibility: hidden;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    white-space: nowrap;
}
.like_user:hover .tooltip {
    visibility: visible;
}
#more_likes {
    margin-left: 5px;
    color: #3a9dcf;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}
#more_likes:hover {
    color: #2563eb;
    transform: scale(1.2);
}
#like_count {
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    color: #2d3748;
    font-style: italic;
    margin-top: 10px;
}

/* Стилі для коментарів */
#comments_section {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(to right, #f7f7ff, #eff7ff);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#comments_header {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}
#comment-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}
#comment-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#comment-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}
.add-comment {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}
.add-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.comment-error {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
    display: none;
}
#comments {
    width: 100%;
}
.comment {
    background: #e0e7ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.comment.reply-comment {
    border-left: 2px solid #4a90e2;
}
.comment.highlighted {
    background: #d1e7ff;
    animation: highlight 3s ease-out forwards;
}
@keyframes highlight {
    0% { background: #d1e7ff; box-shadow: 0 0 10px rgba(74, 144, 226, 0.5); }
    100% { background: #e0e7ff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
}
.comment-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-author {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}
.comment-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
    text-transform: uppercase;
}
.comment-status.user { background-color: #41f256; }
.comment-status.admin { background-color: #ecc94b; }
.comment-status.publisher { background-color: #63b3ed; }
.comment-date {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #6b7280;
}
.comment-text {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #1a202c;
    line-height: 1.5;
}
.comment-reply-to {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #6b7280;
    margin-bottom: 5px;
}
.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a0aec0;
    transition: transform 0.2s;
}
.comment-avatar.user { border-color: #41f256; }
.comment-avatar.admin { border-color: #ecc94b; }
.comment-avatar.publisher { border-color: #63b3ed; }
.comment-avatar:hover {
    transform: scale(1.1);
}
.comment-meta {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
}
.upvote-users {
    display: inline-flex;
    gap: 5px;
}
.upvote-users img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #a0aec0;
}
.upvote-users img.user { border-color: #41f256; }
.upvote-users img.admin { border-color: #ecc94b; }
.upvote-users img.publisher { border-color: #63b3ed; }
.upvote-more {
    color: #3a9dcf;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}
.upvote-more:hover {
    color: #2563eb;
    transform: scale(1.2);
}
.comment-actions {
    display: flex;
    gap: 10px;
}
.reply-btn,
.upvote-btn {
    display: flex;
    align-items: center;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #6b7280;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s;
}
.reply-btn i,
.upvote-btn i {
    margin-right: 8px;
    font-size: 16px;
}
.upvote-btn.upvoted i {
    color: #44cf46;
}
.reply-btn:hover,
.upvote-btn:hover {
    color: #4a90e2;
}
.reply-form {
    margin-top: 10px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
}
.reply-input {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    resize: vertical;
    margin-bottom: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.reply-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}
.add-reply,
.cancel-reply {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    margin-right: 10px;
}
.add-reply {
    color: #ffffff;
    background: linear-gradient(90deg, #4a90e2, #357abd);
}
.add-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.cancel-reply {
    color: #ffffff;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}
.cancel-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}


.subscription_image{
    text-align: center;
    
    
}

/* Стилі для модальних вікон */
#modal_likes {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
#modal_likes_content {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}
#modal_likes_header {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 15px;
}
#modal_likes_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #2d3748;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#modal_likes_close:hover {
    transform: scale(1.2);
}
#modal_likes_content .like_user {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#modal_likes_content .like_user img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#modal_likes_content .like_user img:hover {
    transform: scale(1.1);
}
#modal_likes_content .like_user span {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #2d3748;
}
#modal_likes_content .like_user .like_date {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin-left: 5px;
}
#modal_auth {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
#modal_content {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}
#modal_content p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 20px;
}
#modal_content a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background: #4a90e2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    transition: background 0.3s;
}
#modal_content a:hover {
    background: #357abd;
}
#modal_image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
#modal_image_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
    background: transparent;
}
#modal_image_content img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
#modal_image_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#modal_image_close:hover {
    transform: scale(1.2);
}
#modal_upvotes {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
#modal_upvotes_content {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}
#modal_upvotes_header {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 15px;
}
#modal_upvotes_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #2d3748;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#modal_upvotes_close:hover {
    transform: scale(1.2);
}
#modal_upvotes_content .upvote_user {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#modal_upvotes_content .upvote_user img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#modal_upvotes_content .upvote_user img:hover {
    transform: scale(1.1);
}
#modal_upvotes_content .upvote_user span {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #2d3748;
}
.heart-particle {
    position: absolute;
    font-size: 12px;
    pointer-events: none;
    animation: heartAnimation 1s ease-out forwards;
}

/* Анімації */
@keyframes heartAnimation {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(2); }
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивність */
@media (max-width: 900px) {
    .img_box img { max-width: 90%; font-size: 13px; }
    #content_article { flex-direction: column; }
    #nav_art { width: 100%; position: static; }
    #show_article_title { font-size: 36px; }
    #category_text { font-size: 20px; }
    #article_content_text { max-width: 100%; }
    #meta-info { gap: 10px; }
    .meta-item { font-size: 14px; }
    .meta-item img { width: 18px; height: 18px; }
}
@media (max-width: 800px) {
    #container_preview { padding: 40px 15px; min-height: 50vh; }
    #show_article_title { font-size: 32px; }
    #category_text { font-size: 18px; }
    #block_for_back a { width: 40px; height: 40px; }
    #back_img { width: 20px; }
    #meta-info { flex-direction: column; gap: 8px; }
    #terms_privacy { flex-direction: column; align-items: center; }
    #footer_list { flex-direction: column; align-items: center; }
    #show_article_text p,
    #show_article_text a,
    #show_article_text b,
    #show_article_text strong,
    #show_article_text i,
    #show_article_text ul li { font-size: 14px; }
    #show_article_text ul { padding-left: 15px; }
    #show_article_text ul ul { padding-left: 10px; }
    #show_article_text img { max-width: 90vw; }
    #article_tagline { font-size: 16px; }
    #share_article a { font-size: 18px; }
    #article_content_text img { max-width: 90%; margin: 15px auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
    #modal_image_content { max-width: 95vw; max-height: 95vh; padding: 10px; }
    #modal_image_content img { max-height: 85vh; }
    #modal_image_close { font-size: 20px; }
    #nav_art { width: 100%; position: static; }
    #navigation_list li.nav_h3 a { font-size: 12px; padding-left: 15px; }
    #navigation_list li.nav_h4 a { font-size: 11px; padding-left: 25px; }
    #likes_section { padding: 10px; }
    #likes_header { font-size: 16px; }
    #like_button { padding: 6px; }
    #like_button i { font-size: 28px; }
    #like_count { font-size: 12px; }
    .like_user img { width: 20px; height: 20px; }
    .like_user .tooltip { font-size: 10px; top: -35px; }
    #more_likes { font-size: 18px; }
    #modal_likes_content { padding: 15px; }
    #modal_likes_content .like_user img { width: 20px; height: 20px; }
    #modal_likes_content .like_user span { font-size: 12px; }
    #modal_likes_content .like_user .like_date { font-size: 10px; }
    #modal_content { padding: 15px; }
    #modal_content a { padding: 8px 15px; font-size: 14px; }
    #modal_likes_header { font-size: 16px; }
    #modal_likes_close { font-size: 18px; }
    #comments_section { padding: 10px; }
    #comments_header { font-size: 16px; }
    #comment-form { padding: 15px; }
    #comment-input { font-size: 14px; min-height: 100px; }
    .add-comment { font-size: 14px; padding: 10px 20px; }
    .comment { padding: 10px; }
    .comment-author { font-size: 14px; }
    .comment-text { font-size: 13px; }
    .comment-date { font-size: 11px; }
    .comment-avatar { width: 40px; height: 40px; }
    .upvote-users img { width: 20px; height: 20px; }
    .upvote-more { font-size: 16px; }
    .reply-input { font-size: 13px; min-height: 60px; }
    .add-reply, .cancel-reply { font-size: 13px; padding: 6px 12px; }
    .add-reply, .cancel-reply { font-size: 13px; padding: 6px 12px; }
    #modal_upvotes_content { padding: 15px; }
    #modal_upvotes_content .upvote_user img { width: 20px; height: 20px; }
    #modal_upvotes_content .upvote_user span { font-size: 12px; }
    #modal_upvotes_header { font-size: 16px; }
    #modal_upvotes_close { font-size: 18px; }
}


@media (max-width: 700px) {
    #article_content_text {
        width: 100vw;
        max-width: none;
        padding: 12px;
        margin: 0;
        border-radius: 0;
    }
    
    
    
    #article_content_text p,
    #article_content_text a,
    #article_content_text b,
    #article_content_text strong,
    #article_content_text i,
    #article_content_text ul li {
        font-size: 15px;
    }
    #article_content_text img {
        max-width: 90vw;
        margin: 10px auto;
    }
}
@media (max-width: 650px) {
    #author_info {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 6px;
        gap: 10px;
        width: 90%;
        margin: 15px auto;
    }
    #author_info .author_details{
        text-align: center;
        
    }
    
    #author_info img {
        width: 48px;
        height: 48px;
    }
    #author_info .author_name {
        font-size: 18px;
    }
    #author_info .author_university {
        font-size: 13px;
        line-height: 1.4;
    }
    #author_info a.profile_link {
        font-size: 14px;
        margin-top: 6px;
        padding: 4px 8px;
    }
}
@media (max-width: 600px) {
    .comment.reply-comment { border-left: 1px solid #4a90e2; }
}













/* Стилі для кнопки темного режиму */
    .dark-mode-toggle {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background: none;
        border: 2px solid #44cf46;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    }

    .dark-mode-toggle:hover {
        background-color: rgba(68, 207, 70, 0.2);
        transform: scale(1.1);
    }

    #mode-icon {
        font-size: 24px;
        transition: transform 0.3s;
    }




body.dark-mode {
    background: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .container {
    background: #1a202c;
}

body.dark-mode #main_part {
    background: #1a202c;
}

body.dark-mode #container_preview {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../../views/imgs/<?php echo strtolower($data['article_info']['category'] ?? 'default'); ?>preview.png');
}

body.dark-mode #container_preview .header-card {
    background: rgba(45, 55, 72, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode #block_for_back a {
    background: #2d3748;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #block_for_back a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


body.dark-mode #show_article_title {
    color: #e2e8f0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

body.dark-mode #show_article_title::after {
    background: #38a339;
}

body.dark-mode #category_text {
    color: #e2e8f0;
    background: rgba(45, 55, 72, 0.5);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}


body.dark-mode .meta-item {
    color: #a0aec0;
}

body.dark-mode .meta-item img {
    filter: brightness(0) invert(0.9);
}

body.dark-mode #article_tagline {
    color: #d1d5db;
}

body.dark-mode #author_info {
    background: rgba(45, 55, 72, 0.7);
}

body.dark-mode #author_info img {
    border-color: #e2e8f0;
}

body.dark-mode #author_info img.user {
    border-color: #38a339;
}

body.dark-mode #author_info img.admin {
    border-color: #ecc94b;
}

body.dark-mode #author_info img.publisher {
    border-color: #63b3ed;
}

body.dark-mode #author_info .author_name {
    color: #e2e8f0;
}

body.dark-mode #author_info .author_university {
    color: #a0aec0;
}

body.dark-mode #author_info a.profile_link {
    color: #38a339;
    background: rgba(45, 55, 72, 0.5);
}

body.dark-mode #author_info a.profile_link:hover {
    background: rgba(45, 55, 72, 0.7);
    color: #e2e8f0;
}


body.dark-mode #share_article span {
    color: #e2e8f0;
}

body.dark-mode #share_article a {
    color: #e2e8f0;
}

body.dark-mode #share_article a:hover {
    color: #63b3ed;
}

body.dark-mode #content_article {
    background: #1a202c;
}

body.dark-mode #article_content_text {
    background: #2d3748;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #article_content_text .article_illustration img {
    border-color: #718096;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .img_box .article-image {
    border-color: #718096;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode #show_article_text {
    color: #e2e8f0;
}

body.dark-mode #show_article_text p {
    color: #e2e8f0;
}

body.dark-mode #show_article_text a {
    color: #63b3ed;
}

body.dark-mode #show_article_text a:hover {
    color: #e53e3e;
}

body.dark-mode #show_article_text b,
body.dark-mode #show_article_text strong {
    color: #e2e8f0;
}

body.dark-mode #show_article_text i {
    color: #a0aec0;
}


body.dark-mode ul ul {
    background: #2d3748;
}

body.dark-mode ul li {
    color: #e2e8f0;
}

body.dark-mode ul li a {
    color: #63b3ed;
}

body.dark-mode #nav_art {
    background: #2d3748;
    border-left-color: #4a90e2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #content_overview_text {
    color: #38a339;
    border-bottom-color: #4a5568;
}

body.dark-mode #navigation_list {
    background: #2d3748;
}

body.dark-mode #navigation_list li a {
    color: #a0aec0;
}

body.dark-mode #navigation_list li a:hover {
    background: #4a5568;
    color: #63b3ed;
}

body.dark-mode #navigation_list li.active a {
    color: #63b3ed;
    background: #2d3748;
}

body.dark-mode #navigation_list li.nav_h3 a::before {
    color: #63b3ed;
}

body.dark-mode #navigation_list li.nav_h4 a::before {
    color: #63b3ed;
}

body.dark-mode #to_top_btn {
    background: #4a90e2;
}

body.dark-mode #to_top_btn:hover {
    background: #357abd;
}

body.dark-mode #img_top {
    filter: brightness(0) invert(1);
}

body.dark-mode .collapsible-section {
    background: #1a202c;
}

body.dark-mode .collapsible-header {
    background: #2d3748;
    color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .collapsible-header:hover {
    background: #4a5568;
}

body.dark-mode .toggle-icon {
    border-color: #e2e8f0;
}

body.dark-mode .collapsible-content {
    background: #2d3748;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #likes_section {
    background: linear-gradient(to right, #2d3748, #4a5568);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode #likes_header {
    color: #e2e8f0;
}


body.dark-mode #like_button {
    background: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode #like_button:hover {
    transform: scale(1.1);
}

body.dark-mode #like_button i {
    color: #63b3ed;
}

body.dark-mode #like_button.liked i {
    color: #e53e3e;
}

body.dark-mode #likes_list {
    background: #2d3748;
}

body.dark-mode .like_user img {
    border-color: #718096;
}

body.dark-mode .like_user img.user {
    border-color: #38a339;
}

body.dark-mode .like_user img.admin {
    border-color: #ecc94b;
}

body.dark-mode .like_user img.publisher {
    border-color: #63b3ed;
}

body.dark-mode .like_user .tooltip {
    background: #4a5568;
    color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #more_likes {
    color: #63b3ed;
}

body.dark-mode #more_likes:hover {
    color: #2563eb;
}

body.dark-mode #like_count {
    color: #a0aec0;
}

body.dark-mode #comments_section {
    background:#1a202c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode #comments_header {
    color: #e2e8f0;
}

body.dark-mode #comment-form {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode #comment-input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-mode #comment-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}

body.dark-mode .add-comment {
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

body.dark-mode .add-comment:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

body.dark-mode .comment-error {
    color: #ff6b6b;
    background: #2d3748;
}

body.dark-mode #comments {
    background: #1a202c;
}

body.dark-mode .comment {
    background: #2d3748;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .comment.highlighted {
    background: #357abd;
    animation: highlight 3s ease-out forwards;
}

body.dark-mode .comment.reply-comment {
    border-left-color: #4a90e2;
}

body.dark-mode .comment-content {
    background: #2d3748;
}

body.dark-mode .comment-info {
    background: #2d3748;
}

body.dark-mode .comment-author {
    color: #e2e8f0;
}

body.dark-mode .comment-status {
    color: #e2e8f0;
}

body.dark-mode .comment-status.user {
    background-color: #38a339;
}

body.dark-mode .comment-status.admin {
    background-color: #ecc94b;
}

body.dark-mode .comment-status.publisher {
    background-color: #63b3ed;
}

body.dark-mode .comment-date {
    color: #a0aec0;
}

body.dark-mode .comment-text {
    color: #e2e8f0;
}

body.dark-mode .comment-reply-to {
    color: #a0aec0;
}

body.dark-mode .comment-avatar {
    border-color: #718096;
}

body.dark-mode .comment-avatar.user {
    border-color: #38a339;
}

body.dark-mode .comment-avatar.admin {
    border-color: #ecc94b;
}

body.dark-mode .comment-avatar.publisher {
    border-color: #63b3ed;
}

body.dark-mode .comment-meta {
    color: #a0aec0;
    background: #2d3748;
}

body.dark-mode .upvote-users img {
    border-color: #718096;
}

body.dark-mode .upvote-users img.user {
    border-color: #38a339;
}

body.dark-mode .upvote-users img.admin {
    border-color: #ecc94b;
}

body.dark-mode .upvote-users img.publisher {
    border-color: #63b3ed;
}

body.dark-mode .upvote-more {
    color: #63b3ed;
}

body.dark-mode .upvote-more:hover {
    color: #2563eb;
}

body.dark-mode .comment-actions {
    background: #2d3748;
}

body.dark-mode .reply-btn,
body.dark-mode .upvote-btn {
    color: #a0aec0;
}

body.dark-mode .upvote-btn.upvoted i {
    color: #38a339;
}

body.dark-mode .reply-btn:hover,
body.dark-mode .upvote-btn:hover {
    color: #63b3ed;
}

body.dark-mode .reply-form {
    background: #4a5568;
}

body.dark-mode .reply-input {
    background: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-mode .reply-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}

body.dark-mode .add-reply {
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

body.dark-mode .add-reply:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

body.dark-mode .cancel-reply {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

body.dark-mode .cancel-reply:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

body.dark-mode #modal_likes {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode #modal_likes_content {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode #modal_likes_header {
    color: #e2e8f0;
}

body.dark-mode #modal_likes_close {
    color: #e2e8f0;
}

body.dark-mode #modal_likes_content .like_user {
    background: #2d3748;
}

body.dark-mode #modal_likes_content .like_user img {
    border-color: #718096;
}

body.dark-mode #modal_likes_content .like_user img.user {
    border-color: #38a339;
}

body.dark-mode #modal_likes_content .like_user img.admin {
    border-color: #ecc94b;
}

body.dark-mode #modal_likes_content .like_user img.publisher {
    border-color: #63b3ed;
}

body.dark-mode #modal_likes_content .like_user span {
    color: #e2e8f0;
}

body.dark-mode #modal_likes_content .like_user .like_date {
    color: #a0aec0;
}

body.dark-mode #modal_auth {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode #modal_content {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode #modal_content p {
    color: #e2e8f0;
}

body.dark-mode #modal_content a {
    background: #4a90e2;
}

body.dark-mode #modal_content a:hover {
    background: #357abd;
}

body.dark-mode #modal_image {
    background: rgba(0, 0, 0, 0.9);
}

body.dark-mode #modal_image_content {
    background: transparent;
}

body.dark-mode #modal_image_content img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode #modal_image_close {
    color: #e2e8f0;
}

body.dark-mode #modal_upvotes {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode #modal_upvotes_content {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode #modal_upvotes_header {
    color: #e2e8f0;
}

body.dark-mode #modal_upvotes_close {
    color: #e2e8f0;
}

body.dark-mode #modal_upvotes_content .upvote_user {
    background: #2d3748;
}

body.dark-mode #modal_upvotes_content .upvote_user img {
    border-color: #718096;
}

body.dark-mode #modal_upvotes_content .upvote_user img.user {
    border-color: #38a339;
}

body.dark-mode #modal_upvotes_content .upvote_user img.admin {
    border-color: #ecc94b;
}

body.dark-mode #modal_upvotes_content .upvote_user img.publisher {
    border-color: #63b3ed;
}

body.dark-mode #modal_upvotes_content .upvote_user span {
    color: #e2e8f0;
}

body.dark-mode .heart-particle {
    color: #e53e3e;
}

@media (max-width: 900px) {
    body.dark-mode .img_box img { max-width: 90%; font-size: 13px; }
    body.dark-mode #content_article { flex-direction: column; }
    body.dark-mode #nav_art { width: 100%; position: static; }
    body.dark-mode #show_article_title { font-size: 36px; }
    body.dark-mode #category_text { font-size: 20px; }
    body.dark-mode #article_content_text { max-width: 100%; }
    body.dark-mode #meta-info { gap: 10px; }
    body.dark-mode .meta-item { font-size: 14px; }
    body.dark-mode .meta-item img { width: 18px; height: 18px; }
}

@media (max-width: 800px) {
    body.dark-mode #container_preview { padding: 40px 15px; min-height: 50vh; }
    body.dark-mode #show_article_title { font-size: 32px; }
    body.dark-mode #category_text { font-size: 18px; }
    body.dark-mode #block_for_back a { width: 40px; height: 40px; }
    body.dark-mode #back_img { width: 20px; }
    body.dark-mode #meta-info { flex-direction: column; gap: 8px; }
    body.dark-mode #terms_privacy { flex-direction: column; align-items: center; }
    body.dark-mode #footer_list { flex-direction: column; align-items: center; }
    body.dark-mode #show_article_text p,
    body.dark-mode #show_article_text a,
    body.dark-mode #show_article_text b,
    body.dark-mode #show_article_text strong,
    body.dark-mode #show_article_text i,
    body.dark-mode #show_article_text ul li { font-size: 14px; }
    body.dark-mode #show_article_text ul { padding-left: 15px; }
    body.dark-mode #show_article_text ul ul { padding-left: 10px; }
    body.dark-mode #show_article_text img { max-width: 90vw; }
    body.dark-mode #article_tagline { font-size: 16px; }
    body.dark-mode #share_article a { font-size: 18px; }
    body.dark-mode #article_content_text img { max-width: 90%; margin: 15px auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
    body.dark-mode #modal_image_content { max-width: 95vw; max-height: 95vh; padding: 10px; }
    body.dark-mode #modal_image_content img { max-height: 85vh; }
    body.dark-mode #modal_image_close { font-size: 20px; }
    body.dark-mode #nav_art { width: 100%; position: static; }
    body.dark-mode #navigation_list li.nav_h3 a { font-size: 12px; padding-left: 15px; }
    body.dark-mode #navigation_list li.nav_h4 a { font-size: 11px; padding-left: 25px; }
    body.dark-mode #likes_section { padding: 10px; }
    body.dark-mode #likes_header { font-size: 16px; }
    body.dark-mode #like_button { padding: 6px; }
    body.dark-mode #like_button i { font-size: 28px; }
    body.dark-mode #like_count { font-size: 12px; }
    body.dark-mode .like_user img { width: 20px; height: 20px; }
    body.dark-mode .like_user .tooltip { font-size: 10px; top: -35px; }
    body.dark-mode #more_likes { font-size: 18px; }
    body.dark-mode #modal_likes_content { padding: 15px; }
    body.dark-mode #modal_likes_content .like_user img { width: 20px; height: 20px; }
    body.dark-mode #modal_likes_content .like_user span { font-size: 12px; }
    body.dark-mode #modal_likes_content .like_user .like_date { font-size: 10px; }
    body.dark-mode #modal_content { padding: 15px; }
    body.dark-mode #modal_content a { padding: 8px 15px; font-size: 14px; }
    body.dark-mode #modal_likes_header { font-size: 16px; }
    body.dark-mode #modal_likes_close { font-size: 18px; }
    body.dark-mode #comments_section { padding: 10px; }
    body.dark-mode #comments_header { font-size: 16px; }
    body.dark-mode #comment-form { padding: 15px; }
    body.dark-mode #comment-input { font-size: 14px; min-height: 100px; }
    body.dark-mode .add-comment { font-size: 14px; padding: 10px 20px; }
    body.dark-mode .comment { padding: 10px; }
    body.dark-mode .comment-author { font-size: 14px; }
    body.dark-mode .comment-text { font-size: 13px; }
    body.dark-mode .comment-date { font-size: 11px; }
    body.dark-mode .comment-avatar { width: 40px; height: 40px; }
    body.dark-mode .upvote-users img { width: 20px; height: 20px; }
    body.dark-mode .upvote-more { font-size: 16px; }
    body.dark-mode .reply-input { font-size: 13px; min-height: 60px; }
    body.dark-mode .add-reply, body.dark-mode .cancel-reply { font-size: 13px; padding: 6px 12px; }
    body.dark-mode #modal_upvotes_content { padding: 15px; }
    body.dark-mode #modal_upvotes_content .upvote_user img { width: 20px; height: 20px; }
    body.dark-mode #modal_upvotes_content .upvote_user span { font-size: 12px; }
    body.dark-mode #modal_upvotes_header { font-size: 16px; }
    body.dark-mode #modal_upvotes_close { font-size: 18px; }
}

@media (max-width: 700px) {
    body.dark-mode #article_content_text {
        width: 100vw;
        max-width: none;
        padding: 12px;
        margin: 0;
        border-radius: 0;
    }
    body.dark-mode #article_content_text p,
    body.dark-mode #article_content_text a,
    body.dark-mode #article_content_text b,
    body.dark-mode #article_content_text strong,
    body.dark-mode #article_content_text i,
    body.dark-mode #article_content_text ul li {
        font-size: 15px;
    }
    body.dark-mode #article_content_text img {
        max-width: 90vw;
        margin: 10px auto;
    }
}

@media (max-width: 650px) {
    body.dark-mode #author_info {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        background: rgba(45, 55, 72, 0.7);
        border-radius: 6px;
        gap: 10px;
        width: 90%;
        margin: 15px auto;
    }
    body.dark-mode #author_info .author_details {
        text-align: center;
    }
    body.dark-mode #author_info img {
        width: 48px;
        height: 48px;
    }
    body.dark-mode #author_info .author_name {
        font-size: 18px;
    }
    body.dark-mode #author_info .author_university {
        font-size: 13px;
        line-height: 1.4;
    }
    body.dark-mode #author_info a.profile_link {
        font-size: 14px;
        margin-top: 6px;
        padding: 4px 8px;
    }
}

@media (max-width: 600px) {
    body.dark-mode .comment.reply-comment { border-left: 1px solid #4a90e2; }
}





