/* ===== MAIN STYLESHEET ===== */
/* Dark Theme Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0c0;
    --text-tertiary: #8888aa;
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.main-nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-login:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-signup {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 20px 30px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Exercise Styles */
.exercise {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.exercise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.exercise-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.difficulty {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-beginner {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.difficulty-intermediate {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.difficulty-advanced {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.difficulty-enterprise {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.exercise-content {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.exercise-content ol, .exercise-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.exercise-content li {
    margin-bottom: 10px;
}

.show-solution {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-solution:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.solution {
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: none;
}

.solution.active {
    display: block;
    animation: slideIn 0.3s ease;
}

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

.solution-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-title i {
    font-size: 1.2rem;
}

.solution-content {
    color: var(--text-secondary);
}

.solution-content ul, .solution-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.solution-content li {
    margin-bottom: 8px;
}

/* Code Blocks */
pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}

pre code {
    color: var(--text-primary);
    background: transparent;
    padding: 0;
}

.hljs {
    background: transparent;
}

/* Tip, Warning, Important Boxes */
.tip, .warning, .important, .checklist {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid;
    position: relative;
}

.tip {
    border-left-color: var(--info-color);
    background: rgba(59, 130, 246, 0.05);
}

.warning {
    border-left-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.important {
    border-left-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.checklist {
    border-left-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.tip strong, .warning strong, .important strong, .checklist strong {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
}

.tip strong::before {
    content: '💡';
}

.warning strong::before {
    content: '⚠️';
}

.important strong::before {
    content: '🚨';
}

.checklist strong::before {
    content: '✅';
}

/* Profession Boxes */
.profession-box {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
}

.profession-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profession-icon {
    font-size: 1.5rem;
}

.profession-explanation {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.prompt-example {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 15px 0;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.prompt-example:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.prompt-technique {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.technique-fewshot {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.technique-zeroshot {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.technique-roleplaying {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.technique-structured {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.technique-cot {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.technique-agentic {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

th {
    background: rgba(102, 126, 234, 0.1);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Module Navigation */
.module-navigation {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
}

.module-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.module-nav-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.module-nav-card:hover {
    background: rgba(102, 126, 234, 0.1);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.module-nav-card.current {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
    color: white;
}

.module-nav-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-nav-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.module-nav-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .exercise-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .difficulty {
        align-self: flex-start;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .module-navigation,
    .footer-social,
    .show-solution,
    .mobile-menu-btn,
    .nav-actions {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        -webkit-text-fill-color: black;
        background: none;
    }
    
    .exercise, .solution, .tip, .warning, .important {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .solution {
        display: block !important;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}