/**
 * Section1-SQL Specific Styles
 * SQL syntax highlighting, code blocks, and SQL-specific features
 */

/* Tagline Box - Prominent callout for key concepts */
.tagline-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
    border: 1px solid #60a5fa;
    color: #1e3a8a;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tagline-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.tagline-box::before {
    content: "🎯";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.15;
}

.tagline-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.tagline-box p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #1e40af;
}

/* Compact version for inline callouts */
.tagline-box.compact {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fafbfc 0%, #eff6ff 100%);
}

.tagline-box.compact h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #1e3a8a;
}

.tagline-box.compact p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    color: #2563eb;
}

.tagline-box.compact::before {
    font-size: 2rem;
    right: 1.5rem;
}

/* Navigation Subsection Styling - matches Section2-Systems */
.nav-subsection {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.25rem;
}

.nav-subsection h4 {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0.5rem 0 0.25rem 0;
    padding-left: 2rem;
}

.nav-subsection .nav-link {
    font-size: 0.875rem;
    padding: 0.4rem 1.5rem 0.4rem 3rem;
}

/* SQL Code Blocks - Dark theme */
pre {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #e6edf3;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 1.5rem auto;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid rgba(56, 139, 253, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
                0 0 40px rgba(37, 99, 235, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 850px;
    position: relative;
    transition: all 0.3s ease;
}

pre:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 
                0 0 60px rgba(37, 99, 235, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 139, 253, 0.3);
}

/* SQL label */
pre::before {
    content: 'SQL';
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 10px;
    color: #7ee787;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 2px 8px;
    background: rgba(126, 231, 135, 0.1);
    border: 1px solid rgba(126, 231, 135, 0.2);
    border-radius: 4px;
}

/* SQL Syntax Highlighting - High contrast dark theme */
.sql-keyword { color: #79c0ff; font-weight: 600; }
.sql-string { color: #a5d6ff; }
.sql-number { color: #ff7b72; }
.sql-operator { color: #c9d1d9; }
.sql-comment { 
    color: #f0ad4e;  /* Warm orange - pleasant and visible */
    font-weight: normal;  /* Regular weight, not bold */
    opacity: 1.0;  /* Full visibility for presentations */
    background: rgba(240, 173, 78, 0.08);  /* Very subtle orange background */
    padding: 1px 4px;
    border-radius: 3px;
    text-shadow: 0 0 1px rgba(240, 173, 78, 0.2);  /* Subtle glow */
}
.sql-function { color: #d2a8ff; font-weight: 500; }
.sql-table { color: #7ee787; font-weight: 600; }

code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
}

pre code {
    background: transparent;
    padding: 0;
}

body.slides-mode pre {
    font-size: 20px;
    padding: 2rem 2.5rem;
    max-width: 90%;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                0 0 80px rgba(37, 99, 235, 0.15);
}