/* ==========================================================================
   AniZoro Public Site Settings (Guest & Public Display Preferences)
   Matches Dark Cyberpunk Theme & MangaK Card Layout
   ========================================================================== */

.az-public-settings-page {
    padding: 30px 0 80px;
    background: #080913;
    min-height: calc(100vh - 160px);
}

.az-pub-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.az-pub-header {
    margin-bottom: 30px;
}

.az-pub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #8292a8;
    margin-bottom: 16px;
}

.az-pub-breadcrumb a {
    color: #8292a8;
    text-decoration: none;
    transition: color 0.2s;
}

.az-pub-breadcrumb a:hover {
    color: #00f0c3;
}

.az-pub-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.az-pub-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.az-pub-title span {
    color: #00f0c3;
}

.az-pub-desc {
    color: #8292a8;
    font-size: 14px;
    margin: 0;
    max-width: 720px;
    line-height: 1.5;
}

.az-guest-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 195, 0.1);
    color: #00f0c3;
    border: 1px solid rgba(0, 240, 195, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ── Category Cards ── */
.az-cat-card {
    background: #101426;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s;
}

.az-cat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.az-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.az-cat-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.az-cat-icon {
    width: 127px;
    height: 71px;
    border-radius: 10px;
    background: rgba(0, 240, 195, 0.08);
    color: #00f0c3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    border: 1px solid rgba(0, 240, 195, 0.2);
}

.az-cat-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.az-cat-desc {
    color: #8292a8;
    font-size: 12.5px;
    margin: 0;
}

.az-btn-reset {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8292a8;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.az-btn-reset:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Setting Rows ── */
.az-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 20px;
}

.az-setting-row:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.az-setting-meta {
    flex: 1;
    margin-bottom: 12px;
}

.az-setting-rows {
    margin-bottom: 9px;
}

.az-setting-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.az-setting-desc {
    font-size: 12.5px;
    color: #7a8599;
    margin: 0;
    line-height: 1.4;
}

/* ── Toggle Switches ── */
.az-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.az-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.az-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e2642;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.az-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

.az-toggle-switch input:checked+.az-toggle-slider {
    background-color: #00ff9d;
    border-color: #00ff9d;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
}

.az-toggle-switch input:checked+.az-toggle-slider:before {
    transform: translateX(22px);
    background-color: #070d19;
}

/* ── Setting Block (Dropdowns: Title Above, Select Middle, Desc Below) ── */
.az-setting-block {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.az-setting-block:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.az-setting-block .az-setting-label {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    display: block;
}

.az-setting-select-full {
    width: 100%;
    background: #151b33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300f0c3' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 18px) center;
    padding-right: 44px;
}

.az-setting-select-full:focus {
    border-color: #00f0c3;
    box-shadow: 0 0 0 3px rgba(0, 240, 195, 0.18);
}

.az-setting-desc-bottom {
    font-size: 13px;
    color: #8292a8;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* ── Select Dropdown in Row (Legacy Fallback) ── */
.az-setting-select {
    background: #151b33;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.az-setting-select:focus {
    border-color: #00f0c3;
    box-shadow: 0 0 0 3px rgba(0, 240, 195, 0.15);
}

/* ── Toast Notification for Instant Feedback ── */
#azSettingsToast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #13162a;
    border: 1px solid #00ff9d;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 157, 0.2);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#azSettingsToast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Live Effect Rules across AniZoro ── */

/* 1. Adult / NSFW Blur */
body.az-blur-nsfw .az-card[data-is-nsfw="1"] img,
body.az-blur-nsfw .az-card-cover[data-nsfw="1"],
body.az-blur-nsfw .manga-card.nsfw img,
body.az-blur-nsfw .nsfw-cover img {
    filter: blur(14px) brightness(0.6);
    transition: filter 0.3s;
}

body.az-blur-nsfw .az-card[data-is-nsfw="1"]:hover img,
body.az-blur-nsfw .manga-card.nsfw:hover img {
    filter: blur(0px) brightness(1);
}

/* 2. Hide Genre Filter Chips */
body.az-hide-genre-chips .az-genres,
body.az-hide-genre-chips .genre-chips-container {
    display: none !important;
}

/* 3. Disable Card Hover Animation */
body.az-no-card-hover .az-card:hover,
body.az-no-card-hover .manga-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 4. Compact Card Grid */
body.az-compact-cards .az-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px !important;
}

/* 5. Hide Rating Stars */
body.az-hide-rating-stars .az-card-meta .star,
body.az-hide-rating-stars .az-card-rating {
    display: none !important;
}

/* 6. Hide Chapter Count Badges */
body.az-hide-chapter-badges .az-card-badge,
body.az-hide-chapter-badges .chapter-badge {
    display: none !important;
}