/* CMYK Color Picker - Styles
   Fonts: Inter (UI) + JetBrains Mono (values)
   Features: Light/Dark theme, Accessibility, Responsive
*/

/* ============================================
   CSS Variables - Theme System
   ============================================ */

:root {
    /* Font families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    /* Transitions - GSAP handles animations, but we need some CSS for hover states */
    --transition-fast: 0.15s ease;
}

/* Dark Theme (default) */
[data-theme="dark"] {
    --bg-body: #0d1117;
    --bg-primary: #161b22;
    --bg-secondary: #21262d;
    --bg-tertiary: #30363d;
    --bg-card: #161b22;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --border-color: #30363d;
    --border-focus: #58a6ff;
    
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --accent-subtle: rgba(88, 166, 255, 0.15);
    
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Light Theme */
[data-theme="light"] {
    --bg-body: #f6f8fa;
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eaeef2;
    --bg-card: #ffffff;
    
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8c959f;
    
    --border-color: #d0d7de;
    --border-focus: #0969da;
    
    --accent: #0969da;
    --accent-hover: #0550ae;
    --accent-subtle: rgba(9, 105, 218, 0.1);
    
    --success: #1a7f37;
    --warning: #9a6700;
    --danger: #cf222e;
    
    --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(31, 35, 40, 0.1);
    --shadow-lg: 0 8px 24px rgba(31, 35, 40, 0.12);
}

/* ============================================
   Base Styles
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 500;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-md);
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* ============================================
   Header
   ============================================ */

.header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    position: relative;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header h1 i {
    color: var(--accent);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.theme-toggle:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Show/hide sun/moon icons based on theme */
[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: inline-block; }

/* ============================================
   Tab Navigation
   ============================================ */

.tab-nav {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-sm);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-sm) - 2px);
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.tab-btn.active {
    color: var(--accent-color);
    background: var(--bg-tertiary);
}

.tab-btn.active::after {
    background: var(--accent-color);
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================
   Main Picker Wrapper
   ============================================ */

.picker-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Picker Section (Left)
   ============================================ */

.picker-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Color Square */
.color-square-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: crosshair;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.color-square-container:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

#colorSquare {
    display: block;
    width: 100%;
    height: 100%;
}

.square-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    top: 50%;
    left: 50%;
}

.handle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Strip Containers */
.strip-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.strip-container label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* RGB Reference Section */
.rgb-reference {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.rgb-reference > label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.rgb-reference > label i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.rgb-square-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    opacity: 0.8;
}

#rgbSquare {
    display: block;
    width: 100%;
    height: 100%;
}

.rgb-crosshair {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
    top: 50%;
    left: 50%;
}

.strip-container label i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.strip-wrapper {
    position: relative;
    width: 300px;
    height: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.strip-wrapper:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.strip-wrapper canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.strip-handle {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 28px;
    background: white;
    border: 2px solid var(--text-primary);
    border-radius: 3px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    left: 0;
}

.strip-value {
    min-width: 45px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* ============================================
   Info Section (Right)
   ============================================ */

.info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Color Preview */
.preview-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.color-preview {
    width: 100%;
    height: 90px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.ink-coverage {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.ink-coverage i {
    color: var(--accent);
}

.ink-coverage strong {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.ink-coverage.warning {
    background: rgba(210, 153, 34, 0.15);
}

.ink-coverage.warning,
.ink-coverage.warning i,
.ink-coverage.warning strong {
    color: var(--warning);
}

.ink-coverage.danger {
    background: rgba(248, 81, 73, 0.15);
}

.ink-coverage.danger,
.ink-coverage.danger i,
.ink-coverage.danger strong {
    color: var(--danger);
}

/* Values Groups (Fieldsets) */
.values-group {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-color);
}

.values-group legend {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0 var(--space-xs);
}

.values-group legend i {
    color: var(--accent);
    font-size: 0.8rem;
}

.value-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.value-row:first-of-type {
    margin-top: var(--space-md);
}

.value-row label {
    min-width: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.value-row input[type="number"],
.value-row input[type="text"] {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.value-row input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.value-row input[readonly] {
    opacity: 0.7;
    cursor: default;
}

.value-row .unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 20px;
}

/* Hex Group */
.hex-group .hex-row {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.hex-group input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Copy Buttons */
.copy-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

.copy-btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.copy-btn.copied {
    background: var(--success);
}

.copy-actions {
    display: flex;
    gap: var(--space-sm);
}

.copy-btn-full {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
}

.copy-btn-full:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.copy-btn-full:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.copy-btn-full.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ============================================
   Swatches Section
   ============================================ */

.swatches-section {
    margin-top: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.swatches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.swatches-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.swatches-header h2 i {
    color: var(--accent);
}

.save-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-primary);
}

.save-btn:hover {
    background: var(--accent-hover);
}

.save-btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    min-height: 60px;
}

.swatch {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.swatch:hover {
    border-color: var(--accent);
}

.swatch:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.swatch .delete-swatch {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.swatch:hover .delete-swatch {
    display: flex;
}

.swatch-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: center;
    border: 1px dashed var(--border-color);
}

/* ============================================
   About Section (SEO Content)
   ============================================ */

.about-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.about-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.about-section h2 i {
    color: var(--accent);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.about-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.about-card h3 i {
    color: var(--accent);
    font-size: 0.9rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-card strong {
    color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    margin-top: var(--space-2xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand i {
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-links a:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.footer-links span {
    color: var(--text-muted);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: var(--space-sm);
}

.footer-copy i {
    color: var(--danger);
}

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

@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }

    .header-top {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .theme-toggle {
        position: static;
        transform: none;
    }

    .picker-wrapper {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .color-square-container {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .strip-container {
        flex-wrap: wrap;
    }

    .strip-container label {
        min-width: 100%;
        margin-bottom: var(--space-xs);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .copy-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4rem;
    }

    .swatches-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ============================================
   Focus Visible (Modern Accessibility)
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

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

@media print {
    .theme-toggle,
    .copy-btn,
    .copy-btn-full,
    .save-btn,
    .swatches-section,
    .footer-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .picker-wrapper,
    .about-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ============================================
   Palette Generator
   ============================================ */

.palette-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.palette-current {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.palette-current h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 120px;
}

.palette-current h3 i {
    color: var(--accent-color);
}

.palette-base-color {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.palette-base-values {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.palette-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.palette-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.palette-section h3 i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.palette-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: calc(-1 * var(--space-xs));
}

.harmony-select {
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.harmony-select:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.generate-btn:hover {
    opacity: 0.9;
}

.generate-btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.reroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: #2563eb;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--space-md);
}

.reroll-btn:hover {
    opacity: 0.9;
}

.reroll-btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.reroll-btn i {
    font-size: 1rem;
}

.palette-colors {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.palette-color-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    min-width: 100px;
}

.palette-color-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.palette-color-card:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.palette-color-swatch {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.palette-color-values {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.palette-color-hex {
    font-weight: 500;
    color: var(--text-primary);
}

/* Palette empty state */
.palette-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-lg);
    text-align: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

