/* assets/css/style.css 전체 내용 */

/* 기본 리셋 */
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f9f9f9; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

/* 레이아웃 */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.page-main { padding: 20px; min-height: 80vh; }

/* 헤더 */
.site-header { background: #fff; border-bottom: 1px solid #eee; padding: 10px 0; position: sticky; top: 0; z-index: 1000; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }

/* [수정됨] 로고 이미지 스타일 */
.logo { display: flex; align-items: center; }
.logo img {
    height: 50px; /* 로고 높이 고정 (헤더 크기에 맞춤) */
    width: auto;  /* 비율 유지 */
    display: block;
}
/* 모바일에서 로고가 너무 크면 조금 더 줄임 */
@media (max-width: 480px) {
    .logo img { height: 40px; }
}

/* 네비게이션 & 모바일 메뉴 */
.site-nav { display: flex; gap: 20px; }
.site-nav a { 
    font-size: 1rem; 
    color: #555; 
    text-decoration: none; 
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}
.site-nav a:hover { 
    color: #007bff; 
    text-decoration: none; 
    background-color: rgba(0, 123, 255, 0.05); 
}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background: #333; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid #ddd; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    .site-nav.active { display: flex; }
}

/* 카드 및 그리드 */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.card, .tool-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; transition: transform 0.2s, box-shadow 0.2s; display: block; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card-content h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card-content p { margin: 0; font-size: 0.9rem; color: #666; }

/* 폼 요소 */
.form-card { max-width: 500px; margin: 0 auto; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; margin-top: 5px; }
.form-group { margin-bottom: 15px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; text-align: center; transition: 0.2s; }
.btn-primary { background: #007bff; color: white; width: 100%; }
.btn-primary:hover { background: #0056b3; }
.btn-outline { background: #fff; border: 1px solid #ddd; color: #333; padding: 10px 20px; }

/* 광고 영역 */
.ad-area {
    width: 100%;
    margin: 20px 0;
    text-align: center;
    display: block;
    min-height: 250px;
}

/* 모바일에서 광고 영역 너무 크지 않게 조정 */
@media (max-width: 600px) {
    .ad-area {
        margin: 15px 0;
        min-height: 140px;  /* 필요하면 120~160 사이로 조절 */
    }
}

/* SEO 텍스트 영역 */
.seo-text {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #444;
    line-height: 1.7;
    font-size: 0.95rem;
}
.seo-text h3 { font-size: 1.2rem; color: #222; margin-bottom: 15px; margin-top: 30px; }
.seo-text p { margin-bottom: 15px; word-break: keep-all; }
.seo-text ul { padding-left: 20px; margin-bottom: 20px; }
.seo-text li { margin-bottom: 5px; }

/* 푸터 */
.site-footer { background: #fff; border-top: 1px solid #eee; padding: 30px 0; margin-top: 40px; text-align: center; font-size: 0.9rem; color: #888; }
.category-badge { background: #f0f0f0; color: #555; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; display: inline-block; }

/* 결과 페이지 하단 버튼 */
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}
.result-actions .btn {
    flex: 1;
    width: 100%;
    padding: 12px 0;
    white-space: nowrap;
    text-align: center;
}
@media (max-width: 400px) {
    .result-actions .btn {
        font-size: 0.9rem;
        padding: 12px 5px;
    }
}
/* assets/css/style.css 맨 아래에 추가 */

/* 공유하기 버튼 스타일 */
.btn-share {
    background: #ffd400; /* 카카오톡 느낌의 옐로우 혹은 강조색 */
    color: #3c1e1e;
    border: 1px solid #e5bd00;
    font-weight: bold;
}
.btn-share:hover {
    background: #ffc107;
}

/* 모바일 정렬 보완 */
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

/* assets/css/style.css 맨 아래에 추가/수정 */

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

/* 1. 제목: 그라데이션 + 둥실둥실 효과 */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-emoji {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    -webkit-text-fill-color: initial; /* 이모지는 그라데이션 제외 */
}

/* 2. 슬로건: 타이핑 효과 */
.typing-wrapper {
    display: inline-block; /* 중앙 정렬을 위해 inline-block */
}

.typing-text {
    display: block;
    overflow: hidden; /* 넘치는 글자 숨김 */
    white-space: nowrap; /* 줄바꿈 방지 */
    border-right: 3px solid #666; /* 커서 색상 */
    font-size: 1.1rem;
    color: #555;
    margin: 0 auto;
    
    /* 애니메이션: 글자 수에 맞춰 width 0 -> 100% */
    animation: 
        typing 3s steps(30, end) forwards, 
        blink-caret .75s step-end infinite;
    
    width: 0; /* 시작 너비 0 */
    max-width: 100%;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #666 }
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .hero-section { padding: 40px 0 30px; }
    .hero-title { font-size: 1.8rem; }
    
    /* 모바일에서는 글자가 길면 잘릴 수 있으므로 폰트 크기 조정 */
    .typing-text { font-size: 0.9rem; }
}