/* --- Base Blockquote Styles for Tistory --- */
/* 모든 티스토리 인용구에 기본 스타일을 적용합니다. */
.article_view blockquote,
.article_view .blockquote,
.article_view .style1,
.article_view .style2,
.article_view .style3,
.article_view .style4,
.article_view .style5 {
    position: relative;
    margin: 30px 0;
    padding: 25px 30px; /* 기본 패딩: ::before 아이콘 공간 제외 */
    border: none;
    border-left: 5px solid #007bff; /* 기본 강조 색상 */
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
    color: #343a40; /* 가독성을 위한 더 진한 텍스트 */
    font-style: italic;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* 은은한 밝은 그라데이션 */
}

/* 호버 효과는 이전과 동일 */
.article_view blockquote:hover,
.article_view .blockquote:hover,
.article_view .style1:hover,
.article_view .style2:hover,
.article_view .style3:hover,
.article_view .style4:hover,
.article_view .style5:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* !!! 모든 인용구의 ::before 아이콘을 기본적으로 숨깁니다. !!! */
.article_view blockquote::before,
.article_view .blockquote::before,
.article_view .style1::before,
.article_view .style3::before,
.article_view .style4::before,
.article_view .style5::before {
    content: none;
    display: none;
}

/* --- Tistory Specific Style Overrides --- */

/* Tistory Default Style (often .blockquote or no specific style applied) */
/* 이 스타일은 기본 패딩과 ::before 없음 (위에서 숨김 처리) */

/* Tistory Style 1: Minimalist/Simple */
.article_view .style1 {
    background: #ffffff;
    border-left: 4px solid #6c757d;
    padding: 20px 25px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-style: normal;
    color: #495057;
}

/* Tistory Style 2: Primary Accent (::before 아이콘 적용) */
.article_view .style2 {
    background: linear-gradient(135deg, #e0f2f7 0%, #cceeff 100%); /* Lighter blue gradient */
    border-left: 5px solid #007bff;
    color: #212529;
    font-style: italic;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    padding: 25px 30px 25px 70px; /* ::before 아이콘 공간 확보를 위해 왼쪽 패딩 늘림 */
}

.article_view .style2::before {
    content: '“'; /* 모던 인용 부호 아이콘 */
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 48px;
    color: #007bff;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.7;
    display: block; /* style2에서만 ::before 보이도록 설정 */
}

/* Tistory Style 3: Colorful/Vibrant */
.article_view .style3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-left: none;
    border-radius: 12px;
    padding: 25px 30px; /* ::before 아이콘 없으므로 기본 패딩 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    font-style: normal;
}

/* Tistory Style 4: Warning/Note (기존 아이콘은 유지) */
.article_view .style4 {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 5px solid #f39c12;
    color: #856404;
    padding: 20px 25px 20px 60px; /* '💡' 아이콘 공간 확보 */
    position: relative;
    font-style: normal;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.article_view .style4::before {
    content: '💡'; /* 전구 아이콘 */
    font-size: 28px;
    left: 20px;
    top: 20px;
    color: #f39c12;
    opacity: 1;
    display: block; /* style4에서만 ::before 보이도록 설정 */
}

/* Tistory Style 5: Success/Tip (기존 아이콘은 유지) */
.article_view .style5 {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
    color: #155724;
    padding: 20px 25px 20px 60px; /* '✅' 아이콘 공간 확보 */
    position: relative;
    font-style: normal;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.article_view .style5::before {
    content: '✅'; /* 체크마크 아이콘 */
    font-size: 28px;
    left: 20px;
    top: 20px;
    color: #28a745;
    opacity: 1;
    display: block; /* style5에서만 ::before 보이도록 설정 */
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .article_view blockquote,
    .article_view .blockquote,
    .article_view .style1,
    .article_view .style2,
    .article_view .style3,
    .article_view .style4,
    .article_view .style5 {
        margin: 20px -10px;
        padding: 20px 20px; /* 기본 패딩: 아이콘 없음 */
        border-radius: 0;
    }
    
    /* style2에만 ::before 아이콘을 위한 패딩 조정 */
    .article_view .style2 {
        padding: 20px 20px 20px 50px; /* 아이콘 공간 확보 */
    }

    /* style2의 ::before 아이콘 크기/위치 조정 */
    .article_view .style2::before {
        font-size: 36px;
        left: 15px;
        top: 15px;
    }

    /* style4, style5의 아이콘을 위한 패딩 조정 */
    .article_view .style4,
    .article_view .style5 {
        padding: 15px 20px 15px 45px;
    }
    
    /* style4, style5의 ::before 아이콘 크기/위치 조정 */
    .article_view .style4::before,
    .article_view .style5::before {
        font-size: 22px;
        left: 15px;
        top: 15px;
    }
}

/* --- Dark Mode Support --- */
@media (prefers-color-scheme: dark) {
    .article_view blockquote,
    .article_view .blockquote,
    .article_view .style1,
    .article_view .style2,
    .article_view .style3,
    .article_view .style4,
    .article_view .style5 {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e2e8f0;
        border-left-color: #63b3ed;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
    
    /* style2의 ::before 아이콘 색상 */
    .article_view .style2::before {
        color: #63b3ed;
    }
    
    .article_view .style1 {
        background: #2d3748;
        color: #e2e8f0;
        border-left-color: #a0aec0;
    }

    .article_view .style3 {
        background: linear-gradient(135deg, #5a67d8 0%, #805ad5 100%);
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .article_view .style4 {
        background: #4a442a;
        border: 1px solid #7c6820;
        border-left-color: #f39c12;
        color: #fce883;
    }
    .article_view .style4::before {
        color: #f39c12;
    }

    .article_view .style5 {
        background: #314d3a;
        border: 1px solid #4a7d57;
        border-left-color: #28a745;
        color: #a7e0b8;
    }
    .article_view .style5::before {
        color: #28a745;
    }
}