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

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS 변수 - 라이트 모드 (기본) */
:root {
    --bg-primary: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-accent: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);

    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;

    --gold-primary: #d4af37;
    --gold-secondary: #DAA520;
    --gold-tertiary: #B8860B;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #DAA520 50%, #B8860B 100%);

    --border-color: #f0e6d2;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* 다크 모드 */
body.dark-mode {
    --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    --bg-secondary: rgba(40, 40, 40, 0.95);
    --bg-accent: linear-gradient(135deg, #2a2416 0%, #2d2d2d 100%);

    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    --border-color: #3a3a3a;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 60px 20px;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: var(--text-primary);
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
    font-weight: 500;
}

/* Main */
main {
    margin: 40px 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-contact a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--gold-secondary);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 8px;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--gold-secondary);
}

/* 버튼 공통 스타일 */
button, .btn {
    background: var(--gold-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active, .btn:active {
    transform: translateY(0);
}

button:disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 다크모드 토글 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.theme-toggle button:hover {
    transform: scale(1.1);
}

body:not(.dark-mode) .icon-dark {
    display: none;
}

body.dark-mode .icon-light {
    display: none;
}

/* 언어 전환 */
.lang-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.lang-toggle button {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.lang-toggle button:hover {
    transform: scale(1.05);
}

body[data-lang="ko"] .lang-en,
body[data-lang="en"] .lang-ko {
    display: none;
}

/* 카드 스타일 */
.card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 입력 필드 */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* 드래그 앤 드롭 영역 */
.dropzone {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover, .dropzone.active {
    border-color: var(--gold-primary);
    background: var(--bg-accent);
}

/* 반응형 */
@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }

    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .theme-toggle, .lang-toggle {
        right: 10px;
    }

    .theme-toggle {
        top: 10px;
    }

    .lang-toggle {
        top: 70px;
    }
}
