/**
 * World Clock Dashboard App Styles
 *
 * A comprehensive world clock with digital/analog modes,
 * meeting finder, and time comparison features.
 */

/* ========================================
   Glassmorphism Variables
   ======================================== */

.world-clock,
.wc-container {
    /* Light mode: solid backgrounds for proper visibility */
    --wc-glass-bg: #ffffff;
    --wc-glass-bg-subtle: #f8fafc;
    --wc-glass-border: #e2e8f0;
    --wc-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --wc-gradient-primary-hover: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    --wc-gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --wc-gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --wc-gradient-night: linear-gradient(135deg, #1e3a5f 0%, #2d1b4e 100%);
    --wc-gradient-day: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --wc-shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --wc-shadow-glass-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    --wc-shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Dark theme support */
[data-theme="dark"] .world-clock,
[data-theme="dark"] .wc-container {
    --wc-glass-bg: #1e293b;
    --wc-glass-bg-subtle: #334155;
    --wc-glass-border: rgba(255, 255, 255, 0.15);
    --wc-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --wc-shadow-glass-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .world-clock,
    :root:not([data-theme]) .wc-container {
        --wc-glass-bg: #1e293b;
        --wc-glass-bg-subtle: #334155;
        --wc-glass-border: rgba(255, 255, 255, 0.15);
        --wc-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        --wc-shadow-glass-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    }
}

/* ========================================
   App Container
   ======================================== */

.wc-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   World Clock Main Container
   ======================================== */

.world-clock {
    background: var(--wc-glass-bg);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--wc-shadow-glass);
    padding: var(--space-6);
    transition: box-shadow var(--transition-base);
}

.world-clock:hover {
    box-shadow: var(--wc-shadow-glass-hover);
}

/* ========================================
   Toolbar
   ======================================== */

.wc-toolbar {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.wc-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.wc-toolbar-row--primary {
    margin-bottom: var(--space-3);
}

.wc-toolbar-row--secondary {
    opacity: 0.9;
}

/* ========================================
   Buttons
   ======================================== */

.wc-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.wc-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wc-btn-primary {
    background: var(--wc-gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wc-btn-primary:hover {
    background: var(--wc-gradient-primary-hover);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.wc-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.wc-btn-primary:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.wc-btn-secondary {
    background: var(--wc-glass-bg-subtle);
    color: var(--color-text);
    border: 1px solid var(--wc-glass-border);
}

.wc-btn-secondary:hover {
    background: var(--wc-glass-bg);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.wc-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.wc-btn-danger {
    color: #c53030; /* Darker red for better contrast ratio (4.5:1+) */
}

.wc-btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.wc-btn-link {
    background: transparent;
    border: none;
    color: #4f46e5;
    padding: var(--space-2);
}

.wc-btn-link:hover {
    text-decoration: underline;
    color: #4338ca;
}

.wc-btn-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
    border-radius: var(--radius-sm);
}

.wc-btn-sm {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
}

/* Dark mode button colors */
[data-theme="dark"] .wc-btn-link {
    color: #a5b4fc;
}

[data-theme="dark"] .wc-btn-link:hover {
    color: #c7d2fe;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .wc-btn-link {
        color: #a5b4fc;
    }

    :root:not([data-theme]) .wc-btn-link:hover {
        color: #c7d2fe;
    }
}

/* ========================================
   Toggle Group (Digital/Analog, 12h/24h)
   ======================================== */

.wc-toggle-group {
    display: inline-flex;
    background: var(--wc-glass-bg-subtle);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-1);
    gap: var(--space-1);
}

.wc-toggle-btn {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.wc-toggle-btn:hover {
    color: var(--color-text);
    background: rgba(102, 126, 234, 0.1);
}

.wc-toggle-btn--active {
    background: var(--wc-gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wc-toggle-btn--active:hover {
    background: var(--wc-gradient-primary);
    color: white;
}

.wc-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* ========================================
   Presets Dropdown
   ======================================== */

.wc-presets-dropdown {
    position: relative;
    z-index: 10;
}

.wc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin-top: var(--space-1);
    padding: var(--space-2);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    list-style: none;
}

.wc-dropdown-menu[hidden] {
    display: none;
}

.wc-dropdown-menu button {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    font-family: inherit;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.wc-dropdown-menu button:hover {
    background: var(--color-bg-alt);
}

/* ========================================
   Time Slider Section
   ======================================== */

.wc-time-slider-section {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--wc-glass-bg-subtle);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-lg);
}

.wc-time-slider-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.wc-slider-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 600;
    background: var(--wc-glass-bg);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.wc-slider-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.wc-slider-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.wc-slider-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.wc-time-slider {
    width: 100%;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--wc-glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.wc-time-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--wc-gradient-primary);
    border-radius: var(--radius-full);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: transform var(--transition-fast);
}

.wc-time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.wc-time-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.wc-time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--wc-gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.wc-time-slider:focus {
    outline: none;
}

.wc-time-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.wc-slider-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    min-width: 120px;
    text-align: center;
}

/* ========================================
   Clock Cards Grid
   ======================================== */

.wc-clocks-section {
    margin-bottom: var(--space-6);
}

.wc-clocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-4);
}

.wc-clocks-grid[hidden] {
    display: none;
}

/* ========================================
   Clock Card
   ======================================== */

.wc-clock-card {
    position: relative;
    padding: var(--space-5);
    background: var(--wc-glass-bg);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--wc-shadow-glass);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: grab;
}

.wc-clock-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wc-shadow-glass-hover);
    border-color: rgba(102, 126, 234, 0.3);
}

.wc-clock-card.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.wc-clock-card.drag-over {
    border-color: var(--color-primary);
    background: rgba(102, 126, 234, 0.05);
}

/* Day/Night indicator bar */
.wc-daynight-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wc-gradient-day);
    transition: background var(--transition-base);
}

.wc-clock-card--night .wc-daynight-bar {
    background: var(--wc-gradient-night);
}

/* Card header with city name and actions */
.wc-clock-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    padding-top: var(--space-2);
}

.wc-clock-city {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}

.wc-clock-timezone {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: left;
}

.wc-clock-actions {
    display: flex;
    gap: var(--space-1);
}

.wc-clock-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wc-glass-bg-subtle);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    opacity: 0;
}

.wc-clock-card:hover .wc-clock-action-btn {
    opacity: 1;
}

.wc-clock-action-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.wc-clock-action-btn:focus {
    opacity: 1;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.wc-clock-action-btn--remove:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.wc-clock-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Digital Clock Display */
.wc-digital-display {
    margin: var(--space-4) 0;
}

.wc-time-display {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.wc-time-seconds {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-left: var(--space-1);
}

.wc-date-display {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

.wc-daynight-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.wc-daynight-icon {
    font-size: var(--font-size-base);
}

/* Analog Clock Display */
.wc-analog-display {
    margin: var(--space-4) auto;
    display: none;
}

.wc-clock-card--analog .wc-digital-display {
    display: none;
}

.wc-clock-card--analog .wc-analog-display {
    display: block;
}

.wc-analog-clock {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.wc-clock-face {
    fill: var(--wc-glass-bg-subtle);
    stroke: var(--wc-glass-border);
    stroke-width: 2;
}

.wc-clock-center {
    fill: var(--color-primary);
}

.wc-clock-tick {
    stroke: var(--color-text-muted);
    stroke-width: 1;
}

.wc-clock-tick--major {
    stroke: var(--color-text);
    stroke-width: 2;
}

.wc-hour-hand {
    stroke: var(--color-text);
    stroke-width: 4;
    stroke-linecap: round;
}

.wc-minute-hand {
    stroke: var(--color-text);
    stroke-width: 3;
    stroke-linecap: round;
}

.wc-second-hand {
    stroke: #ef4444;
    stroke-width: 1.5;
    stroke-linecap: round;
}

/* ========================================
   Empty State
   ======================================== */

.wc-empty-state {
    padding: var(--space-8);
    text-align: center;
}

.wc-empty-state[hidden] {
    display: none;
}

.wc-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.wc-empty-state .wc-empty-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.wc-empty-state p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

/* ========================================
   Meeting Finder Section
   ======================================== */

.wc-meeting-results {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    background: var(--wc-glass-bg-subtle);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-lg);
}

.wc-meeting-results[hidden] {
    display: none;
}

.wc-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.wc-meeting-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.wc-meeting-timeline {
    margin-bottom: var(--space-4);
    overflow-x: auto;
}

.wc-timeline-row {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-2);
}

.wc-timeline-label {
    width: 120px;
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-timeline-bar {
    display: flex;
    flex: 1;
    height: 24px;
    background: var(--wc-glass-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.wc-timeline-block {
    flex: 1;
    min-width: 8px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background var(--transition-fast);
}

.wc-timeline-block:last-child {
    border-right: none;
}

.wc-timeline-block--work {
    background: rgba(102, 126, 234, 0.25);
}

.wc-timeline-block--overlap {
    background: var(--wc-gradient-success);
}

.wc-meeting-summary {
    padding: var(--space-4);
    background: var(--wc-glass-bg);
    border-radius: var(--radius-md);
    text-align: center;
}

.wc-meeting-summary--success {
    background: rgba(17, 153, 142, 0.1);
    border: 1px solid rgba(17, 153, 142, 0.3);
}

.wc-meeting-times {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.wc-meeting-time-badge {
    padding: var(--space-1) var(--space-3);
    background: var(--wc-gradient-success);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.wc-no-overlap {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ========================================
   Modal Styles
   ======================================== */

.wc-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.wc-modal[hidden] {
    display: none;
}

.wc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wc-modal-content {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.wc-modal-content--small {
    max-width: 400px;
}

.wc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.wc-modal-header h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
}

.wc-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}

.wc-modal-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.wc-modal-close:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.wc-modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
}

.wc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
}

/* ========================================
   Search Input
   ======================================== */

.wc-search-wrapper {
    margin-bottom: var(--space-4);
}

.wc-input {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background: var(--wc-glass-bg-subtle);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.wc-input:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.wc-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.wc-input::placeholder {
    color: var(--color-text-muted);
}

.wc-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

/* ========================================
   Search Results
   ======================================== */

.wc-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.wc-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.wc-search-result:last-child {
    border-bottom: none;
}

.wc-search-result:hover,
.wc-search-result:focus {
    background: var(--color-bg-alt);
    outline: none;
}

.wc-search-result--selected {
    background: rgba(102, 126, 234, 0.1);
}

.wc-search-city {
    font-weight: 500;
    color: var(--color-text);
}

.wc-search-offset {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.wc-search-empty {
    padding: var(--space-4);
    text-align: center;
    color: var(--color-text-muted);
}

.wc-detect-location {
    margin-top: var(--space-4);
    text-align: center;
}

/* ========================================
   Help Panel
   ======================================== */

.help-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.help-panel[hidden] {
    display: none;
}

.help-content {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg-card);
}

.help-header h2 {
    font-size: var(--font-size-lg);
    margin: 0;
}

.help-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}

.help-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.help-close:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.help-body {
    padding: var(--space-6);
}

.help-section {
    margin-bottom: var(--space-6);
}

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

.help-section h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.help-steps {
    margin: 0;
    padding-left: var(--space-5);
}

.help-steps li {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.help-features {
    margin: 0;
    padding-left: var(--space-5);
}

.help-features li {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.help-shortcuts {
    display: grid;
    gap: var(--space-3);
    margin: 0;
}

.help-shortcuts dt {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-1);
}

.help-shortcuts dd {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.help-shortcuts kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 var(--space-2);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Use Cases Section
   ======================================== */

.use-cases {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.use-cases h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

.use-cases-intro {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.use-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-4);
}

.use-cases-list li {
    padding: var(--space-4);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.use-cases-list strong {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text);
    font-weight: 600;
}

.use-cases-list p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* ========================================
   Toast Notification
   ======================================== */

.wc-toast {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--space-3) var(--space-5);
    background: var(--wc-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--wc-glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--wc-shadow-glass);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wc-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wc-toast--success {
    background: var(--wc-gradient-success);
    color: white;
    border-color: transparent;
}

.wc-toast--error {
    background: var(--wc-gradient-danger);
    color: white;
    border-color: transparent;
}

/* ========================================
   Nav Actions
   ======================================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.btn-icon:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .wc-container {
        max-width: 100%;
    }

    .wc-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-toggle-group {
        justify-content: center;
    }

    .wc-clocks-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .wc-time-display {
        font-size: 2rem;
    }

    .wc-time-slider-wrapper {
        flex-wrap: wrap;
    }

    .wc-slider-container {
        flex-basis: 100%;
        order: -1;
        margin-bottom: var(--space-3);
    }

    .wc-timeline-label {
        width: 80px;
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .world-clock {
        padding: var(--space-4);
    }

    .wc-clocks-grid {
        grid-template-columns: 1fr;
    }

    .wc-btn span {
        display: none;
    }

    .wc-btn svg {
        margin: 0;
    }

    .wc-toolbar-row--secondary .wc-btn span {
        display: inline;
    }
}

/* ========================================
   RTL Support
   ======================================== */

[dir="rtl"] .wc-clock-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .wc-clock-city,
[dir="rtl"] .wc-clock-timezone {
    text-align: right;
}

[dir="rtl"] .wc-timeline-label {
    text-align: right;
}

[dir="rtl"] .use-cases-list li {
    border-left: none;
    border-right: 3px solid var(--color-primary);
}

[dir="rtl"] .wc-dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .wc-dropdown-menu button {
    text-align: right;
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .wc-clock-card,
    .wc-btn,
    .wc-toast,
    .wc-time-slider::-webkit-slider-thumb {
        transition: none;
    }

    .wc-clock-card:hover,
    .wc-btn-primary:hover {
        transform: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .help-panel,
    .wc-modal,
    .nav-actions,
    .wc-toolbar,
    .wc-time-slider-section,
    .wc-clock-actions,
    .wc-toast {
        display: none;
    }

    .world-clock {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .wc-clock-card {
        break-inside: avoid;
    }
}
