/* 기본 변수 설정 - 현대적인 색상 팔레트로 업데이트 */
:root {
    --primary-color: #1a3c6e;
    --secondary-color: #3787ff;
    --accent-color: #2ae0ca;
    --dark-gray: #394b59;
    --light-gray: #f4f6f9;
    --text-color: #333;
    --ai-light-blue: #e9f5ff;
    --ai-light-green: #e6f8f1;
    --gradient-primary: linear-gradient(135deg, #1a3c6e, #3787ff);
    --gradient-accent: linear-gradient(135deg, #2ae0ca, #52e7d2);
    --gradient-cta: linear-gradient(135deg, #2b50aa, #3787ff);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(26, 60, 110, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 글로벌 애니메이션 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(55, 135, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(55, 135, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(55, 135, 255, 0.5); }
}

/* 기본 스타일 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
.case-detail-header {
    position: relative;
    padding: 80px 0 30px;
    background: linear-gradient(135deg, #0b1d36, #1a3c6e, #194985);
    color: white;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(26, 60, 110, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* 홀로그램 효과 */
.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hologram-circle {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 30s linear infinite;
}

.hologram-circle:nth-child(1) {
    width: 600px;
    height: 600px;
    top: 60%;
    border-width: 4px;
    animation-duration: 40s;
}

.hologram-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    top: 60%;
    border-width: 3px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.hologram-circle:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 60%;
    border-width: 2px;
    animation-duration: 20s;
}

/* 떠다니는 입체 오브젝트 */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 2px rgba(255, 255, 255, 0.3);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 40px;
    height: 80px;
    top: 60%;
    left: 5%;
    animation-delay: 1s;
    transform: rotate(15deg);
}

.shape-3 {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(30deg);
}

.shape-4 {
    width: 50px;
    height: 100px;
    bottom: 20%;
    right: 5%;
    animation-delay: 3s;
    transform: rotate(-15deg);
}

/* 애니메이션 정의 */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(42, 224, 202, 0.5); }
    50% { box-shadow: 0 0 20px rgba(42, 224, 202, 0.8); }
    100% { box-shadow: 0 0 5px rgba(42, 224, 202, 0.5); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* 새로운 레이아웃 구조 */
.ai-detail-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    margin-top: 15px;
}

.case-header-left {
    flex: 3;
    position: relative;
}

.case-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 타이틀 & 카테고리 스타일 개선 */
.case-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    background: linear-gradient(135deg, rgba(55, 135, 255, 0.25), rgba(26, 60, 110, 0.25));
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.case-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px;
    position: relative;
}

.title-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.3;
    border-radius: 5px;
    z-index: -1;
}

/* 키워드 태그 개선 */
.case-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(42, 224, 202, 0.15);  /* 약간 반투명한 배경 */
    border: 1px solid rgba(42, 224, 202, 0.4);  /* 더 진한 테두리 */
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* 그림자 추가 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);  /* 텍스트 그림자 */
}

.keyword-tag i {
    margin-right: 6px;
    color: var(--accent-color);  /* 아이콘 색상 강조 */
}

.keyword-tag:hover, .keyword-tag:focus {
    background: rgba(42, 224, 202, 0.25);  /* 호버 시 더 밝게 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 224, 202, 0.3);
}

/* 모바일에서 키워드 태그 가시성 강화 */
@media (max-width: 768px) {
    .case-category-badge {
        margin-bottom: 10px;
    }
    
    .case-detail-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .case-keywords {
        margin-top: 5px;
        padding: 8px;
    }
    
    /* 작은 화면에서 키워드 태그 세로 정렬을 위한 컨테이너 너비 조정 */
    .case-header-left {
        width: 100%;
    }
    
    /* 전체 헤더 섹션 패딩 줄이기 */
    .case-detail-header {
        padding: 80px 0 30px;
    }
    
    /* 헤더 내부 컨텐츠 압축 */
    .ai-detail-header {
        gap: 10px;
    }
    
    /* 카테고리와 제목 사이 간격 조정 */
    .case-header-left > * {
        margin-bottom: 8px;
    }
    
    /* 마지막 요소는 하단 여백 제거 */
    .case-header-left > *:last-child {
        margin-bottom: 0;
    }
}

/* 초소형 화면에서 키워드 태그 최적화 */
@media (max-width: 480px) {
    .case-category-badge {
        margin-bottom: 8px;
        font-size: 0.85rem;
        padding: 5px 12px;
    }
    
    .case-detail-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .case-keywords {
        margin-top: 3px;
    }
    
    .keyword-tag {
        width: calc(50% - 5px);  /* 작은 화면에서 2열로 정렬 */
        justify-content: center;
        margin-bottom: 5px;
        box-sizing: border-box;
    }
    
    .case-keywords {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* AI 배지 디자인 */
.ai-badge-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.ai-verified-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(42, 224, 202, 0.2), rgba(55, 135, 255, 0.2));
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pulse-icon {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.badge-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    border: 2px solid var(--accent-color);
    animation: ripple 1.5s infinite;
}

/* 메타 정보 컨테이너 */
.case-meta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(26, 60, 110, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 36px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.meta-item i {
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.meta-value {
    color: white;
}

/* 링크 복사 스타일 */
.case-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-link i {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    margin-right: 0;
}

.case-link .meta-value {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 복사 툴팁 스타일 */
.copy-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1000;
    animation: fade-in-out 2s forwards;
}

@keyframes fade-in-out {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 3D 물방울 효과 */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    animation: rise 8s infinite ease-in;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 65%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 75%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(7) {
    width: 30px;
    height: 30px;
    left: 85%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 25px;
    height: 25px;
    left: 95%;
    animation-duration: 6s;
    animation-delay: 1s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) rotateY(0deg) rotateX(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px) rotateY(45deg) rotateX(30deg);
        opacity: 0.8;
    }
    100% {
        bottom: 120%;
        transform: translateX(-20px) rotateY(90deg) rotateX(60deg);
        opacity: 0;
    }
}

/* 부유하는 기하학적 도형 추가 */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    top: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.shape-2 {
    top: 60%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.shape-3 {
    bottom: 10%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 80% 20% 50% 50% / 50% 50% 50% 50%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.case-detail-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    position: relative;
    z-index: 5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb a i {
    margin-right: 5px;
}

.case-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.case-category-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.case-category-badge i {
    margin-right: 8px;
}

.case-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-bottom: 20px;
    gap: 15px;
}

.case-date, .case-views {
    padding: 5px 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.case-date:hover, .case-views:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.case-date i, .case-views i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* 콘텐츠 영역 */
.case-detail-content {
    padding: 60px 0;
    background-color: #f9fafb;
}

.case-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.case-main-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.content-subtitle {
    position: relative;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a3c6e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7edf3;
}

.content-subtitle:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1a3c6e, #4a7bbb);
    border-radius: 3px;
}

/* 질문 박스 */
.question-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    margin-bottom: 30px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
}

.question-content p {
    margin: 0;
    line-height: 1.6;
}

/* 대화형 UI */
.conversation-flow {
    margin: 30px 0;
}

.chat-bubble {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
}

.ai-bubble {
    margin-right: auto;
}

.user-bubble {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ai-bubble .chat-icon {
    background-color: var(--secondary-color);
    margin-right: 10px;
}

.user-bubble .chat-icon {
    background-color: var(--accent-color);
    margin-left: 10px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 18px;
}

.ai-bubble .chat-message {
    background-color: var(--ai-light-blue);
    color: var(--primary-color);
    border-top-left-radius: 4px;
}

.user-bubble .chat-message {
    background-color: var(--ai-light-green);
    color: #16a085;
    border-top-right-radius: 4px;
    text-align: right;
}

/* AI 답변 스타일 */
.answer-box {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.ai-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(120deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
    padding: 0 5px;
    border-radius: 3px;
    font-weight: 500;
}

/* 법령 및 판례 스타일 */
.law-list, .precedent-list {
    padding: 0;
    list-style-type: none;
}

.law-list li, .precedent-list li {
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.law-list li:hover, .precedent-list li:hover {
    background-color: #e9f5ff;
}

.law-link, .precedent-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--primary-color);
    text-decoration: none;
}

.law-name, .precedent-name {
    font-weight: 500;
    flex: 1;
}

.law-meta, .precedent-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.law-category, .precedent-category {
    background-color: #e1f0ff;
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 사이드바 스타일 */
.case-sidebar {
    align-self: start;
}

.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* AI 정보 위젯 */
.ai-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.ai-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.ai-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* CTA 위젯 */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-button i {
    margin-left: 8px;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .case-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .case-detail-header {
        padding-top: 60px;
    }
    
    .meta-row {
        justify-content: flex-end;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .ai-detail-header {
        flex-direction: column;
    }
    
    .case-header-left, .case-header-right {
        width: 100%;
    }
    
    .case-detail-title {
        font-size: 1.5rem;
    }
    
    .law-link, .precedent-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .law-meta, .precedent-meta {
        margin-top: 8px;
    }
    
    .bubble {
        opacity: 0.3;
    }
    
    .bubble:nth-child(even) {
        display: none;
    }
    
    .case-meta-container {
        background: rgba(26, 60, 110, 0.7);
    }
    
    .meta-item {
        font-weight: 600;
    }
    
    .case-date, .case-views {
        background-color: rgba(0, 0, 0, 0.25);
    }
}

/* 토스트 메시지 스타일 */
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 참고 법령 및 판례 영역 개선 */
.case-details {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 25px -15px rgba(0, 0, 0, 0.08);
}

.content-subtitle {
    position: relative;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a3c6e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7edf3;
}

.content-subtitle:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1a3c6e, #4a7bbb);
    border-radius: 3px;
}

/* 법령 및 판례 공통 스타일 */
.details-box {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid #eef2f7;
}

.details-box h3 {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
}

.details-box h3:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    color: white;
}

.law-list, .case-list {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.law-list li, .case-list li {
    border-bottom: 1px solid #eef2f7;
    transition: background-color 0.2s;
}

.law-list li:last-child, .case-list li:last-child {
    border-bottom: none;
}

.law-list li:hover, .case-list li:hover {
    background-color: #f8fafc;
}

.law-link, .case-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    padding: 16px 20px;
    transition: all 0.2s;
}

.law-link:hover, .case-link:hover {
    color: #1a3c6e;
    transform: translateX(3px);
}

.law-name, .case-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.law-meta, .case-meta {
    display: flex;
    font-size: 0.85rem;
    color: #6c757d;
    flex-wrap: wrap;
    gap: 8px;
}

.law-category, .case-category, .law-date, .case-date {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.law-category:before, .case-category:before, 
.law-date:before, .case-date:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.8rem;
}

/* 법령 섹션 특화 스타일 */
.law-section h3 {
    color: #0d47a1;
    background-color: #f1f8ff;
}

.law-section h3:before {
    content: '\f02d';  /* 책 아이콘 */
    background-color: #0d47a1;
}

.law-category {
    color: #0d47a1;
}

.law-category:before {
    content: '\f02b';  /* 태그 아이콘 */
}

.law-date:before {
    content: '\f073';  /* 캘린더 아이콘 */
}

/* 판례 섹션 특화 스타일 */
.case-section h3 {
    color: #ad1457;
    background-color: #fef4f7;
}

.case-section h3:before {
    content: '\f0e3';  /* 판사 망치 아이콘 */
    background-color: #ad1457;
}

.case-category {
    color: #ad1457;
}

.case-category:before {
    content: '\f07c';  /* 폴더 아이콘 */
}

.case-date:before {
    content: '\f271';  /* 캘린더 체크 아이콘 */
}

/* 면책 문구 스타일 */
.case-disclaimer {
    background-color: rgba(243, 244, 246, 0.7);
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    border-left: 3px solid #cbd5e1;
}

.case-disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* 스크롤바 스타일 */
.law-list::-webkit-scrollbar,
.case-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.law-list::-webkit-scrollbar-track,
.case-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.law-list::-webkit-scrollbar-thumb,
.case-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.law-list::-webkit-scrollbar-thumb:hover,
.case-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .case-details {
        padding: 20px 15px;
    }
    
    .law-name, .case-name {
        font-size: 0.95rem;
    }
    
    .law-meta, .case-meta {
        flex-direction: column;
        gap: 4px;
    }
} 