/* ============================================
   APLIKASI PEMBELAJARAN INTERAKTIF
   Teknik Menyaring dan Menghadapi Konten Negatif di Ruang Digital
   Mata Pelajaran Informatika - Kelas 10 SMA
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Warna Ceria Utama */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Warna Solid */
    --primary-color: #667eea;
    --secondary-color: #f5576c;
    --accent-color: #4facfe;
    --success-color: #43e97b;
    --warning-color: #fa709a;
    --danger-color: #e74c3c;
    
    /* Background Ceria */
    --bg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --bg-gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --bg-gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    
    /* Warna Tambahan */
    --orange-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --purple-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --pink-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --green-gradient: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    --blue-gradient: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    
    /* Warna Netral */
    --white: #ffffff;
    --black: #2d3748;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transisi */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animasi */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 200, 100, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== LAYOUT ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), width var(--transition);
    box-shadow: var(--shadow-xl);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    margin: 0.25rem 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-weight: 600;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-item.active .nav-link {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-link i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    background: var(--gray-100);
}

.back-link:hover {
    background: var(--secondary-gradient);
    color: var(--white);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 2rem;
    transition: margin-left var(--transition);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.hamburger:hover {
    background: var(--gray-100);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-800);
}

p {
    margin-bottom: 1rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle, rgba(245, 87, 108, 0.1) 50%, transparent 100%);
    animation: heroRotate 30s linear infinite;
}

@keyframes heroRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.deco-circle {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    animation: bounce 1s ease-in-out infinite;
}

.deco-circle:nth-child(1) {
    background: var(--primary-color);
    animation-delay: 0s;
}

.deco-circle:nth-child(2) {
    background: var(--secondary-color);
    animation-delay: 0.2s;
}

.deco-circle:nth-child(3) {
    background: var(--accent-color);
    animation-delay: 0.4s;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-gradient);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

/* ===== OBJECTIVES ===== */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.objective-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.objective-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    flex-shrink: 0;
}

.objective-card p {
    margin: 0;
    font-weight: 600;
    color: var(--gray-700);
}

/* ===== ACHIEVEMENT BOX ===== */
.achievement-box {
    background: var(--success-gradient);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--white);
}

.achievement-text {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

.achievement-text strong {
    font-weight: 700;
}

/* ===== IMAGE GALLERY ===== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.image-container {
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background: var(--gray-800);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

/* ===== SUMMARY BOX ===== */
.summary-box {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.summary-box.colorful {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.summary-list {
    list-style: none;
    padding: 0;
}

.summary-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-300);
    font-weight: 600;
    color: var(--gray-700);
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.summary-item:hover {
    transform: translateY(-4px);
}

.summary-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    color: var(--white);
}

.summary-icon.red { background: var(--bg-gradient-1); }
.summary-icon.purple { background: var(--purple-gradient); }
.summary-icon.pink { background: var(--pink-gradient); }
.summary-icon.orange { background: var(--orange-gradient); }
.summary-icon.green { background: var(--green-gradient); }
.summary-icon.blue { background: var(--blue-gradient); }

.summary-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.summary-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* ===== CONTENT BOXES ===== */
.content-box {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.highlight-box {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box.gradient {
    background: var(--secondary-gradient);
}

.highlight-box i {
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.highlight-box p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-style: italic;
    padding-left: 2rem;
}

/* ===== CONTENT TYPES CARDS ===== */
.content-types {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-type-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.content-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.type-header {
    padding: 1.25rem 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.type-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
}

.type-header h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}

.type-content {
    padding: 1.5rem;
}

.type-description {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.characteristics {
    margin-bottom: 1.25rem;
}

.characteristics h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.characteristics h4 i {
    color: var(--primary-color);
}

.characteristics ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.characteristics li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
}

.characteristics li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.real-example h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.real-example h4 i {
    color: var(--secondary-color);
}

.example-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.example-box p {
    margin-bottom: 0.5rem;
}

.example-box p:last-child {
    margin-bottom: 0;
}

/* ===== INTERACTIVE QUIZ ===== */
.interactive-quiz {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.quiz-question {
    margin-bottom: 1.25rem;
}

.quiz-question h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.quiz-question p {
    font-size: 1.0625rem;
    color: var(--gray-700);
    margin: 0;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.quiz-btn:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    transform: translateX(4px);
}

.quiz-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.quiz-btn.wrong {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}

.quiz-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.quiz-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: none;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background: rgba(67, 233, 123, 0.2);
    color: #27ae60;
}

.quiz-feedback.wrong {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

/* ===== METHOD CARDS ===== */
.method-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.method-letter {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    color: var(--white);
}

.method-content {
    flex: 1;
    padding: 1.5rem;
}

.method-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.method-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 1rem;
}

.method-details {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.method-details h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-details h4 i {
    color: var(--primary-color);
}

.method-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.method-details li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
}

.method-details li::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--success-color);
    font-weight: bold;
}

/* ===== CARS GRID ===== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cars-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.cars-card:hover {
    transform: translateY(-4px);
}

.cars-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cars-card h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.cars-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.cars-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.cars-card li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cars-example {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.cars-example i {
    color: var(--warning-color);
    margin-top: 2px;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.125rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.tool-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== SIMULATION ===== */
.simulation-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.simulation-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.simulation-header {
    background: var(--gray-800);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.simulation-header i {
    font-size: 1.25rem;
}

.simulation-content {
    padding: 1.5rem;
}

.message-box {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-300);
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.message-sender i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.message-text {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--success-color);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.message-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.verification-questions h4 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vq-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.vq-label {
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.vq-answer {
    color: var(--gray-700);
}

.verification-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-md);
    color: var(--danger-color);
    font-weight: 600;
}

.verification-result i {
    font-size: 1.25rem;
}

/* ===== CHECKLIST ===== */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.checklist-item:hover {
    background: var(--gray-100);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
}

.checklist-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
}

.result-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

/* ===== SUMMARY TABLE ===== */
.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 2fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table-row.header {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.table-row:not(.header):hover {
    background: var(--gray-50);
}

.table-cell {
    display: flex;
    align-items: center;
}

/* ===== ATTITUDE CARDS ===== */
.attitude-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.attitude-card {
    display: flex;
    gap: 1.25rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.attitude-card:hover {
    transform: translateX(8px);
}

.attitude-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.attitude-icon.critical { background: linear-gradient(135deg, #667eea, #764ba2); }
.attitude-icon.empathetic { background: linear-gradient(135deg, #f093fb, #f5576c); }
.attitude-icon.responsible { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.attitude-icon.cautious { background: linear-gradient(135deg, #fa709a, #fee140); }
.attitude-icon.open { background: linear-gradient(135deg, #30cfd0, #330867); }

.attitude-content {
    flex: 1;
}

.attitude-content h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.attitude-content p {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.attitude-example {
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* ===== STRATEGY FLOW ===== */
.strategy-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-800);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 700;
}

.strategy-category {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.category-header {
    padding: 1.25rem 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header i {
    font-size: 1.5rem;
}

.category-header h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}

.strategy-steps {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 0;
}

.real-case {
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: var(--radius-md);
}

.case-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.important-note {
    display: flex;
    gap: 0.75rem;
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--danger-color);
}

.important-note i {
    color: var(--danger-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.important-note p {
    margin: 0;
    color: var(--gray-700);
}

.prevention-tips {
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    background: var(--success-gradient);
    border-radius: var(--radius-md);
    color: var(--white);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.prevention-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prevention-tips li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.prevention-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
}

/* ===== SELFCARE ===== */
.selfcare-content {
    margin-bottom: 1.5rem;
}

.selfcare-intro {
    background: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.selfcare-intro p {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--gray-700);
}

.selfcare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.selfcare-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.selfcare-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.selfcare-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-gradient);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    color: var(--gray-700);
    margin: 0 auto 1rem;
}

.selfcare-card h3 {
    font-size: 1.125rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.selfcare-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

/* ===== SCENARIO ===== */
.scenario-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scenario-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.scenario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--secondary-gradient);
    color: var(--white);
}

.scenario-number {
    font-weight: 700;
    font-size: 1rem;
}

.scenario-header i {
    font-size: 1.25rem;
}

.scenario-situation {
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.scenario-situation h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.scenario-situation p {
    color: var(--gray-700);
    margin: 0;
    font-style: italic;
}

.scenario-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.scenario-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    text-align: left;
}

.scenario-btn:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.scenario-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.scenario-btn.wrong {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}

.scenario-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.scenario-feedback {
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: none;
}

.scenario-feedback.show {
    display: block;
}

.scenario-feedback.correct {
    background: rgba(67, 233, 123, 0.2);
    color: #27ae60;
}

.scenario-feedback.wrong {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

/* ===== FINAL SUMMARY ===== */
.final-summary {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
}

.summary-mindmap {
    text-align: center;
}

.mindmap-center {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

.mindmap-center i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.mindmap-center span {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 1.125rem;
}

.mindmap-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.branch {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.branch-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.branch span {
    display: block;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.branch small {
    color: var(--gray-600);
    font-size: 0.8125rem;
}

/* ===== REFERENCES ===== */
.references {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.references ol {
    padding-left: 1.5rem;
    margin: 0;
}

.references li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.references em {
    color: var(--primary-color);
}

/* ===== NAVIGATION BUTTONS ===== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-btn-prev:hover {
    background: var(--gray-100);
}

.nav-btn-next {
    background: var(--primary-gradient);
    color: var(--white);
}

.nav-btn-next:hover {
    background: var(--secondary-gradient);
}

.nav-btn-home {
    background: var(--success-gradient);
    color: var(--white);
}

.nav-btn-home:hover {
    background: var(--accent-gradient);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.footer p {
    margin: 0;
    color: var(--gray-700);
    font-weight: 600;
}

/* ===== FLOATING UP BUTTON ===== */
.floating-up {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-up.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-up:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .overlay.active {
        display: block;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .method-card {
        flex-direction: column;
    }
    
    .method-letter {
        width: 100%;
        height: 60px;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .table-row.header {
        display: none;
    }
    
    .table-cell::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary-color);
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 70px;
    }
    
    .hero-section,
    .page-header,
    .content-section {
        padding: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .cars-grid,
    .tools-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .attitude-card {
        flex-direction: column;
        text-align: center;
    }
    
    .attitude-icon {
        margin: 0 auto;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .nav-btn {
        justify-content: center;
    }
    
    .floating-up {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .mindmap-branches {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--primary-color);
    color: var(--white);
}
