/* Advanced 문법 공통 스타일 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 150px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 백 헤더 스타일 */
.back-header {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}

.back-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.back-header::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 10;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.korean-text {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.level-indicator {
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* 주제 선택기(토글/드롭다운) - intermediate 스타일 기반, 퍼플 계열 */
.topic-toggle-container {
    margin-bottom: 25px;
}
.topic-toggle-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.18);
    position: relative;
    overflow: hidden;
    gap: 10px;
}
.topic-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.28);
}
.topic-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.topic-toggle-btn:hover::before {
    left: 100%;
}
.topic-toggle-btn i:first-child {
    font-size: 18px;
}
.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 16px;
}
.topic-selector {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(156,39,176,0.10);
    margin-bottom: 20px;
}
.topic-selector.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.topic-card {
    background: white;
    border: 2px solid #e1bee7;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}
.topic-card:hover {
    border-color: #9C27B0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156,39,176,0.13);
}
.topic-card.current {
    border-color: #28a745;
    background: linear-gradient(135deg, #ede7f6 0%, #e1bee7 100%);
}
.topic-card.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}
.topic-card.unavailable .lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
    color: #6c757d;
}
.topic-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
}
.topic-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}
.topic-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}
.current-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}
@media (max-width: 768px) {
    .topic-selector {
        padding: 12px;
    }
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .topic-toggle-btn {
        font-size: 16px;
        padding: 12px 0;
    }
}

/* 레슨 헤더 */
.lesson-header {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(156, 39, 176, 0.3);
}

.lesson-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #9C27B0, #BA68C8, #9C27B0);
    z-index: -1;
    border-radius: 20px;
}

.lesson-header::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.lesson-header h2 {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* 학습 컨테이너 */
.learning-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding-bottom: 150px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* 이론 패널 */
.theory-panel {
    padding: 30px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.theory-panel h3 {
    color: #9C27B0;
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theory-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #9C27B0;
}

.theory-section h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.theory-content p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.example-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #9C27B0;
}

.highlight {
    color: #9C27B0;
    font-weight: bold;
}

/* 실습 패널 */
.practice-panel {
    padding: 30px;
    background: white;
    padding-bottom: 100px;
}

.practice-panel h3 {
    color: #9C27B0;
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 진행률 정보 */
.progress-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 퀴즈 세트 스타일 */
.question-set {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.set-title {
    color: #9C27B0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #9C27B0;
}

/* 문제 카드 */
.question-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    border-radius: 15px 15px 0 0;
}

.question-card:hover {
    border-color: #9C27B0;
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.1);
}

.question-number {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 선택지 컨테이너 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.1), transparent);
    transition: left 0.3s;
}

.option-label:hover {
    background: #f0f0f0;
    border-color: #9C27B0;
    transform: translateX(5px);
}

.option-label:hover::before {
    left: 100%;
}

.option-label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #9C27B0;
}

.option-text {
    font-size: 16px;
    color: #333;
    position: relative;
    z-index: 10;
}

/* 빈칸 채우기 */
.fill-container {
    margin-bottom: 20px;
}

.fill-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.fill-input:focus {
    outline: none;
    border-color: #9C27B0;
    background: white;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.2);
}

/* 세트 컨트롤 버튼 */
.set-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.check-set-btn, .next-set-btn {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.check-set-btn::before, .next-set-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.check-set-btn:hover, .next-set-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.check-set-btn:hover::before, .next-set-btn:hover::before {
    left: 100%;
}

/* 설명 스타일 */
.explanation {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

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

.explanation.correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.explanation.incorrect {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border: 1px solid #f1b0b7;
    color: #721c24;
}

.explanation i {
    font-size: 18px;
    margin-top: 2px;
}

/* 세트 점수 */
.set-score {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #bbdefb;
    border-radius: 15px;
    text-align: center;
    animation: pulse 0.5s ease-in-out;
}

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

.score-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1565c0;
}

/* 최종 결과 */
.final-results {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-top: 30px;
}

.completion-badge {
    margin-bottom: 30px;
}

.completion-badge i {
    font-size: 64px;
    color: #ffd700;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.completion-badge h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.completion-badge p {
    font-size: 16px;
    color: #666;
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.restart-btn, .next-topic-btn, .back-to-topics-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.restart-btn:hover, .next-topic-btn:hover, .back-to-topics-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(156, 39, 176, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .theory-panel {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: none;
        position: static;
    }
    
    .container {
        padding: 15px;
    }
    
    .back-header {
        padding: 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .back-header h1 {
        font-size: 20px;
        flex: 1;
        text-align: center;
    }
    
    .level-indicator {
        align-self: center;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .lesson-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .theory-panel, .practice-panel {
        padding: 20px;
    }
    
    .question-card {
        padding: 20px;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .learning-container {
        padding-bottom: 150px;
    }
}

/* Advanced 문법 전용 스타일 */
.grammar-table {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #9C27B0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.table-row span:first-child {
    font-weight: bold;
    color: #9C27B0;
}

.table-row span:nth-child(2) {
    color: #666;
}

.table-row span:last-child {
    font-style: italic;
    color: #333;
}

/* 빠른 참고 */
.quick-reference {
    background: linear-gradient(135deg, #e8f5e8 0%, #f4f4f4 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #d4edda;
}

.quick-reference h4 {
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ref-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.ref-item strong {
    color: #28a745;
    display: block;
    margin-bottom: 8px;
}

.ref-item ul {
    list-style: none;
    padding: 0;
}

.ref-item li {
    padding: 4px 0;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.ref-item li::before {
    content: '•';
    color: #9C27B0;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 팁 버튼 스타일 */
.tip-btn {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.tip-btn:hover {
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.tip-btn:active {
    transform: translateY(0);
}

/* 팁 모달 스타일 */
.tip-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.tip-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.tip-modal-header {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tip-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.tip-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tip-modal-body {
    padding: 30px;
    line-height: 1.8;
}

/* 팁 섹션 스타일 */
.tip-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #9C27B0;
}

.tip-section:last-child {
    margin-bottom: 0;
}

.tip-section h4 {
    color: #9C27B0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-section h4 i {
    font-size: 16px;
}

.tip-section p {
    margin-bottom: 15px;
    color: #333;
}

.tip-section ul {
    list-style: none;
    padding-left: 0;
}

.tip-section li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.tip-section li::before {
    content: '▶';
    color: #9C27B0;
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* 예문 리스트 스타일 */
.example-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.example-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e1bee7;
    position: relative;
    transition: all 0.3s ease;
}

.example-item:hover {
    border-color: #9C27B0;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.1);
}

.example-item strong {
    color: #9C27B0;
    font-weight: 700;
}

.example-item em {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* 스피커 아이콘 스타일 */
.speaker-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.speaker-icon:hover {
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 스피커 버튼 스타일 - 개선된 디자인 */
.speaker-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.speaker-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.speaker-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.speaker-btn:hover::before {
    left: 100%;
}

.speaker-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.speaker-btn i {
    transition: all 0.3s ease;
    z-index: 1;
}

.speaker-btn:hover i {
    transform: scale(1.1);
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .tip-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .tip-modal-header {
        padding: 15px 20px;
    }
    
    .tip-modal-header h3 {
        font-size: 18px;
    }
    
    .tip-modal-body {
        padding: 20px;
    }
    
    .tip-section {
        padding: 15px;
    }
    
    .example-item {
        padding: 12px;
    }
    
    .speaker-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}