/* OpenAI Codex Writing Automation Guide CSS */

/* 기본 레이아웃 */
body { 
    font-family: 'Noto Sans KR', Arial, sans-serif; 
    line-height: 1.8; 
    margin: 0; 
    padding: 20px; 
    color: #333; 
    background-color: #fafafa;
}

.container { 
    max-width: 800px; 
    margin: 0 auto; 
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 제목 스타일 */
h1 { 
    color: #2c3e50; 
    font-size: 2.2em; 
    margin-bottom: 20px; 
    border-left: 4px solid #3498db; 
    padding-left: 15px;
    line-height: 1.3;
}

h2 { 
    color: #34495e; 
    font-size: 1.6em; 
    margin-top: 40px; 
    margin-bottom: 15px; 
}

/* 서론 스타일 */
.intro { 
    font-size: 1.1em; 
    margin-bottom: 30px; 
    padding: 25px; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

.intro p {
    margin-bottom: 15px;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* 목차 스타일 */
.toc { 
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%); 
    padding: 30px; 
    border-radius: 12px; 
    margin: 30px 0;
    border: 1px solid #bdc3c7;
}

.toc h2 { 
    margin-top: 0; 
    color: #2980b9;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.toc ol { 
    padding-left: 25px; 
    counter-reset: section;
}

.toc li { 
    margin: 12px 0; 
    counter-increment: section;
    position: relative;
}

.toc a { 
    color: #2980b9; 
    text-decoration: none; 
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc a:hover { 
    text-decoration: underline; 
    color: #1abc9c; 
}

/* 하이라이트 요소 */
.highlight { 
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
    padding: 3px 8px; 
    border-radius: 5px;
    font-weight: 500;
}

/* 복사 버튼 */
.copy-btn { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 12px; 
    float: right; 
    margin-top: -10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.copy-btn:hover { 
    background: linear-gradient(135deg, #2980b9 0%, #1abc9c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* 코드 박스 */
.command-box { 
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); 
    color: #ecf0f1; 
    padding: 20px; 
    border-radius: 8px; 
    margin: 20px 0; 
    position: relative; 
    font-family: 'Courier New', monospace;
    border-left: 4px solid #3498db;
    box-shadow: 0 3px 15px rgba(44, 62, 80, 0.3);
}

/* 기능 카드 스타일 */
.codex-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.codex-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.codex-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.codex-feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.codex-feature-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.codex-feature-desc {
    color: #5a6c7d;
    line-height: 1.6;
}

/* FAQ 섹션 스타일 */
.codex-faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.codex-faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.codex-faq-question {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: background 0.3s ease;
}

.codex-faq-question:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1abc9c 100%);
}

.codex-faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 1.5em;
}

.codex-faq-answer {
    padding: 20px;
    background: white;
    line-height: 1.7;
}

.codex-faq-answer p {
    margin-bottom: 15px;
}

.codex-faq-answer p:last-child {
    margin-bottom: 0;
}

/* 요약 섹션 */
.codex-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.codex-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.codex-summary-card.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.codex-summary-card.orange {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.codex-summary-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.codex-summary-title::before {
    content: "⭐";
    margin-right: 10px;
    font-size: 1.2em;
}

.codex-summary-list {
    list-style: none;
    padding-left: 0;
}

.codex-summary-list li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.codex-summary-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

.codex-summary-card.orange .codex-summary-list li::before {
    color: #2c3e50;
}

/* 최종 메시지 박스 */
.codex-final-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.codex-final-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.codex-final-text {
    font-size: 1.1em;
    line-height: 1.8;
    opacity: 0.95;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .codex-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .codex-summary-grid {
        grid-template-columns: 1fr;
    }
}
