/* 전역 스타일 */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --bg-color: #ffffff;
    --accent-color: #e74c3c;
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    --secondary-color: #2c2c2c;
    --text-color: #f0f0f0;
    --bg-color: #1a1a1a;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 네비게이션 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* 히어로 섹션 */
.hero-section {
    text-align: center;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #888;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* 콘텐츠 섹션 공통 */
.content-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 업로드 컨테이너 */
.upload-container {
    background-color: var(--secondary-color);
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-container:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

#image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
}

/* 정보 그리드 */
.info-bg {
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 폼 스타일 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

button[type="submit"] {
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
}

/* 다크 모드 버튼 */
#theme-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}
