/* SMS.COM.NA Developer Portal - Starlight-Inspired Premium Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Colors - Inspired by Starlight */
    --sl-color-accent: #3b82f6;
    --sl-color-accent-high: #60a5fa;
    --sl-color-accent-low: #1e40af;
    --sl-color-green: #10b981;
    --sl-color-green-high: #34d399;
    --sl-color-orange: #f59e0b;
    --sl-color-purple: #8b5cf6;
    --sl-color-red: #ef4444;

    /* Backgrounds */
    --sl-color-bg: #0a0e1a;
    --sl-color-bg-nav: rgba(15, 20, 30, 0.9);
    --sl-color-bg-sidebar: #0f1419;
    --sl-color-bg-inline-code: #1a1f2e;

    /* Text */
    --sl-color-white: #ffffff;
    --sl-color-gray-1: #f8fafc;
    --sl-color-gray-2: #e2e8f0;
    --sl-color-gray-3: #cbd5e1;
    --sl-color-gray-4: #94a3b8;
    --sl-color-gray-5: #64748b;
    --sl-color-gray-6: #475569;

    /* Shadows */
    --sl-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --sl-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --sl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --sl-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--sl-color-bg);
    color: var(--sl-color-gray-1);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--sl-color-bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--sl-shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

nav a {
    color: var(--sl-color-gray-3);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

nav a:hover {
    color: var(--sl-color-white);
    background: rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--sl-color-white) 0%, var(--sl-color-gray-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--sl-color-gray-3);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: linear-gradient(135deg, rgba(26, 31, 53, 0.6) 0%, rgba(15, 20, 30, 0.6) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sl-shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    color: var(--sl-color-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card h4 {
    color: var(--sl-color-gray-2);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--sl-color-gray-3);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.card li {
    color: var(--sl-color-gray-3);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--sl-color-accent);
    color: var(--sl-color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    background: var(--sl-color-accent-high);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--sl-color-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    background: var(--sl-color-green-high);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Documentation Layout */
.doc-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 88px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(15, 20, 25, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar h3 {
    color: var(--sl-color-white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.25rem;
}

.sidebar a {
    color: var(--sl-color-gray-4);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar a:hover {
    color: var(--sl-color-white);
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--sl-color-accent);
}

/* Content */
.content {
    background: rgba(15, 20, 30, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    min-height: 80vh;
}

.content h1 {
    color: var(--sl-color-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.content h2 {
    color: var(--sl-color-white);
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    letter-spacing: -0.01em;
    scroll-margin-top: 88px;
}

.content h3 {
    color: var(--sl-color-gray-1);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 88px;
}

.content p {
    color: var(--sl-color-gray-3);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.content strong {
    color: var(--sl-color-white);
    font-weight: 600;
}

.content ul,
.content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--sl-color-gray-3);
}

.content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content a {
    color: var(--sl-color-accent-high);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content a:hover {
    color: var(--sl-color-white);
    text-decoration: underline;
}

/* Code Blocks */
pre {
    background: var(--sl-color-bg-inline-code);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    box-shadow: var(--sl-shadow-sm);
}

code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--sl-color-accent-high);
    font-size: 0.875em;
}

.inline-code,
p code,
li code,
td code {
    background: var(--sl-color-bg-inline-code);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    background: rgba(15, 20, 30, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(59, 130, 246, 0.1);
    color: var(--sl-color-white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    color: var(--sl-color-gray-3);
}

tr:last-child td {
    border-bottom: none;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.badge-get {
    background: rgba(16, 185, 129, 0.2);
    color: var(--sl-color-green-high);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-post {
    background: rgba(59, 130, 246, 0.2);
    color: var(--sl-color-accent-high);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-put {
    background: rgba(245, 158, 11, 0.2);
    color: var(--sl-color-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--sl-color-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Alert Boxes */
.alert {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
    backdrop-filter: blur(8px);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--sl-color-accent);
    color: var(--sl-color-gray-1);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--sl-color-orange);
    color: var(--sl-color-gray-1);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--sl-color-green);
    color: var(--sl-color-gray-1);
}

.alert strong {
    color: var(--sl-color-white);
}

/* Footer */
footer {
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

footer p {
    color: var(--sl-color-gray-4);
    font-size: 0.9375rem;
}

footer a {
    color: var(--sl-color-accent-high);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--sl-color-white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .doc-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    nav ul {
        gap: 0.25rem;
    }

    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 4rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.875rem;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 88px;
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--sl-color-white);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--sl-color-white);
}

/* Icon System */
.icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    stroke-width: 2;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

.icon-2xl {
    width: 2.5rem;
    height: 2.5rem;
}

.icon-3xl {
    width: 3rem;
    height: 3rem;
}

/* Icon colors */
.icon-primary {
    color: var(--sl-color-accent);
}

.icon-success {
    color: var(--sl-color-green);
}

.icon-warning {
    color: var(--sl-color-orange);
}

.icon-danger {
    color: var(--sl-color-red);
}