/* 메인 페이지 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.main-content {
    flex: 1;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover, .service-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
    line-height: 1.2;
    text-align: center !important;
    width: 100%;
}

.service-card p {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center !important;
    width: 100%;
    max-height: 2.6em;
    overflow: hidden;
    margin: 0 auto;
}

.search-section {
    margin-top: auto;
    padding-bottom: 2rem;
}

.search-bar {
    background: white;
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.search-icon {
    font-size: 1rem;
    opacity: 0.6;
    margin-right: 0.8rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-bar input::placeholder {
    color: #999;
}

.voice-icon {
    font-size: 1rem;
    opacity: 0.6;
    margin-left: 0.8rem;
    cursor: pointer;
}

.voice-icon:hover {
    opacity: 0.8;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .header {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .greeting {
        font-size: 1.3rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .services-grid {
        gap: 0.8rem;
    }
    
    .service-card {
        height: 110px;
        padding: 1.2rem 0.8rem;
    }
    
    .service-icon {
        font-size: 1.6rem;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
        text-align: center !important;
        width: 100%;
    }
    
    .service-card p {
        font-size: 0.7rem;
        text-align: center !important;
        width: 100%;
        margin: 0 auto;
    }
}
