/* ===========================
   맞춤법·띄어쓰기 바로가기 스타일
   =========================== */

/* 페이지 컨테이너 가운데 정렬 */
.page-container {
    padding: 20px;
}

.page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 입력 섹션 */
.input-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.input-header h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-header h2 i {
    color: var(--primary-color);
}

.char-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.char-count span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.text-input {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.7;
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
    transition: var(--transition);
    box-sizing: border-box;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.text-input::placeholder {
    color: var(--text-muted);
    line-height: 1.7;
}

.input-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn-clear,
.btn-paste {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-paste:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 검사 섹션 */
.check-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.check-section h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-section h2 i {
    color: var(--primary-color);
}

.section-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.check-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.btn-check {
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-check.btn-primary {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.btn-check.btn-primary:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.btn-check.btn-secondary {
    border-color: #03c75a;
    background: rgba(3, 199, 90, 0.05);
}

.btn-check.btn-secondary:hover {
    background: rgba(3, 199, 90, 0.1);
    border-color: #03c75a;
}

.btn-check i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-check.btn-secondary i {
    color: #03c75a;
}

.btn-content {
    flex: 1;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.btn-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 팁 섹션 */
.tips-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.tips-section h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section h2 i {
    color: var(--primary-color);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.tip-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content strong {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.tip-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 토스트 메시지 */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-message i {
    font-size: 1.2rem;
}

.toast-message span {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 반응형 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .input-section,
    .check-section,
    .tips-section {
        padding: 20px;
    }
    
    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .check-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-check {
        padding: 20px;
    }
    
    .input-actions {
        flex-direction: column;
    }
    
    .btn-clear,
    .btn-paste {
        width: 100%;
        justify-content: center;
    }
    
    .toast-message {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* ===== FAQ/QNA 섹션 (페이지 하단) ===== */
.faq-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.faq-title i {
    color: #2563eb;
    font-size: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-item.active,
.faq-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    background: #f8fafc;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    line-height: 1.6;
    width: 100%;
}

.faq-question span:not(.faq-icon) {
    flex: 1;
    word-break: keep-all;
}

.faq-icon {
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-arrow {
    margin-left: auto;
    color: #64748b;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-item .faq-answer {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 24px 20px;
        margin: 24px 0 0;
    }
    
    .faq-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .faq-item {
        padding: 16px 18px;
    }
    
    .faq-question {
        font-size: 1rem;
        gap: 10px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .faq-item .faq-answer {
        font-size: 0.95rem;
    }
}

