/*
Theme Name: LightNovel Trial Child
Theme URI: 
Author: Site Admin
Author URI: 
Description: child theme for lightnovel - TRIAL VERSION WITH MODAL
Template: lightnovel
Version: 1.0.1-trial
Tags: black, yellow, blue, purple, light, two-columns, right-sidebar, custom-header, custom-menu, featured-images
Text Domain: lightnovel-child
*/

/* Contact Form 7 Styles */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="password"],
.wpcf7-form input[type="search"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    color: #1f252b;
    width: 100%;
    padding: 12px 16px;
    border-radius: 0;
    border: 1px solid #dcdcdc;
}

.wpcf7-form p {
    margin: 0 0 28px;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
    outline: 1px solid #215eba;
    outline-offset: 0;
}

div.wpcf7-mail-sent-ok {
    border: 0;
    background: #215eba;
    color: #fff;
    padding: 18px;
}

div.wpcf7-acceptance-missing,
div.wpcf7-validation-errors {
    border: 0;
    background: #f9443b;
    color: #fff;
    padding: 18px;
}

span.wpcf7-not-valid-tip {
    color: #f9443b;
}

/* Button Styles */
.wpcf7-form .button {
    background-color: #215eba;
    border: 0;
    color: #fff;
    border-radius: 1px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: auto;
    padding: 10px 20px;
    letter-spacing: 2px;
    font-size: 14px;
}

.wpcf7-form .button:hover {
    cursor: pointer;
    box-shadow: 0px 7px 16px -7px rgba(0, 0, 0, 0.4);
    border: 0;
}

.wpcf7-form select {
  color: #1f252b;
  width: 100%;
  padding: 12px 16px;
  border-radius: 0;
  border: 1px solid #dcdcdc;
  background-color: #fff;
}

.wpcf7-form select:focus {
  outline: 1px solid #215eba;
  outline-offset: 0;
}

.wpcf7-form select option {
  color: #1f252b;
  background-color: #fff;
}

.wpcf7-form select:hover {
  cursor: pointer;
  box-shadow: 0px 7px 16px -7px rgba(0, 0, 0, 0.4);
  border: 1px solid #215eba;
}

/* Logo size*/
.logos img{
    max-height: 45px; /* changed */
    width:auto;
}

.logos {
    margin: 0;
    min-height: 1px;
    width: auto;
    display: block;
    padding-bottom: 5px; /* changed */
}
 
#main-menu ul li a {
 font-size: 16px;
}

/* Changed the color for the star at at owl-carousell.css */
body .slide-content .rating .site-vote {
    color: #ec5811;
} 

/* Changed the color hover title at owl-carousell.css to match site */
body .slide-content .title a:hover {
  color: #215eba;
} 

/* Changes padding in rating in series */
.bigcontent .rt .rating {
  padding: 5px 10px;
}

/* Chapter List Modal Styles - Enhanced Version */
.chapter-modal,
#chapter-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chapter-modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    margin: 10vh auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.darkmode .chapter-modal-content {
    background-color: #222;
    color: #ccc;
}

.chapter-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.darkmode .chapter-modal-header {
    border-bottom-color: #444;
}

.chapter-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.darkmode .chapter-modal-header h3 {
    color: #fff;
}

.modal-close {
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    line-height: 20px;
    padding: 0 5px;
}

.modal-close:hover {
    color: #333;
    transform: scale(1.1);
}

.darkmode .modal-close:hover {
    color: #fff;
}

.chapter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal */
.chapter-modal-body::-webkit-scrollbar {
    width: 8px;
}

.chapter-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chapter-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.chapter-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.darkmode .chapter-modal-body::-webkit-scrollbar-track {
    background: #333;
}

.darkmode .chapter-modal-body::-webkit-scrollbar-thumb {
    background: #666;
}

.modal-chapter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-chapter-list li {
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.darkmode .modal-chapter-list li {
    border-bottom-color: #444;
}

.modal-chapter-list li:last-child {
    border-bottom: none;
}

.modal-chapter-list li:hover {
    background-color: #f8f9fa;
    border-left-color: #215eba;
}

.darkmode .modal-chapter-list li:hover {
    background-color: #2a2a2a;
    border-left-color: #4a8fd8;
}

.modal-chapter-list li.current-chapter {
    background-color: #e8f4fd;
    border-left: 4px solid #215eba;
    position: relative;
}

.modal-chapter-list li.current-chapter::after {
    content: "Current";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #215eba;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.darkmode .modal-chapter-list li.current-chapter {
    background-color: #2a3540;
    border-left-color: #4a8fd8;
}

.darkmode .modal-chapter-list li.current-chapter::after {
    background: #4a8fd8;
}

.modal-chapter-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.darkmode .modal-chapter-list li a {
    color: #ccc;
}

.modal-chapter-list li a:hover {
    color: #215eba;
}

.darkmode .modal-chapter-list li a:hover {
    color: #4a8fd8;
}

.modal-chapter-list .ch-num {
    font-weight: bold;
    min-width: 100px;
    color: #215eba;
    flex-shrink: 0;
}

.darkmode .modal-chapter-list .ch-num {
    color: #4a8fd8;
}

.modal-chapter-list .ch-title {
    flex: 1;
    padding: 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-chapter-list .ch-date {
    color: #999;
    font-size: 13px;
    min-width: 100px;
    text-align: right;
    flex-shrink: 0;
}

/* No content messages */
.no-chapters,
.no-series {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.darkmode .no-chapters,
.darkmode .no-series {
    color: #999;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chapter-modal-content {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
        border-radius: 8px 8px 0 0;
    }
    
    .chapter-modal-header {
        padding: 15px;
    }
    
    .chapter-modal-body {
        padding: 15px;
    }
    
    .modal-chapter-list li a {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .modal-chapter-list .ch-num {
        margin-bottom: 5px;
    }
    
    .modal-chapter-list .ch-title {
        padding: 0;
        margin-bottom: 5px;
        white-space: normal;
        width: 100%;
    }
    
    .modal-chapter-list .ch-date {
        text-align: left;
        margin-top: 5px;
        font-size: 12px;
    }
    
    .modal-chapter-list li.current-chapter::after {
        position: static;
        display: inline-block;
        margin-left: 10px;
        transform: none;
    }
}

/* Trigger links styling */
.show-chapter-modal,
a[href*="/series/"].show-chapter-modal {
    cursor: pointer;
    transition: opacity 0.2s;
}

.show-chapter-modal:hover {
    opacity: 0.8;
    text-decoration: underline;
}