
/* base */
/**
 * Source CSS File
 * This file is compiled into public/style.css by the build script.
 * DO NOT edit public/style.css directly!
 * Make all changes to this file and component CSS files in src/components/.
 */

/* Base styles and CSS variables */

/* Body scroll lock for modals */
body.scroll-locked {
  overflow: hidden;
}


:root {
    --color-dark: #0A0D15;
    --color-light: #d4cfc6;
    --color-accent: #5543db;
    --color-success: #2ecc71;
    --color-warning: #e67e22;
    --color-error: #e74c3c;
    --color-danger: #e74c3c;
    --color-surface: #1A1D25;
    --spacing-base: 8px;
    --spacing-double: 16px;
    --spacing-triple: 24px;
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --bottom-sheet-height: 64px;
    --scrollbar-width: 0px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent content shift when scrollbar appears/disappears */
html {
    overflow-y: scroll;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-right: var(--scrollbar-width);
}

/* When bottom sheet is active */
body.bottom-sheet-active {
    overflow: hidden;
    /* Add padding to prevent content shift */
    padding-right: var(--scrollbar-width);
}

/* Main content area */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-double);
}

/* Error box styles */
.error-box {
    margin: var(--spacing-triple) 0 0 0;
    background: #c0392b;
    color: #fff;
    padding: var(--spacing-double);
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-double);
}

.error-message {
    margin: 0;
    line-height: 1.4;
}

.retry-button {
    margin-top: var(--spacing-base);
    padding: 8px 24px;
    font-size: 1rem;
    border-radius: 6px;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
}

.retry-button:hover:not(:disabled) {
    background: #333;
}

.retry-button:active:not(:disabled) {
    transform: scale(0.98);
}

.retry-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.retry-spinner .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Welcome box styles */
.welcome-box {
    margin: 48px 0 0 0;
    text-align: center;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-double);
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-light);
}

.welcome-text {
    margin: 0;
    color: var(--color-light);
    opacity: 0.8;
}

.add-feeds-button {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--color-accent);
    color: var(--color-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.add-feeds-button:hover {
    background: var(--color-accent);
    opacity: 0.9;
}

.add-feeds-button:active {
    transform: scale(0.98);
}

/* article list and items */
.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-triple);
    position: relative;
    overflow: hidden; /* Prevent horizontal scroll during swipe */
}

.article-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-base);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-double);
    padding: 12px 0;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-accent);
    opacity: 0.3;
}


/* landing */
/* Landing Page Component */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 100%);
    padding: var(--spacing-base);
}

.landing-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.landing-logo {
    margin-bottom: var(--spacing-double);
}

.logo-image {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(85, 67, 219, 0.5);
}

.landing-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: var(--spacing-base);
    letter-spacing: -0.02em;
}

.landing-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--spacing-double);
}

.get-started-btn {
    background: var(--color-accent);
    color: var(--color-light);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(85, 67, 219, 0.4);
}

.get-started-btn:hover {
    background: #6b5bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 67, 219, 0.5);
}

.get-started-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(85, 67, 219, 0.4);
}

/* Tablet and up */
@media (min-width: 600px) {
    
    .logo-image {
        width: 85px;
        height: 85px;
    }
    
    .landing-title {
        font-size: 4rem;
    }
    
    .landing-description {
        font-size: 1.1rem;
    }
    
    .get-started-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    
    .landing-title {
        font-size: 4.5rem;
    }
    
    .landing-description {
        font-size: 1.2rem;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    
    .landing-title {
        font-size: 5rem;
    }
}


/* auth */
/* Authentication Component */
.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 100%);
    padding: var(--spacing-base);
}

.auth-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-header {
    margin-bottom: var(--spacing-double);
}

.auth-logo {
    margin-bottom: var(--spacing-base);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: var(--spacing-double);
    letter-spacing: -0.02em;
}

.auth-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: var(--spacing-double);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form {
    width: 100%;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-double);
}

.form-group {
    margin-bottom: var(--spacing-base);
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-light);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-light);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(85, 67, 219, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-button {
    width: 100%;
    background: var(--color-accent);
    color: var(--color-light);
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--spacing-base);
    box-shadow: 0 4px 16px rgba(85, 67, 219, 0.3);
}

.auth-button:hover {
    background: #6b5bff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(85, 67, 219, 0.4);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(85, 67, 219, 0.3);
}

.auth-switch {
    margin-top: var(--spacing-double);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.switch-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.switch-link:hover {
    color: #6b5bff;
}

/* Tablet and up */
@media (min-width: 600px) {
    .auth {
        padding: var(--spacing-double);
    }
    
    .auth-content {
        max-width: 450px;
    }
    
    .auth-title {
        font-size: 2.5rem;
    }
    
    .auth-form-container {
        padding: 2.5rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .auth-content {
        max-width: 500px;
    }
    
    .auth-title {
        font-size: 3rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
}


/* feed-status */
/* Feed Status Component - Dedicated area for all status messages */

.feed-status {
    background: var(--color-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    animation: slideDown 0.3s ease-out;
    max-width: 100%; /* Mobile-first: full width */
    border-radius: 0; /* Mobile-first: no border radius */
    border-left: none; /* Mobile-first: no side borders */
    border-right: none; /* Mobile-first: no side borders */
}

.feed-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-base); /* Mobile-first: smaller gap */
    padding: var(--spacing-base); /* Mobile-first: smaller padding */
    min-height: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.feed-status-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feed-status-text {
    font-size: 13px; /* Mobile-first: smaller font */
    font-weight: 500;
    color: var(--color-light);
}


/* Feed Status States */
.feed-status.offline {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.feed-status.offline .feed-status-icon::before {
    content: "⚠";
    color: #e74c3c;
    font-size: 16px;
}

.feed-status.syncing {
    background: rgba(85, 67, 219, 0.1);
    border-color: rgba(85, 67, 219, 0.3);
}

.feed-status.syncing .feed-status-icon::before {
    content: "⏸";
    color: var(--color-accent);
    font-size: 16px;
}

.feed-status.synced {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.feed-status.synced .feed-status-icon::before {
    content: "✓";
    color: var(--color-success);
    font-size: 16px;
}

.feed-status.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.feed-status.error .feed-status-icon::before {
    content: "⚠";
    color: var(--color-error);
    font-size: 16px;
}

/* Feed Status Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Desktop optimizations for feed status */
@media (min-width: 601px) {
    .feed-status {
        max-width: 800px; /* Desktop: constrained width */
        border-radius: 8px; /* Desktop: rounded corners */
        border-left: 1px solid rgba(255, 255, 255, 0.1); /* Desktop: side borders */
        border-right: 1px solid rgba(255, 255, 255, 0.1); /* Desktop: side borders */
    }
    
    .feed-status-content {
        padding: var(--spacing-base) var(--spacing-double); /* Desktop: larger padding */
        gap: var(--spacing-double); /* Desktop: larger gap */
    }
    
    .feed-status-text {
        font-size: 14px; /* Desktop: larger font */
    }
}


/* header */
/* Header Component */

/* Header and navigation */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--color-dark);
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    z-index: 100;
    padding-right: calc(var(--spacing-double) + var(--scrollbar-width));
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-double);
}

.center-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo img {
    border-radius: 5px;
    border: 1px solid var(--color-light);
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-light);
}

h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.icon-button {
    background: none;
    border: none;
    color: var(--color-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(212, 207, 198, 0.1);
}

/* Right navigation */
.right-nav {
    display: flex;
    align-items: center;
}

.settings-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.settings-button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.settings-button svg {
    width: 20px;
    height: 20px;
}

/* Refresh button animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

#refresh-feeds-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Connection status indicator */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.connection-status.offline {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.connection-status.online {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* feed-list */
/* Feed List Component Styles */

/* This component has no UI - it only manages data loading */
/* All styles are handled by other components that display the feed data */


/* feed-adder */
.feed-adder-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-dark);
    border-left: 1px solid rgba(212, 207, 198, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 200;
    display: flex;
    flex-direction: column;
}

/* Desktop responsive */
@media (min-width: 768px) {
    .feed-adder-panel {
        width: 500px;
        max-width: 50vw;
    }
}

.feed-adder-panel.active {
    transform: translateX(0);
}

.feed-adder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.feed-adder-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.feed-adder-panel-header {
    height: 64px;
    padding: 0 var(--spacing-double);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    background-color: var(--color-dark);
}

.feed-adder-panel-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-light);
}

.feed-discovery-info {
    padding: var(--spacing-base) var(--spacing-double);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 207, 198, 0.05);
    border-radius: 8px;
    margin-bottom: var(--spacing-base);
}

.feed-discovery-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(212, 207, 198, 0.7);
    line-height: 1.4;
}

.feed-discovery-info p:not(:last-child) {
    margin-bottom: var(--spacing-small);
}

.feed-adder-hint {
    font-size: 13px !important;
    color: rgba(212, 207, 198, 0.6) !important;
    font-style: italic;
    margin-top: var(--spacing-small) !important;
}

#feed-adder-form {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-double);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-double);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

#feed-url-input {
    width: 100%;
    padding: var(--spacing-base) var(--spacing-double);
    background: var(--color-surface);
    border: 1px solid rgba(212, 207, 198, 0.1);
    border-radius: 8px;
    color: var(--color-light);
    font-size: 16px;
    transition: all 0.2s ease;
}

#feed-url-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.03);
}

#feed-url-input::placeholder {
    color: rgba(212, 207, 198, 0.5);
}

#feed-url-input.valid {
    border-color: var(--color-success);
}

#feed-url-input.invalid {
    border-color: var(--color-warning);
}

.paste-button {
    position: absolute;
    right: var(--spacing-base);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--spacing-base) var(--spacing-base);
    background: rgba(212, 207, 198, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--color-light);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.paste-button:hover {
    background: rgba(212, 207, 198, 0.15);
}

.feed-discovery {
    flex: 1;
    overflow-y: auto;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid rgba(212, 207, 198, 0.1);
    color: var(--color-light);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-base);
    color: var(--color-light);
    padding: var(--spacing-triple);
    opacity: 0.7;
}

.discovery-loading-indicator {
    padding: var(--spacing-base) var(--spacing-double);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
}

.discovery-loading-indicator .loading {
    padding: var(--spacing-base) 0;
    justify-content: flex-start;
    opacity: 0.8;
}

.discovery-loading-indicator .loading p {
    font-size: 14px;
    margin: 0;
}

.no-new-feeds-message {
    padding: var(--spacing-base) var(--spacing-double);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
}

.no-new-feeds-message .info-message {
    padding: var(--spacing-base) 0;
}

.no-new-feeds-message .info-message p {
    margin: 0;
    font-size: 14px;
    color: rgba(212, 207, 198, 0.7);
    line-height: 1.4;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 207, 198, 0.1);
    border-top-color: var(--color-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: var(--color-warning);
    padding: var(--spacing-base) var(--spacing-double);
    background: rgba(230, 126, 34, 0.1);
    border-radius: 6px;
    font-size: 14px;
}

.preview-content {
    padding: var(--spacing-double);
    color: var(--color-light);
}

.preview-header {
    margin-bottom: var(--spacing-double);
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--spacing-base) 0;
    color: var(--color-light);
}

.preview-description {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    color: var(--color-light);
}

.preview-items {
    border-top: 1px solid rgba(212, 207, 198, 0.1);
    padding-top: var(--spacing-double);
}

.preview-item {
    padding: var(--spacing-base) 0;
}

.preview-item-title {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--color-light);
}

.preview-item-date {
    font-size: 12px;
    opacity: 0.5;
    color: var(--color-light);
}

#submit-feed {
    padding: var(--spacing-base) var(--spacing-double);
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    color: var(--color-light);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#submit-feed:hover:not(:disabled) {
    background: var(--color-accent);
    opacity: 0.9;
}

#submit-feed:active:not(:disabled) {
    transform: scale(0.98);
}

#submit-feed:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Feed discovery styles */
.discovery-results {
    padding: var(--spacing-double);
    color: var(--color-light);
}

.discovery-header {
    margin-bottom: var(--spacing-double);
}

.discovery-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--spacing-base) 0;
    color: var(--color-light);
}

.discovery-header p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    color: var(--color-light);
}

.feed-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-base);
}

.feed-option {
    padding: var(--spacing-base) var(--spacing-double);
    background: var(--color-surface);
    border: 1px solid rgba(212, 207, 198, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-option:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 207, 198, 0.2);
}

.feed-option.selected {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

.feed-option-url {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-light);
    margin-bottom: 4px;
    word-break: break-all;
}

.feed-option-label {
    font-size: 12px;
    opacity: 0.6;
    color: var(--color-light);
}

.feed-option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-base) var(--spacing-double);
    background: var(--color-surface);
    border: 1px solid rgba(212, 207, 198, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}
.feed-option-checkbox input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    margin: 0;
}
.feed-option-checkbox .feed-option-url {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-light);
    word-break: break-all;
}

/* Unchecked feed styles */
.feed-option-checkbox.unchecked {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(212, 207, 198, 0.05);
}

.feed-option-checkbox.unchecked .feed-option-url {
    color: rgba(212, 207, 198, 0.4);
}

.feed-option-checkbox.unchecked:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 207, 198, 0.1);
}

.unchecked-indicator {
    font-size: 12px;
    color: rgba(212, 207, 198, 0.3);
    font-style: italic;
    margin-left: auto;
}

.selection-count {
    font-weight: 600;
    color: var(--color-accent);
} 

/* article-list */
/* Article item container */
.article-item-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-dark);
    margin-bottom: 2px;
}

/* Article item */
.article-item {
    display: flex;
    gap: var(--spacing-base);
    padding: 8px; /* Mobile-first: smaller padding */
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    touch-action: pan-y pinch-zoom;
    transform-origin: center;
    user-select: none;
    -webkit-touch-callout: none;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.18s cubic-bezier(0.4,0.8,0.5,1.1);
    background-color: var(--color-dark);
    will-change: transform;
}

.article-item:not(.swiping):hover {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.article-item.selected {
    background-color: rgba(85, 67, 219, 0.15);
}

.article-item.selected:not(.swiping):hover {
    background-color: rgba(85, 67, 219, 0.12);
    box-shadow: 0 2px 8px rgba(85, 67, 219, 0.2);
    transform: translateY(-1px);
}

/* Swipe states */
.article-item.swiping {
    transition: none;
    background-color: var(--color-dark);
}

/* Swipe action background */
.swipe-action-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    padding-left: calc(20px + var(--spacing-double));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    pointer-events: none;
    will-change: opacity;
}

/* Show background during swipe */
.article-item.swipe-right + .swipe-action-bg {
    opacity: 1;
}

/* Hide swipe background when item is selected */
.article-item.selected + .swipe-action-bg {
    opacity: 0;
}

/* Swipe action icon */
.swipe-action-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: var(--color-success);
    transform: translateX(-5px);
    transition: opacity 0.15s ease-out, transform 0.2s cubic-bezier(0.2, 0.0, 0.0, 1.0);
    will-change: transform, opacity;
}

.article-item.swipe-right + .swipe-action-bg .swipe-action-icon {
    opacity: 1;
    transform: translateX(0);
}

.article-item.swipe-threshold-met + .swipe-action-bg .swipe-action-icon {
    transform: scale(1.1);
}

.article-item.unread + .swipe-action-bg .swipe-action-icon::before {
    content: '✓';
    font-size: 24px;
}

.article-item:not(.unread) + .swipe-action-bg .swipe-action-icon::before {
    content: '○';
    font-size: 24px;
    color: var(--color-light);
}

.article-item.returning {
    transition: transform 0.3s cubic-bezier(0.2, 0.0, 0.0, 1.0);
    background-color: var(--color-dark);
}

.article-item.action-complete {
    transform: translateX(0) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.2, 0.0, 0.0, 1.0);
    background-color: var(--color-dark);
}

.article-icon {
    width: 36px;
    height: 36px;
    background-color: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s var(--transition-spring), border-color 0.2s ease, background-color 0.2s ease;
    border: 2px solid transparent;
}

/* Remove background when favicon is present */
.article-icon:has(.feed-favicon) {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

.article-item.selected .article-icon {
    border-color: var(--color-light);
    box-shadow: 0 0 0 1.4px var(--color-success);
}

/* Selected state for favicon icons */
.article-item.selected .article-icon:has(.feed-favicon) {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-light);
}

.article-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--color-accent);
    filter: brightness(1.1);
}

/* Hover state for favicon icons */
.article-icon:has(.feed-favicon):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.article-icon:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Feed favicon */
.feed-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.article-content {
    flex-grow: 1;
    min-width: 0; /* Enables text truncation */
}

.article-item h2 {
    font-size: 16px;
    margin-bottom: 0;
    color: var(--color-light);
    line-height: 1.4;
}

.article-item:not(.unread) h2 {
    opacity: 0.7;
}

.preview {
    font-size: 15px; /* Mobile-first: smaller font */
    margin-bottom: 1px;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.meta {
    font-size: 13px; /* Mobile-first: smaller font */
    opacity: 0.5;
    display: flex;
    gap: var(--spacing-base);
    align-items: center;
}

.separator {
    font-size: 12px;
}

/* Mobile-first base styles */
h1 {
    font-size: 20px; /* Mobile-first: smaller font */
}

/* Desktop optimizations */
@media (min-width: 601px) {
    .article-item {
        padding: var(--spacing-base); /* Desktop: larger padding */
    }
    h1 {
        font-size: 24px; /* Desktop: larger font */
    }
    .preview {
        font-size: 16px; /* Desktop: larger font */
    }
    .meta {
        font-size: 14px; /* Desktop: larger font */
    }
}

/* Article sections */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-double);
    padding: 6px 0;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-accent);
    opacity: 0.3;
}

/* Loading indicator for infinite scroll */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-base);
    padding: var(--spacing-double);
    color: var(--color-light);
    opacity: 0.7;
    font-size: 14px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Load more button */
.load-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    min-width: 200px;
    padding: 12px 24px;
    margin: 16px auto;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.load-more-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

.load-more-text {
    font-size: 14px;
    font-weight: 500;
}

.load-more-count {
    font-size: 12px;
    opacity: 0.6;
    font-weight: 400;
}

/* Scroll to top button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-accent);
    color: var(--color-dark);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top-btn:hover {
    background: var(--color-accent);
    opacity: 0.9;
    transform: translateY(0);
}

.scroll-to-top-btn:active {
    transform: translateY(2px);
}

/* Show animation */
.scroll-to-top-btn[style*="display: block"] {
    animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimizations */

.swipe-return {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sync loading screen */
.sync-loading-screen {
    background: rgba(85, 67, 219, 0.1);
    border: 1px solid rgba(85, 67, 219, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.sync-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 16px; /* Mobile-first: smaller margin */
    padding: 24px; /* Mobile-first: smaller padding */
}

.sync-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.sync-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-accent);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sync-header h3 {
    margin: 0;
    color: var(--color-light);
    font-size: 16px;
    font-weight: 500;
}

.sync-header h2 {
    font-size: 18px; /* Mobile-first: smaller font */
}

.failed-feeds-list {
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    max-height: 150px; /* Mobile-first: smaller height */
    overflow-y: auto;
    width: 100%;
}

.failed-feed-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.failed-feed-item:last-child {
    border-bottom: none;
}

.failed-feed-item .feed-title {
    color: var(--color-light);
    font-weight: 500;
    font-size: 14px;
}

.failed-feed-item .feed-error {
    color: #e74c3c;
    font-size: 12px;
    opacity: 0.8;
}

.sync-actions {
    display: flex;
    flex-direction: column; /* Mobile-first: stacked buttons */
    gap: 12px;
    margin-top: 32px;
    width: 100%;
}

.retry-button,
.show-articles-button {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, filter 0.2s;
    box-sizing: border-box;
}

.retry-button {
    background: var(--color-accent);
    color: var(--color-light);
}

.retry-button:hover:not(:disabled) {
    filter: brightness(1.1);
}

.show-articles-button {
    background: #23232b;
    color: var(--color-light);
}

.show-articles-button:hover:not(:disabled) {
    background: #2d2d38;
    color: var(--color-accent);
}

.feed-retry-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e74c3c;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

.sync-error {
    text-align: center;
}

.sync-error h2 {
    margin-bottom: 16px;
}

.sync-error p {
    color: var(--color-light);
    margin-bottom: 24px;
    opacity: 0.8;
    color: #e74c3c;
}

/* Desktop optimizations for sync screen */
@media (min-width: 601px) {
    .sync-content {
        padding: 32px; /* Desktop: larger padding */
        margin: 24px; /* Desktop: larger margin */
    }
    
    .sync-header h2 {
        font-size: 20px; /* Desktop: larger font */
    }
    
    .failed-feeds-list {
        max-height: 200px; /* Desktop: larger height */
    }
    
    .sync-actions {
        flex-direction: row; /* Desktop: horizontal buttons */
    }
    
    .retry-button, .show-articles-button {
        width: auto; /* Desktop: auto width */
        min-width: 120px;
    }
}

/* feed-filter */
/* Feed Filter Panel */
.feed-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 100vh;
    background-color: var(--color-dark);
    border-right: 1px solid rgba(212, 207, 198, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .feed-filter-panel {
        width: 100%;
    }
}

/* Show feed filter panel when active */
.feed-filter-panel.active {
    transform: translateX(0);
}

/* Feed filter panel header */
.feed-filter-panel-header {
    height: 64px;
    padding: 0 var(--spacing-double);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    background-color: var(--color-dark);
}

.feed-filter-panel-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-light);
}

/* Feed list */
.feed-filter-panel .feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    gap: 0;
}

/* Feed item */
.feed-filter-panel .feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--color-light);
    width: 100%;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font: inherit;
    box-shadow: none;
    outline: none;
}

.feed-filter-panel .feed-item:active,
.feed-filter-panel .feed-item:focus {
    outline: 2px solid var(--color-accent);
}

.feed-filter-panel .feed-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.feed-filter-panel .feed-item.active {
    background-color: rgba(85, 67, 219, 0.1);
}

/* Feed icon */
.feed-filter-panel .feed-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--color-light);
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove background when favicon is present */
.feed-filter-panel .feed-icon:has(.feed-favicon) {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Feed favicon */
.feed-filter-panel .feed-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Feed info */
.feed-filter-panel .feed-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-filter-panel .feed-name {
    font-weight: 500;
    color: var(--color-light);
    font-size: 15px;
}

.feed-filter-panel .feed-meta {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.feed-filter-panel .feed-count {
    font-size: 13px;
    opacity: 0.7;
    color: var(--color-light);
}

.feed-filter-panel .feed-sync-time {
    font-size: 12px;
    opacity: 0.5;
    color: var(--color-light);
}

/* Overlay when feed filter panel is open */
.feed-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.feed-filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
} 

/* error message */
.feed-filter-panel .error-message {
  padding: var(--spacing-double);
  color: var(--color-light);
  opacity: 0.7;
  text-align: center;
  font-size: 14px;
} 

/* feed-management */


/* Feed Management Panel */
.feed-management-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feed-management-overlay.active {
    opacity: 1;
}

.feed-management-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-dark);
    border-left: 1px solid rgba(212, 207, 198, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 200;
    display: flex;
    flex-direction: column;
}

/* Desktop responsive */
@media (min-width: 768px) {
    .feed-management-panel {
        width: 500px;
        max-width: 50vw;
    }
}

.feed-management-panel.active {
    transform: translateX(0);
}

.feed-management-panel-header {
    height: 64px;
    padding: 0 var(--spacing-double);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
}

.feed-management-panel-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-light);
}

.feed-management-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-double);
    background: var(--color-dark);
}

.feed-management-content .feed-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-base);
}

.feed-management-content .feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-base) var(--spacing-double);
    border-radius: 8px;
    transition: background-color 0.2s;
    cursor: default;
    background: none;
}

.feed-management-content .feed-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.feed-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-double);
    flex: 1;
    min-width: 0;
}

.feed-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--color-accent);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove background when favicon is present */
.feed-item-icon:has(.feed-favicon) {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Feed favicon */
.feed-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.feed-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.feed-item-title {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item-actions {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.feed-item-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feed-item-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    margin-top: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-healthy {
    background: var(--success);
}

.status-error {
    background: var(--error);
}

/* Feed Management Overlay */
.feed-management-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.feed-management-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Delete Button */
.action-button.danger {
    padding: 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button.danger:hover {
    background: var(--error-bg);
    color: var(--error);
}

.action-button.danger svg {
    width: 20px;
    height: 20px;
    color: var(--color-danger);
}

/* Remove toggle switch styles */
.toggle-switch,
.toggle-switch input,
.toggle-slider,
.toggle-slider:before,
input:checked + .toggle-slider,
input:checked + .toggle-slider:before {
    display: none;
} 

/* bottom-sheet */
/* Bottom Context Menu */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-sheet-height);
    background-color: transparent;
    transform: translateY(100%);
    transition: transform 0.3s var(--transition-spring);
    z-index: 1000;
}

/* Bottom sheet background that spans full width */
.bottom-sheet::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--color-surface);
    z-index: -1;
}

/* Bottom sheet content container */
.bottom-sheet > div {
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-double);
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
}

.action-button:hover {
    background-color: rgba(212, 207, 198, 0.1);
}

.action-button:active {
    transform: scale(0.95);
}

.action-button svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.action-button:hover svg {
    opacity: 1;
}

.selected-count {
    font-size: 14px;
    opacity: 0.7;
}


/* settings-menu */
/* Settings Menu Component */
.settings-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-menu-overlay.active {
    opacity: 1;
}

.settings-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-dark);
    border-left: 1px solid rgba(212, 207, 198, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.settings-menu.active {
    transform: translateX(0);
}

.settings-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-double);
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
}

.settings-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-light);
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    padding: 0;
}

.settings-menu-content {
    flex: 1;
    padding: var(--spacing-base) 0;
    overflow-y: auto;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    width: 100%;
    padding: calc(var(--spacing-base) * 1.5) var(--spacing-double);
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.settings-menu-item:hover {
    background: rgba(212, 207, 198, 0.1);
}

.settings-menu-item svg {
    flex-shrink: 0;
    color: var(--color-light);
}

.settings-menu-item-danger {
    color: var(--color-danger);
}

.settings-menu-item-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.settings-menu-item-danger svg {
    color: var(--color-danger);
}

.settings-section {
    margin-bottom: var(--spacing-double);
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(212, 207, 198, 0.6);
    margin: 0 0 var(--spacing-base) 0;
    padding: 0 var(--spacing-double);
}

.settings-menu-divider {
    height: 1px;
    background: rgba(212, 207, 198, 0.1);
    margin: var(--spacing-base) 0;
}

/* Desktop responsive */
@media (min-width: 768px) {
    .settings-menu {
        width: 400px;
        max-width: 40vw;
    }
}

