/* 레슨 1 전용 스타일 */

/* AI 해킹 통계 스타일 */
.ai-hacking-stats {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
}
.ai-hacking-title {
    text-align: center;
    font-size: 2.2em;   /* 필요에 따라 크기 조절 */
    font-weight: bold;
    margin-bottom: 1.2em;
    margin-top: 0.5em;
}

.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ai-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ai-stat-item:hover {
    transform: translateY(-5px);
}

.ai-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.ai-stat-desc {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 해킹 사건 테이블 스타일 */
.incident-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.incident-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 3fr;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    font-weight: bold;
    font-size: 0.95rem;
}

.incident-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 3fr;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.incident-row:hover {
    background-color: #f8fafc;
}

.incident-row:last-child {
    border-bottom: none;
}

.incident-name {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.incident-name strong {
    color: #1e293b;
    font-size: 1.1rem;
}

.severity-high {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.severity-medium {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.severity-critical {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

/* AI 해킹 기법 카드 스타일 */
.technique-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.technique-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.technique-card:hover {
    transform: translateY(-5px);
}

.technique-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.technique-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.technique-header h4 {
    color: #1e293b;
    margin: 0;
    font-size: 1.3rem;
}

.technique-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.technique-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.technique-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.technique-content li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.warning-box i {
    color: #d97706;
    margin-top: 0.2rem;
}

.warning-box span {
    color: #92400e;
    font-weight: 500;
}

.case-example {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: #1e40af;
    font-weight: 500;
}

.expert-quote {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-left: 4px solid #8b5cf6;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-style: italic;
    position: relative;
}

.expert-quote i {
    color: #8b5cf6;
    margin-right: 0.5rem;
}

.expert-quote span {
    color: #6b21a8;
}

.impact-note {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: #047857;
    font-weight: 500;
}

/* 방어 기술 스타일 */
.defense-overview {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    margin: 2rem 0;
}

.defense-methods {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.defense-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.defense-item:hover {
    transform: translateX(10px);
}

.defense-item i {
    font-size: 2rem;
    color: #0ea5e9;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.defense-content h4 {
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.defense-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.defense-stats {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.defense-stats h4 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #0ea5e9;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 네비게이션 스타일 강화 */
.lesson-navigation {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.lesson-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 350px;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-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 ease;
}

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

.nav-btn.prev {
    text-align: left;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-btn.next {
    text-align: right;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.nav-btn.next:hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

/* 진행률바 스타일 */
.progress-bar {
    background: rgba(255, 255, 255, 0.8);
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.progress-text {
    text-align: center;
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.progress-text::before {
    content: '📊';
    font-size: 1.2rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .incident-header,
    .incident-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .incident-header {
        display: none;
    }
    
    .incident-row {
        padding: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .technique-categories {
        grid-template-columns: 1fr;
    }
    
    .ai-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-btn {
        max-width: none;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
    
    .lesson-navigation {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .ai-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .defense-item {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
} 