/**
 * 관상/손금 페이지 전용 스타일
 * gwansang.php
 */

/* 탭 네비게이션 스타일 */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    border-bottom: 2px solid #e0e0e0;
    justify-content: center;
}

.tab-btn {
    padding: 15px 40px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Gowun Dodum', sans-serif;
}

.tab-btn:hover {
    color: #8b4513;
}

.tab-btn.active {
    background-color: #4a90e2;
    color: white;
    border-radius: 8px;
}

/* 탭 콘텐츠 */
.tab-content {
    display: none !important;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 콘텐츠 카드 */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.content-card h2 {
    color: #8b4513;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3 {
    color: #5d4037;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #d4af37;
}

.content-card p {
    line-height: 1.8;
    color: #555;
    margin: 15px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #f0e6d2;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
}

.feature-item h4 {
    color: #8b4513;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item .icon {
    font-size: 1.5rem;
}

/* 이미지 섹션 스타일 */
.image-section {
    margin: 30px 0;
}

.reference-image-container {
    background: linear-gradient(135deg, #fefefe 0%, #f9f9f9 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0e6d2;
}

.reference-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 0 0 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.image-caption {
    background: linear-gradient(135deg, #fff9e6 0%, #fef5e7 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.image-caption code {
    background: rgba(139, 69, 19, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #8b4513;
}

.intro-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fef5e7 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #d4af37;
}

.intro-section p {
    margin: 10px 0;
    font-size: 1.05rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .content-card {
        padding: 25px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .reference-image-container {
        padding: 20px;
    }

    .image-caption {
        padding: 15px;
        font-size: 0.9rem;
    }

    .image-caption code {
        font-size: 0.85rem;
    }
}
