/* Data Sources Example Styles */

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

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

* {
    box-sizing: border-box;
}

body {
    font-family: 'Selawik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: #1a202c;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    color: #1a202c;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

header h1 {
    margin: 0 0 0.75rem 0;
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header .subtitle {
    margin: 0.5rem 0 2rem 0;
    font-size: 1.3rem;
    color: #4a5568;
    font-weight: 400;
}

nav {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

nav a:active {
    transform: translateY(-1px);
}

main {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

section {
    margin-bottom: 50px;
}

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

h2 {
    color: #1a202c;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
}

h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

th,
td {
    border: none;
    padding: 16px 20px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: #e6e9ff;
}

code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #d63384;
}

pre {
    background: #f1f3f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.data-source {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.data-source:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.data-source ul {
    margin: 15px 0;
    padding-left: 24px;
}

.data-source li {
    margin: 8px 0;
    color: #4a5568;
}

.button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.button:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

.example {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #e6e9ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.example h3 {
    margin-top: 0;
    color: #667eea;
}

.quick-demo article {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #ffdede;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.1);
}

.quick-demo p {
    font-size: 1.1rem;
    margin: 12px 0;
}

.quick-demo strong {
    color: #667eea;
    font-weight: 700;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    color: #4a5568;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    header {
        padding: 2rem 1.5rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header .subtitle {
        font-size: 1.1rem;
    }

    nav a {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    main {
        padding: 25px;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .data-source,
    .example,
    .quick-demo article {
        padding: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 12px 10px;
    }
}
