/*
Theme Name: Animesuge Theme
Author: Phong峰
Description: A WordPress theme that replicates the layout and functionality of animesuge.io.
Version: 1.2
Tags: custom-theme, anime, responsive
Text Domain: animesuge-theme
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1c1c1c;
    color: #333;
}
* {
    text-decoration: none;
  }

.container {
    width: 70%;
    margin: 0 auto;
    padding: 10px;
}

.site-header,
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
}

.site-header .container,
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo img,
.logo img {
    width: auto;
  height: 5rem;
}

.site-navigation,
.primary-navigation {
    display: flex;
    gap: 20px;
}

.site-navigation a,
.primary-navigation .primary-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s;
}

.site-navigation a:hover,
.primary-navigation .primary-menu li a:hover {
    color: #ff0000;
}

.search-bar {
    text-align: center;
}

.search-bar input[type="search"] {
    /* width: 80%; */
    padding: 10px;
    font-size: 16px;
}

.search-bar input[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-bar input[type="submit"]:hover {
    background-color: #cc0000;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.header-buttons .lang-switch,
.header-buttons .sign-in-btn {
    color: #fff;
    text-decoration: none;
    padding: 5px 7px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.header-buttons .lang-switch {
    background-color: #444;
    font-size: 12px;
}

.header-buttons .lang-switch.active {
    background-color: #ff0000;
}

.header-buttons .sign-in-btn {
    border-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.header-buttons .sign-in-btn::before {
    content: '\1F464';
    /* Unicode for a user icon */
    margin-right: 5px;
}

.header-buttons .sign-in-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Responsive Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.menu-icon {
    width: 30px;
    height: 3px;
    background-color: #fff;
    display: block;
    margin: 6px 0;
}

@media (max-width: 768px) {
    .primary-navigation {
        display: none;
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation.active {
        display: flex;
    }
}

/* Navigation Link Underline Effect */
.primary-navigation .primary-menu li {
    display: inline-block;
    position: relative;
}

.primary-navigation .primary-menu li a {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.primary-navigation .primary-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #ff0000;
    transition: width 0.3s ease;
}

.primary-navigation .primary-menu li a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.anime-item {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
}

.anime-item h2 {
    margin: 0 0 10px;
}

.anime-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.anime-archive {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.anime-archive .entry-header {
    text-align: center;
}

.anime-archive .entry-thumbnail {
    margin-bottom: 10px;
}

.anime-archive .entry-content {
    text-align: justify;
}

.anime-archive .entry-footer {
    text-align: center;
    margin-top: 10px;
}

/* Form Styling */
/* .form-container,
form {
    /* max-width: 400px; */
    /* margin: 20px auto; */
    /* padding: 20px; */
    /* border: 1px solid #ddd;
    background-color: #fff; */
    /* border-radius: 8px; */
/* }  */


form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="file"],
form input[type="submit"],
form button[type="submit"] {
    width: 86%;
    padding: 11px;
    /* margin-bottom: 10px; */
    border: 1px solid #ddd;
    border-radius: 4px;
}

form input[type="submit"],
form button[type="submit"] {
    /* background-color: #464646; */
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
/* 
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background-color: #464646;
} */

/* Profile Page */
/* .profile-page,
.profile-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-page h2,
.profile-section h1,
.profile-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.profile-page ul,
.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-page ul li,
.profile-section ul li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background 0.3s;
}

.profile-page ul li:hover,
.profile-section ul li:hover {
    background: #f9f9f9;
}

.profile-page ul li a,
.profile-section ul li a {
    text-decoration: none;
    color: #0073aa;
    display: flex;
    align-items: center;
}

.profile-page ul li a img,
.profile-section ul li a img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.profile-page ul li a:hover,
.profile-section ul li a:hover {
    text-decoration: underline;
}

.profile-page a,
.profile-section a {
    display: inline-block;
    margin-top: 2rem;
    color: #0073aa;
}

.profile-page a:hover,
.profile-section a:hover {
    text-decoration: underline;
} */

/* Single Post Page */
.post-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-content h1 {
    margin-bottom: 1rem;
    color: #333333;
}

.post-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.post-content .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #777777;
    margin-top: 1.5rem;
    border-top: 1px solid #e1e1e1;
    padding-top: 1rem;
}

.post-content .post-meta span {
    display: inline-block;
}

.post-content .post-meta .post-author {
    font-weight: bold;
}

.post-content .post-meta .post-date {
    font-style: italic;
}

.post-content .post-meta .post-categories {
    display: flex;
    gap: 0.5rem;
}

.post-content .post-meta .post-categories a {
    color: #0073aa;
    text-decoration: none;
}

.post-content .post-meta .post-categories a:hover {
    text-decoration: underline;
}

.post-content .post-meta .post-comments {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-content .post-meta .post-comments a {
    color: #0073aa;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.post-content .post-meta .post-comments a:hover {
    text-decoration: underline;
}

.post-content .post-meta .post-comments .comment-icon {
    margin-right: 0.25rem;
    display: inline-block;
    font-size: 1rem;
}

.post-content .post-tags {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #777777;
}

.post-content .post-tags a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 0.5rem;
}

.post-content .post-tags a:hover {
    text-decoration: underline;
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    margin-bottom: 1.5rem;
    color: #333333;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
}

.comment-list .comment .comment-author {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-list .comment .comment-meta {
    font-size: 0.875rem;
    color: #777777;
    margin-bottom: 1rem;
}

.comment-list .comment .comment-content {
    line-height: 1.6;
}

.comment-list .comment .comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.875rem;
}

.comment-list .comment .comment-reply-link:hover {
    text-decoration: underline;
}

.comment-list .comment .children {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e1e1e1;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.comment-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.comment-form button[type="submit"] {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.comment-form button[type="submit"]:hover {
    background-color: #005177;
}

/* Footer */
.site-footer {
    background-color: #333333;
    color: #ffffff;
    padding: 1rem 0;
}

.site-footer .footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer .footer-widgets .widget {
    flex: 1;
    padding: 1rem;
}

.site-footer .footer-widgets .widget h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.site-footer .footer-widgets .widget ul {
    list-style: none;
    padding: 0;
}

.site-footer .footer-widgets .widget ul li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-widgets .widget ul li a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer .footer-widgets .widget ul li a:hover {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.watchlist-status-menu {
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.watchlist-status-menu li {
    margin: 5px 0;
}

.watchlist-status-menu li a {
    text-decoration: none;
    color: #0073aa;
}

.watchlist-status-menu li a:hover {
    text-decoration: underline;
}

/* ===== Fix giao diện khung comment ===== */
.comment-list,
.comment-form,
#comments {
  max-width: 100%;
  overflow-x: hidden; /* Không cho kéo ngang */
  overflow-y: auto;   /* Cho phép kéo dọc nếu dài */
  box-sizing: border-box;
}

/* Khung nhập nội dung comment */
.comment-form textarea {
  width: 100%;              /* Chiếm toàn bộ chiều ngang khung */
  max-width: 100%;          /* Không vượt quá container */
  resize: vertical;         /* Chỉ cho phép kéo dọc */
  overflow-x: hidden;       /* Không cho kéo ngang */
  overflow-y: auto;         /* Kéo dọc nếu quá dài */
  display: block;
  box-sizing: border-box;   /* Tránh tràn do padding */
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 15px;
  line-height: 1.5;
}

/* Container của form bình luận */
.comment-form {
  width: 100%;
  /* max-width: 600px;    */
  /* margin: 20px auto; */
  /* padding: 10px; */
  /* background: #fafafa; */
  border-radius: 8px;
  box-sizing: border-box;
}

/* Button gửi */
.comment-form button {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .2s;
}
.comment-form button:hover {
  background-color: #005a8c;
}

/* footer */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .footer-logo {
    height: 50px;
    width: auto;
  }
  
  .footer-site-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }
  
  .footer-text {
    margin: 0;
    color: #aaa;
  }
  
  .footer-description {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
  }
  
  .footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-social li {
    display: inline-block;
    margin-left: 10px;
  }
  
  .footer-social a {
    color: #ccc;
    text-decoration: none;
  }
  
  .footer-social a:hover {
    color: #fff;
  }
  