:root {
    --primary-color: #bb86fc;
    --primary-variant: #3700b3;
    --secondary-color: #03dac6;
    --background-dark: #070707;
    --surface-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navbar Custom Design */
.navbar-custom {
    background: linear-gradient(90deg, #000000 0%, #000a30 40%, #0047b3 70%, #80c4ff 100%);
    border-bottom: 2px solid rgba(3, 218, 198, 0.3);
    padding: 10px 0;
    position: relative;
}

/* Optional: Starry effect overlay */
.navbar-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
                      radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    opacity: 0.3;
    pointer-events: none;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px #03dac6;
    position: relative;
    z-index: 1;
}

.nav-link-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(3,218,198,0.2) 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0 0 10px rgba(3,218,198,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(3, 218, 198, 0.2);
    position: relative;
    z-index: 1;
}

.nav-link-custom i {
    font-size: 1.2rem;
    margin-bottom: 3px;
    color: #fff;
}

.nav-link-custom:hover {
    color: #03dac6;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(3,218,198,0.4) 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.7), inset 0 0 15px rgba(3,218,198,0.6);
    transform: translateY(-2px);
}

.nav-link-custom:hover i {
    color: #03dac6;
}

/* User Dropdown */
.nav-item.dropdown .nav-link-custom {
    flex-direction: row;
    padding: 10px 20px;
}
.nav-item.dropdown .nav-link-custom i {
    margin-bottom: 0;
    margin-right: 8px;
}

/* Card Styling */
.series-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.series-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #a365f5;
    border-color: #a365f5;
    transform: scale(1.05);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Search Bar Custom */
.search-form-custom {
    position: relative;
    z-index: 1;
}

.search-form-custom .form-control {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,20,40,0.9) 100%);
    border: 1px solid #03dac6;
    color: #fff;
    border-radius: 20px;
    padding: 8px 35px 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(3,218,198,0.3);
    width: 200px;
    transition: width 0.3s ease;
}

.search-form-custom .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-form-custom .form-control:focus {
    width: 250px;
    box-shadow: 0 0 10px rgba(3,218,198,0.5), inset 0 0 15px rgba(3,218,198,0.5);
    outline: none;
}

.search-form-custom .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.search-form-custom .search-icon:hover {
    color: #03dac6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background-dark);
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Chapter Image Viewer */
.chapter-image {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    margin-bottom: -1px; /* Remove gap between images */
}

/* Forms */
.form-control, .form-select {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}
.form-control:focus, .form-select:focus {
    background-color: var(--surface-dark);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(187, 134, 252, 0.25);
}

.footer {
    background-color: var(--surface-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Reusable Background for Dashboards */
.hero-bg {
    background: linear-gradient(135deg, rgba(55,0,179,0.2) 0%, rgba(3,218,198,0.2) 100%);
    border: 1px solid rgba(187,134,252,0.2);
    border-radius: 12px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 60px !important;
    }
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }
    .nav-link-custom {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 12px 20px;
        border-radius: 10px;
    }
    .nav-link-custom i, .nav-link-custom svg {
        margin-bottom: 0 !important;
        margin-right: 15px;
        font-size: 1.4rem;
    }
    .search-form-custom {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    .search-form-custom .form-control {
        width: 100%;
    }
    .search-form-custom .form-control:focus {
        width: 100%;
    }
    .nav-item.dropdown .dropdown-menu {
        text-align: left;
        background: rgba(0, 0, 0, 0.5) !important;
        border: none !important;
        padding-left: 20px;
    }
}

/* ===================================================
   Çok Sevilenler (Popular Series) Strip Slider - Ziwa Theme
   =================================================== */
.popular-strip-box {
    background: linear-gradient(135deg, rgba(22, 18, 34, 0.82) 0%, rgba(10, 10, 16, 0.88) 100%), 
                url('../kugu.png') center/cover no-repeat;
    border: 1px solid rgba(187, 134, 252, 0.35);
    border-radius: 16px;
    padding: 20px 22px 22px 22px;
    margin-bottom: 3.5rem;
    position: relative;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), inset 0 0 25px rgba(55, 0, 179, 0.15);
}

.popular-strip-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.popular-badge-pill {
    background: linear-gradient(135deg, var(--primary-variant) 0%, #1e1e2f 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(187, 134, 252, 0.35);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.popular-strip-controls {
    display: flex;
    gap: 6px;
}

.popular-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.popular-nav-btn:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.4);
    transform: translateY(-1px);
}

.popular-nav-btn:active {
    transform: scale(0.92);
}

.popular-strip-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-top: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popular-strip-track::-webkit-scrollbar {
    display: none;
}

.popular-strip-card {
    flex: 0 0 295px;
    max-width: 295px;
    background: rgba(14, 14, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: stretch;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.popular-strip-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(187, 134, 252, 0.2);
}

.popular-thumb-wrap {
    width: 95px;
    height: 135px;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.popular-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.popular-strip-card:hover .popular-thumb-img {
    transform: scale(1.06);
}

.popular-badge-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

.popular-badge-tag.ongoing {
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.popular-badge-tag.final {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.popular-badge-tag.adult {
    color: #ff5252;
    border: 1px solid #ff5252;
}

.popular-badge-tag.new {
    color: #fbc531;
    border: 1px solid #fbc531;
}

.popular-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
}

.popular-title {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.25;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.popular-title:hover {
    color: var(--secondary-color) !important;
}

.popular-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 3px 0 6px 0;
}

.popular-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

.popular-chapter-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 3px 8px;
    font-size: 0.72rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.popular-chapter-pill:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .popular-strip-card {
        flex: 0 0 220px;
        width: 220px;
        max-width: 220px;
        padding: 8px;
        gap: 8px;
    }
    .popular-thumb-wrap {
        width: 70px;
        height: 100px;
        border-radius: 5px;
    }
    .popular-title {
        font-size: 0.82rem;
        line-height: 1.2;
    }
    .popular-date {
        font-size: 0.68rem;
        margin: 2px 0 4px 0;
    }
    .popular-chapter-pill {
        padding: 2px 6px;
        font-size: 0.68rem;
    }
}

