/* 사용자 정의 HTML 블록용 CSS 클래스들 */

/* 기본 사용자 정의 박스 */
.my-custom-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.my-custom-box h1,
.my-custom-box h2,
.my-custom-box h3,
.my-custom-box h4,
.my-custom-box h5,
.my-custom-box h6 {
    margin-top: 0;
    color: #333;
}

/* 하이라이트 박스 */
.my-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.my-highlight h1,
.my-highlight h2,
.my-highlight h3,
.my-highlight h4,
.my-highlight h5,
.my-highlight h6 {
    color: white;
    margin-top: 0;
}

/* 사용자 정의 버튼 */
.my-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
}

.my-button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

/* 버튼 색상 변형 */
.my-button-primary {
    background-color: #0073aa;
}

.my-button-success {
    background-color: #28a745;
}

.my-button-warning {
    background-color: #ffc107;
    color: #212529;
}

.my-button-danger {
    background-color: #dc3545;
}

.my-button-info {
    background-color: #17a2b8;
}

/* 사용자 정의 알림 */
.my-alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid;
    position: relative;
}

.my-alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.my-alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.my-alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.my-alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* 카드 스타일 */
.my-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.my-card-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.my-card-title {
    margin: 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
}

/* 배지 스타일 */
.my-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.my-badge-primary {
    background-color: #0073aa;
    color: white;
}

.my-badge-success {
    background-color: #28a745;
    color: white;
}

.my-badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.my-badge-danger {
    background-color: #dc3545;
    color: white;
}

/* 구분선 스타일 */
.my-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #0073aa, transparent);
    margin: 30px 0;
    border: none;
}

/* 텍스트 강조 */
.my-text-primary {
    color: #0073aa;
}

.my-text-success {
    color: #28a745;
}

.my-text-warning {
    color: #ffc107;
}

.my-text-danger {
    color: #dc3545;
}

.my-text-muted {
    color: #6c757d;
}

/* 배경 색상 */
.my-bg-primary {
    background-color: #0073aa;
    color: white;
    padding: 15px;
    border-radius: 6px;
}

.my-bg-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
}

.my-bg-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
}

.my-bg-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .my-custom-box,
    .my-highlight,
    .my-card {
        padding: 15px;
        margin: 15px 0;
    }
    
    .my-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* 애니메이션 */
.my-custom-box,
.my-highlight,
.my-card,
.my-alert {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버 효과 */
.my-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* 인용구 스타일 */
.my-quote {
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    font-style: italic;
}

.my-quote p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.my-quote cite {
    font-style: normal;
    font-weight: 500;
    color: #666;
} 