/* JIWON Connect 기본 스타일 */

:root {
    /* Light theme (default) */
    --bg-color: #F8FAFC;
    --terminal-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --text-color: #2A3042;
    --highlight-color: #4B6BFB;
    --accent-color: #0A66C2;
}

/* Dark theme */
.dark-theme {
    --bg-color: #1E293B;
    --terminal-bg: #0F172A;
    --border-color: #334155;
    --text-color: #E2E8F0;
    --highlight-color: #818CF8;
    --accent-color: #0D4F8C;
}

/* 글로벌 스타일 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* 컨테이너 스타일 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 터미널 윈도우 스타일 */
.terminal {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.terminal-buttons {
    display: flex;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #0A66C2; }

.terminal-title {
    color: var(--highlight-color);
    font-weight: bold;
}

/* 명령줄 스타일 */
.command-line {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 1.1rem;
}

.prompt {
    color: var(--highlight-color);
    margin-right: 10px;
}

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

.output {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* 버튼 스타일 */
.link-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(52, 211, 153, 0.2);
}

.link-button:hover {
    background-color: #084F93;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 102, 194, 0.3);
}

/* 애니메이션 스타일 */
.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.blink {
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to { visibility: hidden; }
}

/* 서비스 카드 스타일 */
.service-card {
    background-color: rgba(75, 107, 251, 0.05);
    border-left: 4px solid var(--highlight-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-name {
    color: var(--highlight-color);
}

.feature-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 6px;
    font-weight: 500;
}

/* 프로필 스타일 */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    filter: grayscale(100%);
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .terminal {
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* 테마 토글 버튼 스타일 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background-color: var(--accent-color);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Chat Interface Styles */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 15px;
}

.message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.2rem;
}

.user-message .message-icon {
    order: 2;
    margin-right: 0;
    margin-left: 10px;
}

.message-content {
    background-color: var(--terminal-bg);
    border-radius: 10px;
    padding: 10px 15px;
    max-width: 70%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.user-message .message-content {
    background-color: var(--highlight-color);
    color: white;
}

.chat-input-container {
    display: flex;
    flex-direction: column;
    padding: 0 15px 15px;
}

.remaining-questions {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: right;
}

.chat-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.chat-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    background-color: var(--terminal-bg);
    color: var(--text-color);
    font-family: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
}

.chat-form button {
    background-color: var(--highlight-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-form button:hover {
    background-color: var(--accent-color);
}

.reset-button {
    background-color: var(--border-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.reset-button:hover {
    background-color: #ddd;
}

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