/* ==============================================
   Family Sites - 독립 스타일시트
   다른 프로젝트에 복사하여 사용 가능
   ============================================== */

/* Family Sites 섹션 기본 스타일 */
.family-sites {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.family-sites .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 그리드 레이아웃 */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Family 카드 */
.family-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

/* AOS 애니메이션 (자동으로 적용됨) */
.family-card.aos-animate {
    opacity: 1;
    animation: fadeInUp 0.6s ease forwards;
}

/* 호버 효과 */
.family-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* 로고 영역 */
.family-logo {
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-logo img {
    max-width: 150px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.family-card:hover .family-logo img {
    transform: scale(1.05);
}

/* 로고 이미지 로드 실패 시 아이콘 */
.family-logo i {
    font-size: 3rem;
    color: #ccc;
}

/* 카드 제목 */
.family-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

/* 카드 설명 */
.family-desc {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 링크 버튼 */
.family-link {
    display: inline-block;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.family-link:hover {
    background: #357abd;
    transform: translateY(-2px);
}

/* 비활성 링크 (준비중) */
.family-link.disabled {
    background: #95a5a6;
    cursor: not-allowed;
    pointer-events: none;
}

.family-link i {
    margin-right: 5px;
}

/* 애니메이션 키프레임 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   반응형 디자인
   ============================================== */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .family-sites {
        padding: 60px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .family-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .family-card {
        padding: 25px;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .family-sites {
        padding: 40px 10px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .family-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .family-card {
        padding: 20px;
    }
    
    .family-logo {
        height: 100px;
    }
    
    .family-logo img {
        max-width: 120px;
        max-height: 80px;
    }
    
    .family-card h3 {
        font-size: 1.1rem;
    }
    
    .family-desc {
        font-size: 0.85rem;
    }
    
    .family-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==============================================
   커스터마이징 가이드
   ============================================== */

/*
색상 변경:
-----------
.family-sites { background: linear-gradient(135deg, #색상1, #색상2); }
.family-link { background: #브랜드색상; }
.section-header h2 { color: #제목색상; }

크기 조정:
-----------
.family-card { padding: 40px; }  /* 카드 여백 */
.family-logo img { max-width: 200px; }  /* 로고 크기 */
.family-grid { gap: 40px; }  /* 카드 간격 */

애니메이션 속도:
---------------
.family-card { transition: transform 0.5s ease; }  /* 호버 속도 */
@keyframes fadeInUp { ... }  /* 등장 애니메이션 조정 */
*/
