body.is-dark a {
    color: #e4e4e4;
    transition: color 0.3s ease;
}
@media screen and (max-width: 1023px) {
    body.is-dark .navbar-menu {
      background-color: #1a1a1a;
    }
}
body.is-dark input::placeholder {
  color: #e4e4e4;
}
body .has-text-info{
  color: #ffe08a!important;
}
.navbar-item {
  font-weight: bold;
}
.navbar-item .icon {
  margin-right: 0.5rem;
}
.navbar-item .icon.has-text-info {
  color: hsl(204, 86%, 53%) !important;
}

.navbar-item .icon.has-text-primary {
  color: hsl(171, 100%, 41%) !important;
}

.navbar-item .icon.has-text-warning {
  color: hsl(48, 100%, 67%) !important;
}

.navbar-item .icon.has-text-danger {
  color: hsl(348, 100%, 61%) !important;
}

.navbar-item .icon.has-text-success {
  color: hsl(141, 71%, 48%) !important;
}
body.is-dark .footer .input {
background-color: #2a2a2a;
border-color: #2c2c2c;
color: #f5f5f5;
}
body.is-dark .button.is-primary {
background-color: #375a7f;
}
body.is-dark {
  background-color: #1a1a1a;
  color: #e4e4e4;
}
.author-header-box {
  background: linear-gradient(90deg, #e0e7ff 0%, #f8fafc 100%);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(50,115,220,0.04);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeIn 1s;
}
.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #375a7f;
  box-shadow: 0 2px 8px rgba(50,115,220,0.08);
}
.author-info {
  flex: 1;
}
.author-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #375a7f;
}
.author-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.author-desc {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.novel-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.novel-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 1.5rem 1.2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: fadeInUp 0.7s;
}
.novel-card:hover {
  box-shadow: 0 8px 32px rgba(50,115,220,0.08);
  transform: translateY(-2px) scale(1.01);
}
.novel-cover {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #f0f4fa;
}
.novel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.novel-title {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #2160c4;
  text-decoration: none;
  transition: color 0.2s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: 2.6em;
}
.novel-title:hover {
  color: #375a7f;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-height: none;
  overflow: visible;
}


.novel-meta {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.novel-desc {
  color: #444;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  max-height: 6.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  word-break: break-all;
  white-space: normal;
}
.novel-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}
@media (max-width: 768px) {
  .author-header-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0.7rem;
  }
  .novel-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  .novel-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0.5rem;
  }
  .novel-cover {
    width: 100%;
    height: 140px;
  }
  .default-novel-cover-author {
    width: 100%;
    height: 140px;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
body.is-dark .author-header-box {
  background: linear-gradient(90deg, #232946 0%, #1a1a1a 100%);
  color: #e4e4e4;
}
body.is-dark .novel-card {
  background: #1e1e1e;
  color: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.is-dark .novel-title {
  color: #7cb3ff;
}
body.is-dark .novel-title:hover {
  color: #5c9ce6;
}
body.is-dark .novel-meta {
  color: #b5b5b5;
}
body.is-dark .novel-desc {
  color: #d4d4d4;
}
body.is-dark .author-avatar {
  background: #232946;
  color: #7cb3ff;
}
body.is-dark .novel-cover {
  background: #232946;
}
body.is-dark .notification {
  background: #232946;
  color: #e4e4e4;
}
body.is-dark .footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
}
body.is-dark a {
  color: #7cb3ff;
}
body.is-dark a:hover {
  color: #5c9ce6;
}
.search-wrapper {
  position: relative;
  margin: 0 1rem;
}
.search-wrapper .control {
  width: 100%;
}
.search-wrapper .input {
  width: 100%;
  height: 2.5em;
  padding: 0.5em 1em 0.5em 2.5em;
  border: 1px solid #dbdbdb;
  border-radius: 50px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.search-wrapper .input:focus {
  border-color: #3273dc;
  background-color: white;
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.15);
}
.search-wrapper .icon {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  color: #7a7a7a;
  width: 1em;
  height: 1em;
  pointer-events: none;
  transition: color 0.3s ease;
}
.search-wrapper .input:focus + .icon {
  color: #3273dc;
}
body.is-dark .search-wrapper .input {
  background-color: #2a2a2a;
  border-color: #2a2a2a;
  color: #e4e4e4;
}
body.is-dark .search-wrapper .input:focus {
  border-color: #375a7f;
  background-color: #333;
  box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .search-wrapper .input:focus + .icon {
  color: #375a7f;
}
body.is-dark .navbar {
  background-color: transparent !important;
  border-bottom: 1px solid #2c2c2c;
}
body.is-dark .navbar-item, 
body.is-dark .navbar-link {
  color: #f5f5f5 !important;
}
body.is-dark .navbar-item:hover,
body.is-dark .navbar-link:hover {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}
body.is-dark .footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
}
body.is-dark .title,
body.is-dark .subtitle {
  color: #f5f5f5;
}
body.is-dark .author-info {
  color: #e4e4e4;
}
body.is-dark .author-desc {
  color: #d4d4d4;
}
.footer {
  background-color: #f5f5f5;
  padding: 3rem 1.5rem;
}
.footer a {
  color: #4a4a4a;
}
.footer a:hover {
  color: #3273dc;
}
a.navbar-item:focus{
      background-color: transparent!important;
    }

/* Active language highlighting for desktop navbar */
.navbar-dropdown .navbar-item.is-active {
  background-color: #f0f4fa !important;
  color: #2160c4 !important;
  font-weight: bold;
}

body.is-dark .navbar-dropdown .navbar-item.is-active {
  background-color: #1a1a1a !important;
  color: #5c9ce6 !important;
  font-weight: bold;
}

/* Language selector styles */
.language-selector {
  display: flex;
  align-items: center;
  padding: ;
  color: #4a4a4a;
  transition: all 0.3s ease;
}

.language-selector .icon {
  color: #3273dc;
  margin-right: 0.5rem;
  font-size: 1rem;
}

.language-selector:hover {
  background-color: #f5f5f5;
}

body.is-dark .language-selector {
  color: #e4e4e4;
}

body.is-dark .language-selector .icon {
  color: #5c9ce6;
}

body.is-dark .navbar-dropdown {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
}

body.is-dark .navbar-dropdown .navbar-item:hover {
  background-color: #2a2a2a;
}

/* Default Novel Cover for Author Page */
.default-novel-cover-author {
  width: 90px;
  height: 120px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: perspective(800px) rotateY(-3deg);
  box-shadow: 
    0 5px 15px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1);
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
}

.cover-background-author {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cover-gradient, linear-gradient(135deg, #1a252f 0%, #2c3e50 100%));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Remove old styles, now using CSS variable system */

.book-texture-author {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.book-spine-author {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.4) 0%, 
    rgba(0,0,0,0.2) 50%, 
    rgba(0,0,0,0.1) 100%);
  z-index: 3;
  border-radius: 1px 0 0 1px;
}

.book-pages-author {
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.8) 0%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(255,255,255,0.2) 100%);
  z-index: 3;
  border-radius: 0 1px 1px 0;
}

.cover-content-author {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.5rem;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-icon-author {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
  color: #ffffff;
}

.novel-title-on-cover-author {
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  word-wrap: break-word;
  max-width: 100%;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.is-dark .cover-background-author {
  background: 
    linear-gradient(135deg, #2c3e50 0%, #34495e 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(255,255,255,0.05) 1px,
      rgba(255,255,255,0.05) 2px
    );
  background-size: 200% 200%, 4px 4px;
}

body.is-dark .novel-title-on-cover-author {
  color: #ecf0f1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

body.is-dark .default-novel-cover-author {
  background: linear-gradient(145deg, #2c3e50, #34495e);
}

/* Author page cover decoration elements */
.author-cover-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.author-sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: authorSparkle 7s ease-in-out infinite;
}

.author-sparkle-1 {
  top: 16%;
  left: 16%;
  animation-delay: 0s;
}

.author-sparkle-2 {
  bottom: 24%;
  right: 20%;
  animation-delay: 3.5s;
}

.author-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: authorGlow 9s ease-in-out infinite;
}

@keyframes authorSparkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.4);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes authorGlow {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Dark mode author page cover decorations */
body.is-dark .author-sparkle {
  background: rgba(255, 255, 255, 0.6);
}

body.is-dark .author-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

/* Author page cover hover effects */
.default-novel-cover-author:hover .author-sparkle {
  animation-duration: 3.5s;
}

.default-novel-cover-author:hover .author-glow {
  animation-duration: 4.5s;
}

/* Mobile adaptations */
@media (max-width: 768px) {
  .author-sparkle {
    width: 2px;
    height: 2px;
  }
  
  .author-glow {
    width: 50%;
    height: 50%;
  }
}

@media (max-width: 480px) {
  .author-cover-decoration {
    display: none;
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}