/* Add this to the top of your CSS file */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Exceptions for elements that shouldn't transition */
.slider:before,
.subdub-slider:before {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer {
    margin-left: -2rem !important;
    margin-right: -2rem !important;
    margin-bottom: -2rem !important;
}

/* Modern Settings Container Layout */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 70px);
    padding-top: 7rem;
}

/* Sleek Sidebar Tabs */
.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: fit-content;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-tabs a {
    text-decoration: none;
}

.settings-tabs .tab-button {
    width: 100%;
    padding: 1rem 1.2rem;
    text-align: left;
    background: var(--bg-primary);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    outline: 2px solid transparent;
}

.settings-tabs .tab-button:hover {
    transform: translateY(-1px);
    background: var(--accent-color);
    border-color: var(--episode-container);
    color: var(--text-primary);
}

.settings-tabs .tab-button.active {
    background: var(--accent-color);
    border-color: var(--episode-container);
    color: var(--text-primary);
    font-weight: 600;
}

.settings-tabs .tab-button svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.settings-tabs .tab-button.active svg {
    opacity: 1;
}

/* Login Prompt for Non-Authenticated Users */
.login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--episode-container);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.login-prompt svg {
    width: 48px;
    height: 48px;
    color: var(--episode-container);
    flex-shrink: 0;
}

.login-prompt p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    text-align: center;
}

/* Content Panel Styling */
.tab-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Settings Header */
.settings-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.settings-header h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Settings Sections */
.settings-section {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--accent-color);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--button-color);
}

.section-header svg {
    width: 22px;
    height: 22px;
    color: var(--episode-container);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Option Row */
.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--button-color);
}

.option-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.option-row:first-child {
    padding-top: 0;
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    padding-right: 1rem;
}

.option-title {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.option-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0.9;
}

/* Modern Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--button-color);
    transition: .3s;
    border-radius: 30px;
    overflow: hidden;
    border: none;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: var(--episode-container);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Button Styles */
.settings-button {
    background: var(--episode-container);
    border: none;
    color: var(--text-primary);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 1rem;
}

.settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.settings-button:active {
    transform: translateY(0);
}

.settings-button svg {
    width: 18px;
    height: 18px;
}

/* Settings Divider */
.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Clean SUB/DUB Toggle Styling */
.subdub-switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 34px;
    margin: 0;
}

.subdub-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.subdub-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-color);
    border-radius: 34px;
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* This is the pill that slides */
.subdub-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 56px;
    left: 4px;
    bottom: 3px;
    background: var(--episode-container);
    transition: .3s;
    border-radius: 34px;
    z-index: 1;
}

input:checked + .subdub-slider:before {
    transform: translateX(56px);
}

/* Fix the position of labels */
.subdub-labels {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0 12px;
    pointer-events: none;
    align-items: center;
    z-index: 2;
}

.subdub-labels span {
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

#subLabel {
    color: var(--text-primary);
}

#dubLabel {
    color: rgba(255, 255, 255, 0.5);
}

input:checked ~ .subdub-labels #subLabel {
    color: rgba(255, 255, 255, 0.5);
}

input:checked ~ .subdub-labels #dubLabel {
    color: var(--text-primary);
}


@media (max-width: 768px) {
    .bookmark-card__info-btn {
        display: flex;
    }
    
    .bookmark-card__hover-info {
        height: 0;
        transition: height 0.3s ease;
    }
    
    .bookmark-card__hover-info.show {
        height: 100%;
        overflow-y: auto;
    }
}

@media screen and (max-width: 768px) {
    .status-filters {
        flex-direction: column;
        gap: 8px;
    }

    .status-filters .filter-button {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .toggle-filters-btn {
        display: flex;
    }

    .filters-container {
        display: none !important;
    }

    .filters-container.show {
        display: flex !important;
    }
}
/* Responsive Design */
@media (max-width: 1024px) {
    .settings-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        padding-top: 6rem;
        gap: 1rem;
    }

    .settings-tabs {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem;
        white-space: nowrap;
        scrollbar-width: thin;
        scrollbar-color: var(--button-color) transparent;
    }

    .settings-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .settings-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .settings-tabs::-webkit-scrollbar-thumb {
        background: var(--button-color);
        border-radius: 3px;
    }

    .settings-tabs .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .settings-section {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .settings-container {
        padding: 0.75rem;
        padding-top: 5rem;
    }

    .tab-content {
        padding: 1.25rem;
    }

    .settings-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .settings-header h1 {
        font-size: 1.5rem;
    }

    .settings-header p {
        font-size: 0.875rem;
    }

    .settings-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .option-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }

    .option-info {
        padding-right: 0;
        max-width: 100%;
    }

    .option-title {
        font-size: 0.95rem;
    }

    .option-description {
        font-size: 0.85rem;
    }

    .settings-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .settings-tabs .tab-button span {
        display: none;
    }

    .settings-tabs .tab-button {
        padding: 0.625rem;
        min-width: 48px;
        justify-content: center;
    }

    .settings-tabs .tab-button svg {
        margin: 0;
    }

    .toggle-option {
        width: 100%;
    }

    .subdub-switch {
        width: 120px;
        max-width: 120px;
    }

    .login-prompt {
        padding: 1.5rem 1rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .login-prompt svg {
        width: 40px;
        height: 40px;
    }

    .login-prompt p {
        font-size: 0.875rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .settings-container {
        padding: 0.5rem;
        padding-top: 4.5rem;
    }

    .tab-content {
        padding: 1rem;
        border-radius: 8px;
    }

    .settings-header h1 {
        font-size: 1.3rem;
    }

    .settings-section {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .section-header svg {
        width: 20px;
        height: 20px;
    }

    .option-row {
        padding: 0.875rem 0;
    }

    .login-prompt {
        padding: 1.25rem 0.875rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .login-prompt svg {
        width: 36px;
        height: 36px;
    }

    .login-prompt p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
        text-align: center;
    }
        max-width: none;
    }
}