/* Variables Introduction Site Styling */

/* Font definitions using local Selawik fonts */
@font-face {
    font-family: 'Selawik';
    src: url('Selawik-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Selawik';
    src: url('Selawik-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Selawik', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.8rem;
    font-weight: 700;
}

header p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Navigation styling */
nav {
    margin-top: 1.5rem;
}

nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    margin: 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(-1px);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

nav a.current {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
    cursor: default;
}

nav a.current:hover {
    transform: translateY(1px);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

main {
    margin-bottom: 2rem;
}

section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #cbd5e0;
}

section h2 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome {
    border-left-color: #48bb78;
}

.syntax {
    border-left-color: #ed8936;
}

.example {
    border-left-color: #9f7aea;
}

.features {
    border-left-color: #38b2ac;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: #2d3748;
    color: white;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

/* Typography improvements */
h2 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Code and tech text styling */
pre,
code {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: monospace;
}

code {
    padding: 2px 6px;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.4;
}

/* Lists */
ul {
    padding-left: 1.8rem;
}

li {
    margin: 0.4rem 0;
}

/* Variable highlighting */
strong {
    color: #2d3748;
    font-weight: 600;
}

/* Emoji spacing */
body {
    font-feature-settings: "liga" off;
}

/* Markdown-specific styles for rich content */
blockquote {
    border-left: 4px solid #667eea;
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    background-color: #f8f9ff;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 4px 4px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #f9f9f9;
}

/* HTML example styling */
.html-example {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-line;
    font-size: 0.9rem;
    color: #2d3748;
    margin-top: 1rem;
}

/* Variable highlighting in content */
code {
    background-color: #f1f5f9;
    color: #553c9a;
    font-weight: 500;
}

/* Enhanced list styling */
ul li::marker {
    color: #667eea;
}

/* Improved spacing for markdown headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1:first-child,
h2:first-child,
h3:first-child {
    margin-top: 0;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}

header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.version {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

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

h2 {
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

pre,
.code-example {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    white-space: pre-line;
}

footer {
    background: #343a40;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.footer-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    main,
    header,
    footer {
        padding: 1rem;
    }
}
