/* ── SSO Integration Guide — Stylesheet ──────────────────────────────────── */
/* Based on solution-guide.css with SSO-specific additions                    */

:root {
    --wk-blue: #007AC3;
    --wk-blue-medium: #409BD2;
    --wk-blue-light: #A6D0EA;
    --wk-blue-ultra-light: #E8F4FC;
    --wk-teal: #00A3A1;
    --wk-green: #5A8A15;
    --wk-green-vibrant: #6BA31E;
    --wk-red: #E5202E;
    --wk-orange: #FF6B35;
    --wk-purple: #6B21A8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border-color: var(--gray-200);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --nav-width: 280px;
    --header-height: 70px;
    /* SSO theme — teal accent */
    --accent: #00A3A1;
    --accent-light: #E6F7F7;
    --accent-gradient: linear-gradient(135deg, #00A3A1 0%, #007AC3 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, #F8FAFB 0%, #E8EDF2 100%);
    min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.header-badge {
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--nav-width);
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFB 100%);
    border-right: 3px solid transparent;
    border-image: linear-gradient(180deg, rgba(0, 163, 161, 0.15) 0%, var(--wk-blue) 100%) 1;
    overflow-y: auto;
    padding: 30px 20px;
    z-index: 900;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.06);
}

.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; border: 2px solid var(--gray-100); }

.nav-section { margin-bottom: 24px; }

.nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 0 12px;
}

.nav-links { list-style: none; }

.nav-link {
    display: block;
    padding: 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    transform: translateX(3px);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* ── Main Content ───────────────────────────────────────────────────────── */
.main-content {
    margin-left: var(--nav-width);
    margin-top: var(--header-height);
    padding: 40px 60px;
    max-width: 1200px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--accent-gradient);
    color: white;
    padding: 36px 44px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 32px 0 14px 0;
}

.section h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 24px 0 10px 0;
}

.section p {
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.7;
}

.section ul, .section ol {
    margin: 0 0 16px 24px;
    color: var(--text-primary);
}

.section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.section table th {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.section table th:first-child { border-radius: 8px 0 0 0; }
.section table th:last-child  { border-radius: 0 8px 0 0; }

.section table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.section table tr:hover {
    background: var(--accent-light);
}

.section table tr:last-child td {
    border-bottom: none;
}

.section table td strong {
    color: var(--accent);
    font-weight: 600;
}

/* ── Diagram images ─────────────────────────────────────────────────────── */
.diagram-container {
    margin: 24px 0;
    text-align: center;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.diagram-caption {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

/* ── Code / URL blocks ──────────────────────────────────────────────────── */
.code-block {
    background: var(--gray-800);
    color: #E2E8F0;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 13.5px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--gray-700);
}

.code-block code {
    color: #A5F3FC;
}

.inline-code {
    background: var(--gray-100);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    font-weight: 500;
}

/* ── Callout / Tip / Important / Note ───────────────────────────────────── */
.callout {
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.callout.tip { border-left-color: var(--wk-green); background: #F0F7E6; }
.callout.important { border-left-color: var(--wk-orange); background: #FFF3ED; }
.callout.note { border-left-color: var(--wk-blue); background: var(--wk-blue-ultra-light); }
.callout.security { border-left-color: var(--wk-red); background: #FEF2F2; }

.callout-label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.callout.tip .callout-label { color: var(--wk-green); }
.callout.important .callout-label { color: var(--wk-orange); }
.callout.note .callout-label { color: var(--wk-blue); }
.callout.security .callout-label { color: var(--wk-red); }

/* ── Step containers ────────────────────────────────────────────────────── */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 16px 20px 16px 60px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-secondary) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow-sm);
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ── Benefit cards ──────────────────────────────────────────────────────── */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.benefit-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.benefit-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.benefit-card .card-icon {
    width: 48px; height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.benefit-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 6px;
}

.benefit-card p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ── Provisioning model cards ───────────────────────────────────────────── */
.provision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.provision-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.provision-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.provision-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 8px;
}

.provision-card .provision-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.provision-card p {
    font-size: 13.5px;
    color: var(--gray-600);
    margin: 0 0 8px;
    line-height: 1.6;
}

.provision-card ul {
    margin: 8px 0 0 18px;
    font-size: 13px;
    color: var(--gray-600);
}

/* ── Summary table ──────────────────────────────────────────────────────── */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.summary-table th {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
}

.summary-table th:first-child { border-radius: 8px 0 0 0; }
.summary-table th:last-child  { border-radius: 0 8px 0 0; }

.summary-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.summary-table tr:hover { background: var(--accent-light); }
.summary-table tr:last-child td { border-bottom: none; }
.summary-table td strong { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 24px 20px; }
}
