/* 홈페이지 전용 스타일 */

/* 홈 컨테이너 */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 30%, #f5f0ff 60%, #fef5f0 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px -4px rgba(30, 64, 175, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

/* 장식 요소 - 떠다니는 원형 */
.home-container::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.home-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 홈 콘텐츠 영역 */
.home-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 메인 멘트 섹션 */
.home-hero {
    margin-bottom: 2.5rem;
}

/* 블로그 분석 입력 섹션 */
.home-analysis-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.home-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 60px;
    box-shadow: 0 4px 20px -2px rgba(30, 64, 175, 0.1), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-input-row:focus-within {
    box-shadow: 0 4px 24px -2px rgba(30, 64, 175, 0.16), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.35);
}

.home-keyword-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-800);
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.home-keyword-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.home-keyword-input:focus {
    outline: none;
    box-shadow: none;
}

.home-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.home-search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.home-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

.home-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    letter-spacing: -0.02em;
}

.home-hero-subtitle {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-medium) 50%, 
        var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(30, 64, 175, 0.08));
    font-weight: 900;
}

/* 이미지 섹션 */
.hm-images-section {
    width: 100%;
    margin-bottom: 2rem;
}

.hm-images-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.hm-image-item {
    flex: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-image-item:hover {
    transform: translateY(-2px);
}

.hm-image-item a {
    display: block;
    text-decoration: none;
}

.hm-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    object-fit: contain;
    aspect-ratio: 3.5/1;
    transition: box-shadow 0.3s ease;
}

.hm-image-item:hover .hm-image {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

/* 기능 소개 섹션 */
.home-features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto 2rem;
}

.home-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-medium), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(30, 64, 175, 0.15), 0 4px 12px -4px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
}

.home-feature-item:hover::before {
    opacity: 1;
}

.home-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
    border-radius: 14px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.home-feature-item:hover .home-feature-icon {
    background: var(--gradient-primary);
}

.home-feature-icon i {
    font-size: 24px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.home-feature-item:hover .home-feature-icon i {
    color: var(--white);
}

.home-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.625rem;
}

.home-feature-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin: 0;
}

/* 768px 브레이크포인트 */
@media (max-width: 768px) {
    .home-container {
        padding: 2.5rem 1.5rem;
        margin-bottom: 1rem;
    }

    .home-hero {
        margin-bottom: 2rem;
    }

    .home-hero-title {
        font-size: 28px;
        margin-bottom: 0.375rem;
    }

    .home-hero-subtitle {
        font-size: 32px;
        margin-bottom: 0.875rem;
    }
    
    .gradient-text {
        font-weight: 900;
    }
    
    .home-analysis-section {
        max-width: 500px;
    }
    
    .home-input-row {
        gap: 0.5rem;
        padding: 0.375rem;
    }
    
    .home-keyword-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .home-search-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* 이미지 섹션 768px */
    
    .hm-images-section {
        margin-bottom: 1rem;
    }
    
    .hm-images-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hm-image-item {
        max-width: 100%;
    }
    
    /* 기능 소개 섹션 768px */
    .home-features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .home-feature-item {
        padding: 1.25rem;
    }
    
    .home-feature-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .home-feature-icon i {
        font-size: 22px;
    }
    
    .home-feature-title {
        font-size: 1.05rem;
    }
    
    .home-feature-description {
        font-size: 0.8rem;
    }
}

/* 480px 브레이크포인트 */
@media (max-width: 480px) {
    .home-container {
        padding: 2rem 1rem;
        margin-bottom: 0.75rem;
    }

    .home-hero {
        margin-bottom: 1.75rem;
    }

    .home-hero-title {
        font-size: 22px;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .home-hero-subtitle {
        font-size: 26px;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .gradient-text {
        font-weight: 900;
    }
    
    .home-analysis-section {
        max-width: 400px;
    }
    
    .home-input-row {
        gap: 0.375rem;
        padding: 0.3rem;
    }
    
    .home-keyword-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .home-search-btn {
        padding: 0.625rem 1rem;
        font-size: 0.825rem;
    }
    
    /* 이미지 섹션 480px */
    
    .hm-images-section {
        margin-bottom: 0.75rem;
    }
    
    .hm-images-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* 기능 소개 섹션 480px */
    .home-features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .home-feature-item {
        padding: 1rem;
    }
    
    .home-feature-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .home-feature-icon i {
        font-size: 20px;
    }
    
    .home-feature-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .home-feature-description {
        font-size: 0.775rem;
        line-height: 1.5;
    }
}

/* 텍스트 선택 방지 (선택적) */
.home-hero-title,
.home-hero-subtitle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
