@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-color: #eef2f6;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --accent-color: #667eea;
    --accent-hover: #5a67d8;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Typography refinements */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.025em;
}

code,
pre {
    font-family: 'JetBrains Mono', monospace;
}

/* Main Skeuomorphic Card */
.skeuo-card {
    background: var(--bg-color);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
}

/* Pressed/Inset State (for active toggles or inputs) */
.skeuo-inset {
    background: var(--bg-color);
    box-shadow:
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    border-radius: 16px;
    border: none;
}

/* Button Styles */
.skeuo-btn {
    background: linear-gradient(145deg, #ffffff, #e6e9ed);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    border-radius: 14px;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.skeuo-btn:hover {
    transform: translateY(-2px);
    color: var(--accent-color);
}

.skeuo-btn:active,
.skeuo-btn.active {
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    transform: translateY(1px);
    color: var(--accent-color);
}

.skeuo-btn-primary {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
}

.skeuo-btn-primary:hover {
    color: white;
    filter: brightness(1.1);
}

/* Toggle Switch */
.skeuo-toggle {
    width: 50px;
    height: 28px;
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    background: var(--bg-color);
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    transition: all 0.3s ease;
}

.skeuo-toggle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #e6e9ed);
    box-shadow: 2px 2px 5px var(--shadow-dark);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.skeuo-toggle.active {
    background: var(--bg-color);
    /* Keep bg styling, we change the indicator or shadow mainly */
}

.skeuo-toggle.active::after {
    left: 26px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    box-shadow:
        2px 2px 8px rgba(102, 126, 234, 0.4),
        -1px -1px 4px rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Article Content Styling */
.prose img {
    border-radius: 12px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    color: var(--text-secondary);
    background: rgba(102, 126, 234, 0.05);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 0 8px 8px 0;
}