/*
Theme Name: Cizgi Arsiv Theme
Theme URI: https://cizgiarsiv.com
Description: Modern, dark-mode manga reading theme powered by Tailwind CSS. Features series grouping and dark mode support.
Author: Sefflex
Author URI: https://cizgiarsiv.com
Version: 1.2
Text Domain: cizgiarsiv
*/

/* 
   Since we use Tailwind, most styles are utility-based.
   However, WP specific classes need overrides here.
*/

/* WordPress Custom Logo */
.custom-logo {
    height: auto;
    width: auto;
    max-height: 48px;
    /* Restrict logo height in header */
}

/* Menu Items Styling via standard WP classes */
.menu-item,
.page_item {
    list-style: none;
}

.menu-item a,
.page_item a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

/* Light Mode Menu Colors */
html:not(.dark) .menu-item a,
html:not(.dark) .page_item a {
    color: #374151;
    /* gray-700 */
}

html:not(.dark) .menu-item a:hover,
html:not(.dark) .page_item a:hover {
    color: #5C8D89;
    /* primary */
}

/* Dark Mode Menu Colors */
html.dark .menu-item a,
html.dark .page_item a {
    color: #e5e7eb;
    /* gray-200 */
}

html.dark .menu-item a:hover,
html.dark .page_item a:hover {
    color: #5C8D89;
    /* primary */
}

/* Widget Styling for Organized Look */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #2d2d2d;
    /* Slightly lighter than pure black for separation */
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 20px;
    /* Space for the arrow */
}

/* Add Chevron Arrow > */
.widget ul li::before {
    content: '\203A';
    /* Chevron symbol */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #5C8D89;
    /* Match title teal color */
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: #d1d5db;
    /* gray-300 */
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    width: 100%;
    /* clickable area */
}

.widget ul li a:hover {
    color: #5C8D89;
    /* Hover color matches theme */
    padding-left: 4px;
    /* subtle shift */
}

/* Specific adjustments for Light mode widgets if needed, assuming usage is mostly dark */
html:not(.dark) .widget ul li {
    border-bottom: 1px solid #e5e7eb;
}

html:not(.dark) .widget ul li a {
    color: #374151;
}

/* Comment Styles (Dark Mode Fixes) */
#comments {
    background-color: #121212 !important;
    color: #e5e7eb !important;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.comment-list,
.comment-body {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

.comment-author,
.fn,
.comment-metadata a {
    color: #fff !important;
}

.comment-content {
    color: #ccc !important;
}

#reply-title {
    color: #fff !important;
}

#submit {
    background-color: #5C8D89 !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5C8D89;
}

/* Light Mode Scrollbar Override */
html:not(.dark) ::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

/* Pagination Styling */
.pagination-wrapper .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background-color: #1f1f1f;
    /* dark-card */
    border: 1px solid #333;
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-wrapper .page-numbers:hover {
    background-color: #5C8D89;
    color: white;
    border-color: #5C8D89;
}

.pagination-wrapper .page-numbers.current {
    background-color: #5C8D89;
    /* primary */
    color: white;
    border-color: #5C8D89;
}

.pagination-wrapper .page-numbers.dots {
    background: transparent;
    border: none;
    color: #666;
}

/* Mobile Menu Sidebar Styling (Reusing Widget Logic) */
.mobile-nav-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ... existing ... */

/* Utility: Hide Scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Target both WP menu items and manual fallback items */
.mobile-nav-widget .menu-item,
.mobile-nav-widget .mobile-menu-item {
    padding: 12px 0;
    border-bottom: 1px solid #2d2d2d;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 20px;
}

.mobile-nav-widget .menu-item::before,
.mobile-nav-widget .mobile-menu-item::before {
    content: '\203A';
    /* Chevron symbol */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #5C8D89;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.mobile-nav-widget .menu-item:last-child,
.mobile-nav-widget .mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-nav-widget .menu-item a,
.mobile-nav-widget .mobile-menu-item a {
    text-decoration: none;
    color: #d1d5db;
    font-size: 1rem;
    /* Slightly larger for mobile touch */
    font-weight: 500;
    width: 100%;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-widget .menu-item a:hover,
.mobile-nav-widget .mobile-menu-item a:hover {
    color: #5C8D89;
    padding-left: 6px;
}

/* Ticker (Haber Bandı) Animation */
@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    /* Ensure continuous loop if we double content, but for simple marquee 100% is safe padding */
    animation: ticker 30s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
}

/* Hero Section Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Card Hover Effects */
.hero-card .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.hero-card:hover img {
    transform: scale(1.05);
}

/* Hero Grid Height Adjustment */
.hero-grid {
    grid-template-rows: repeat(2, 350px);
}

/* Page Content Typography Fixes */
.prose p {
    margin-bottom: 1.5em;
    line-height: 1.75;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose h1,
.prose h2,
.prose h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

/* ---------------------------------------------------------
   COMMENTS SECTION
--------------------------------------------------------- */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
}

/* The Comment Card */
.comment-body {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

/* Comment Meta (Author, Date) */
.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #888;
}

.comment-author {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author cite {
    font-style: normal;
}

.comment-metadata {
    margin-top: 2px;
    font-size: 0.85em;
    color: #666;
}

.comment-metadata a {
    color: #666;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #5C8D89;
}

/* Comment Content */
.comment-content {
    color: #e5e5e5;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 1em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply Button */
.reply {
    margin-top: 15px;
}

.reply a {
    color: #5C8D89;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* NESTED COMMENTS (The "Shift Right" Effect) */
.comment-list .children {
    list-style: none;
    margin-left: 20px;
    /* Small shift for mobile */
    padding-left: 0;
    margin-top: 20px;
    border-left: 2px solid #333;
    /* Visual Guide Line */
}

.comment-list .children>li {
    padding-left: 15px;
    /* Spacing from the border line */
    margin-bottom: 20px;
}

/* Larger shift on desktop */
@media (min-width: 768px) {
    .comment-list .children {
        margin-left: 50px;
    }
}
/* ---------------------------------------------------------
   SIDEBAR & WIDGETS (Card Style)
--------------------------------------------------------- */
.widget {
    background-color: #1a1a1a; /* Dark Card Bg */
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0; /* Title handles its own spacing */
    margin-bottom: 25px; /* Spacing between widgets */
    overflow: hidden; /* For rounded corners */
}

/* Widget Title (Cyan Tab Style) */
.widget-title-wrapper {
    background-color: transparent;
    border-bottom: 2px solid #5C8D89; /* Line under title */
    margin-bottom: 15px;
    padding: 15px 15px 0 15px;
}

.widget-title-wrapper h2,
.widget .widget-title {
    background-color: #5C8D89; /* Cyan Theme Color */
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0; /* Tab shape */
    margin: 0;
    line-height: 1;
}

/* Widget Content Area */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0 15px 15px 15px;
}

.widget ul li {
    border-bottom: 1px solid #2d2d2d;
    padding: 10px 0;
    position: relative;
    padding-left: 15px; /* Space for arrow */
    display: flex;
    align-items: center;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Arrow Icon for List Items */
.widget ul li::before {
    content: ""; /* Chevron char */
    color: #5C8D89;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-55%);
    line-height: 1;
}

.widget ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.widget ul li a:hover {
    color: #5C8D89;
    padding-left: 5px; /* Slide effect */
}

/* Specific Fix for Search Widget if added */
.widget_search {
    padding: 15px;
}
