/* DoobooStore Global Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    /*--background-color: #ffffff;*/
    --background-color: #000;
    --surface-color: #f8fafc;
    --text-primary: white;
    /*--text-primary: #1f2937;*/
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset and base styles */
* {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /*scroll-behavior: smooth;*/
}

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

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Helvetica Neue', 
                 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: #9ca3af33 #1a1a1a;
    min-height: 100vh;
}

/** {*/

/*}*/

/*body {*/
/*    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;*/
/*}*/




/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

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

::-webkit-scrollbar-thumb {
    background: #9ca3af33;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af66;
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}
/* Firefox specific scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af33 #1a1a1a;
}

/* Element resets */
button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

form {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    color: inherit;
    background: none;
    box-sizing: border-box;
}

input, textarea, select {
    font: inherit;
    color: inherit;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

details {
    all: unset;
    display: block;
    list-style: none;
}

summary {
    all: unset;
    display: block;
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    fieldset {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.text-secondary {
    color: var(--text-secondary);
}

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

/* Focus management for better accessibility */
.focus-trap {
    outline: none;
}

/* Smooth transitions for better UX */
/** {*/
/*    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;*/
/*    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);*/
/*    transition-duration: 150ms;*/
/*}*/


/* Prism.js 커스텀 스타일 */
pre[class*="language-"] {
    margin: 0;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
}

code[class*="language-"] {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

/* 코드 블록 컨테이너 스타일 개선 */
.code-example pre {
    margin-bottom: 1rem;
}

.code-example pre:last-child {
    margin-bottom: 0;
}

/* 인라인 코드 스타일 */
:not(pre) > code {
    background: var(--border-light);
    color: var(--text-primary);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}
