/* WinUI-Inspired Styles with WCT Colors */
body {
    font-family: 'Segoe UI Variable Text', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #f3f6fa 0%, #e1ebf4 50%, #d6e4f1 100%);
    color: #2d2d2d;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 40px 40px 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header neutral */
header {
    max-width: 1000px;
    margin: 0 auto 0 auto;
    padding: 24px 40px;
    border-radius: 12px 12px 0 0;
}

header .site-branding {
    border-bottom: none;
    margin-bottom: 0;
    padding: 16px 20px;
    
    /* WAC Blue Gradient */
    background: linear-gradient(135deg, #0264d7 0%, #0264d7 35%, #3a88de 70%, #5a9ae5 100%);
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(2, 100, 215, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}



.header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-author, .header-date, .header-section {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-author:hover {
    color: #ffcc27;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.header-date:hover {
    color: #c0c714;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.header-author::after, .header-date::after {
    content: "•";
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.header-author:hover::after {
    color: rgba(255, 255, 255, 0.8);
}

.header-date:hover::after {
    color: rgba(109, 171, 224, 0.8);
}

.header-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
}

.header-keywords {
    display: inline-block;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    line-height: 1.3;
    margin: 0px;
}

.keywords-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.keywords-list {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.header-tags {
    max-width: 750px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px auto;
}

.tag {
    background: #ffffff;
    color: #323130;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid #d1d1d1;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    box-sizing: border-box;
    transition: all 0.1s ease;
}

.tag:hover {
    background: #f8f8f8;
    border-color: #c7c7c7;
}

header .site-branding img {
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

header .site-branding img:hover {
    transform: scale(1.1) translateX(-26px);
    filter: brightness(1.05) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

header .site-title {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Typography spacing and flow */
p {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #2d2d2d;
}

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

/* Lists */
ul, ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #2d2d2d;
}

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

/* Strong and emphasis */
strong {
    font-weight: 600;
    color: #1d1d1d;
}

em {
    font-style: italic;
    color: #858a90;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 28px auto 20px auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* WinUI Typography Scale with WAC Colors */
h1 {
    font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0264d7, #5a9ae5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.25;
    margin: 24px 0 18px 0;
    letter-spacing: -0.015em;
}

h2 {
    font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
    color: #0264d7;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    margin: 22px 0 16px 0;
    letter-spacing: -0.01em;
}

h3 {
    font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
    color: #5a9ae5;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    margin: 20px 0 8px 0;
    letter-spacing: -0.005em;
}

h4 {
    font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
    color: #1d1d1d;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    margin: 18px 0 6px 0;
}

h5 {
    font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
    color: #2d2d2d;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin: 16px 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h6 {
    font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
    color: #858a90;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4;
    margin: 16px 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

code {
    background: rgba(2, 100, 215, 0.1);
    color: #0264d7;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Cascadia Code', 'Cascadia Mono', 'Consolas', 'SF Mono', 'Monaco', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    border: 1px solid rgba(2, 100, 215, 0.2);
}

pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #3c3c3c;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.4;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-weight: 400;
    font-size: inherit;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    border: none;
    border-bottom: 1px solid #e1dfdd;
    padding: 12px 16px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #0264d7, #5a9ae5);
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
}

td {
    font-size: 14px;
    line-height: 1.4;
    color: #2d2d2d;
}

tr:nth-child(even) {
    background-color: rgba(2, 100, 215, 0.03);
}

tr:hover {
    background-color: rgba(2, 100, 215, 0.08);
    transition: background-color 0.15s ease;
}

footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(2, 100, 215, 0.2);
    color: #858a90;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

blockquote {
    background: linear-gradient(135deg, rgba(2, 100, 215, 0.05), rgba(90, 154, 229, 0.03));
    border-left: 4px solid #0264d7;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #2d2d2d;
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

blockquote p {
    margin: 0;
    color: inherit;
}

a {
    color: #0264d7;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #5a9ae5;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #0264d7;
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.site-branding {
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(2, 100, 215, 0.1);
}

/* WinUI Button-like elements */
.button, button {
    background: linear-gradient(135deg, #0264d7, #5a9ae5);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.button:hover, button:hover {
    background: linear-gradient(135deg, #5a9ae5, #bed7f4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.button:active, button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* WinUI Dark Theme */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d30 50%, #1f1f1f 100%);
        color: #ffffff;
    }



    p, li {
        color: #ffffff;
    }

    strong {
        color: #ffffff;
    }

    em {
        color: #c8c6c4;
    }

    h1 {
        background: linear-gradient(135deg, #5a9ae5, #bed7f4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    h2 {
        color: #5a9ae5;
    }

    h3 {
        color: #bed7f4;
    }

    /* Dark mode hover effects */
    .header-author:hover {
        color: #ffcc27;
    }

    .header-date:hover {
        color: #c0c714;
    }

    .tag {
        background: #3b3a39;
        color: #ffffff;
        border: 1px solid #484644;
    }
    
    .tag:hover {
        background: #484644;
        border-color: #5d5a58;
    }

    h4 {
        color: #ffffff;
    }

    h5 {
        color: #ffffff;
    }

    h6 {
        color: #c8c6c4;
    }

    td {
        color: #ffffff;
    }

    main {
        background: rgba(32, 32, 32, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .hero-image {
        opacity: 0.9;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    code {
        background: rgba(90, 154, 229, 0.15);
        color: #bed7f4;
        border-color: rgba(90, 154, 229, 0.25);
    }

    pre {
        background: #1e1e1e;
        border: 1px solid #3c3c3c;
    }

    table {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    th {
        background: linear-gradient(135deg, #014a99, #3a7db5);
    }

    th, td {
        border-bottom-color: #484644;
    }

    tr:nth-child(even) {
        background-color: rgba(90, 154, 229, 0.05);
    }

    tr:hover {
        background-color: rgba(90, 154, 229, 0.1);
    }

    footer {
        border-top-color: rgba(90, 154, 229, 0.2);
        color: #a19f9d;
    }

    blockquote {
        background: linear-gradient(135deg, rgba(90, 154, 229, 0.08), rgba(190, 215, 244, 0.05));
        border-left-color: #5a9ae5;
        color: #ffffff;
    }

    a {
        color: #5a9ae5;
    }

    a:hover {
        color: #bed7f4;
    }

    a:focus {
        outline-color: #5a9ae5;
    }

    header .site-branding {
        /* WAC Blue Gradient for Dark Mode */
        background: linear-gradient(135deg, #0264d7 0%, #0264d7 35%, #3a88de 70%, #5a9ae5 100%);
        box-shadow: 
            0 8px 32px rgba(2, 100, 215, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }



    .button, button {
        background: linear-gradient(135deg, #014a99, #3a7db5);
        color: white;
    }

    .button:hover, button:hover {
        background: linear-gradient(135deg, #3a7db5, #6fa3d0);
    }
}