/* ============================
   비밀번호 생성기 전용 스타일
   ============================ */

/* 섹션 전체 여유 */
.password-card {
    padding: 8px 4px 16px;
}

/* 상단 요약 영역 (비밀번호 영역 전체 박스) */
.pw-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    background: #f3f4f6;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.pw-summary-main {
    flex: 1 1 260px;
}

/* 라벨 공통 */
.pw-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* ============================
   출력 인풋 + 생성/복사 버튼
   ============================ */

/* 기본: 모바일 기준 – 인풋 위, 버튼 아래 */
.pw-output-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

/* 인풋 스타일 */
#pw-output {
    flex: 1;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    background: #ffffff;
}

#pw-output::placeholder {
    color: #9ca3af;
}

/* 생성/복사 버튼 묶음 */
.pw-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: 100%;
}

/* 버튼 크기 */
.pw-actions button {
    padding: 8px 0;
    font-size: 14px;
}

/* 모바일: 두 버튼이 가로로 1:1 꽉 차게 */
@media (max-width: 767px) {
    .pw-actions button {
        flex: 1 1 0;
    }
}

/* 데스크톱: 인풋 오른쪽에 놓이고, 버튼 폭은 고정 */
@media (min-width: 768px) {
    .pw-output-row {
        flex-direction: row;   /* 인풋 + 버튼 한 줄 */
        align-items: center;
    }

    .pw-actions {
        width: auto;
    }

    .pw-actions button {
        width: 88px;
        flex: 0 0 auto;
    }
}

/* 강도 표시 */
.pw-strength-inline {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.pw-strength-value {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 700;
}

/* 강도 색상 */
.pw-strength-weak {
    color: #e11d48;
}
.pw-strength-medium {
    color: #ea580c;
}
.pw-strength-strong {
    color: #16a34a;
}

/* ============================
   옵션 영역
   ============================ */

.pw-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pw-option-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 길이 입력 줄 */
.pw-length-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#pw-length {
    width: 80px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 14px;
}

.pw-length-hint {
    font-size: 12px;
    color: #6b7280;
}

/* ✅ 문자 옵션 박스 */
.pw-checkbox-group {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;

    display: grid;
    grid-template-columns: 1fr;  /* 기본: 모바일 1열 */
    gap: 6px 18px;
}

.pw-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* 데스크톱: 2열 배치 */
@media (min-width: 768px) {
    .pw-checkbox-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 모바일: 1열로 정렬 */
@media (max-width: 767px) {
    .pw-checkbox-group {
        flex-direction: column;
        gap: 4px;
    }

    .pw-checkbox-group label {
        flex: 1 1 auto;
    }
}

/* 마지막 옵션(헷갈리기 쉬운 문자 제외) 살짝 위 여백 */
.pw-option-row:last-of-type {
    margin-top: 4px;
}

/* 큰 화면에서 카드 폭 제한 */
@media (min-width: 900px) {
    .password-card {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* ============================
   설명 / FAQ (글자수 세기와 동일 톤)
   ============================ */

.info-section,
.faq-section {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 0 16px;
}

.info-section h2,
.faq-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-section p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
    font-size: 14px;
}

/* bullet 리스트 */
.info-list {
    margin: 8px 0 14px;
    padding-left: 18px;
    font-size: 14px;
    color: #444;
}

.info-list li {
    margin-bottom: 3px;
}

/* FAQ 리스트 */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 0;
}

/* FAQ 버튼 */
.faq-question {
    position: relative;
    width: 100%;
    background: #f9fafb;
    border: none;
    text-align: left;
    padding: 10px 12px 10px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    color: #111827;
    border-radius: 8px;
}

.faq-question::before {
    content: "▶";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #6b7280;
}

.faq-item.active .faq-question::before {
    content: "▼";
}

.faq-question:hover {
    background: #eef2ff;
}

.faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.faq-answer {
    display: none;
    padding: 6px 2px 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* footer 간격 조금 여유 */
.page-wrapper .footer-text {
    margin-top: 28px;
}

/* 모바일 설명/FAQ 폰트·여백 조정 */
@media (max-width: 600px) {
    .info-section,
    .faq-section {
        margin-top: 32px;
        padding: 0 12px;
    }

    .info-section h2,
    .faq-section h2 {
        font-size: 20px;
    }

    .faq-question {
        font-size: 14px;
        padding: 9px 10px 9px 28px;
    }

    .info-section p,
    .faq-answer,
    .info-list {
        font-size: 13px;
    }
}
