/* Reader Controls Floating Panel */
.reader-controls {
    display: none;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 16px 18px;
    width: 220px;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    gap: 16px;
}

.reader-controls.active {
    display: flex;
}

.reader-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.reader-controls-header button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.reader-controls-header button:hover {
    color: var(--text-main);
}

.font-slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
    align-items: center;
    gap: 8px;
}

.font-slider-header i {
    font-size: 1rem;
}

#font-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--border-subtle);
    cursor: pointer;
}

#font-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#font-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid white;
}

/* Floating Action Buttons + Panel */
.focus-fab-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    align-items: flex-end;
}

.focus-mode .focus-fab-container {
    display: flex;
}

.focus-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.focus-fab#reader-controls-toggle {
    width: 52px;
    height: 52px;
    background: var(--bg-panel);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.focus-fab#reader-controls-toggle.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.focus-fab:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.focus-fab:active {
    transform: translateY(0);
}

.focus-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel-hover);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-mode .focus-toggle {
    display: none;
}

.focus-toggle:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Font Size Classes */
.post-content-clean.font-small {
    font-size: 0.95rem;
}

.post-content-clean.font-medium {
    font-size: 1.1rem;
}

.post-content-clean.font-large {
    font-size: 1.25rem;
}

.post-content-clean.font-xlarge {
    font-size: 1.4rem;
}

/* Line Height Classes */
/* Better Focus Toggle Icon */
.focus-toggle i {
    font-size: 1.3rem;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-gemini);
    transition: width 0.1s ease-out;
    border-radius: 0 4px 4px 0;
}

/* Only show on post pages */
body:not(.post-page) .reading-progress-bar {
    display: none;
}
