/* Color Scheme Variables */
:root {
    --primary-bg: #003049;
    --primary-text: #ffffff;
    --primary-accent: #fcbf49;
    --secondary-accent: #f77f00;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.6);
    --surface-subtle: rgba(255, 255, 255, 0.1);
    --surface-hover: rgba(255, 255, 255, 0.15);
    --surface-active: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.2);
    --link-default: #eae2b7;
    --link-visited: #f77f00;
    --link-hover: #fcbf49;
    --link-active: #d62828;
}

body {
    background-color: var(--primary-bg);
    font-family: 'Lato', sans-serif;
    color: var(--primary-text);
}

h1 {
    color: var(--primary-accent);
}

h3, h4 {
    text-transform: uppercase;
}

h4 {
    font-size: 0.8em;
    color: var(--text-muted);
}

.blog-item {
    display: flex;
    align-items: center;
    height: 32px;
    margin-bottom: 4px;
    padding: 2px 0;
    transition: background-color 0.15s ease;
}

.blog-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.blog-icon-placeholder {
    background-image: url("/generic.ico");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.blog-icon.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

.blog-link:link {
    color: var(--link-default);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: all 0.15s ease;
}

.blog-link:visited {
    color: var(--link-visited);
}

.blog-link:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

.blog-link:active {
    color: var(--link-active);
}

ul {
    z-index: 4;
    list-style-type: none;
    margin: 1.7em;
    padding: 0;
    overflow: hidden;
    font-size: .925rem;
}

li {
    z-index: 4;
    float: right;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover {
    background-color: var(--secondary-accent);
}

.title-li {
    float: left;
    border: var(--primary-text) solid 1px;
}

.link-container {
    margin: 1.7em;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.category-container {
    width: 300px;
    min-width: 300px;
    margin-bottom: 2em;
    padding-right: 1.5em;
}

.category-container h3 {
    margin-bottom: 0.3em;
    color: var(--primary-accent);
    font-weight: 600;
}

.category-container h4 {
    margin-bottom: 1em;
    margin-top: 0;
    display: inline-block;
    background-color: var(--surface-subtle);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    color: var(--primary-text);
}

.category-container h4 strong {
    background-color: var(--secondary-accent);
    color: var(--primary-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 6px;
}

.site-title {
    margin: 1.7em;
    max-width: 500px;
}

.search-container {
    margin-top: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#search-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--primary-text);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

#search-input::placeholder {
    color: var(--text-subtle);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    background-color: var(--surface-hover);
}

.stats {
    margin-top: 0.8em;
    font-size: 0.8em;
    color: var(--primary-text);
    background-color: var(--surface-subtle);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

@media only screen and (max-device-width: 720px) {
    .site-title {
        font-size: 3rem;
        width: 600px;
        max-width: 600px;
        margin: 1.7em;
    }

    .link-container {
        margin: 3.4em;
        width: 600px;
        max-width: 600px;
    }

    .category-container {
        width: 600px;
        min-width: 600px;
    }    .blog-item {
        font-size: 3rem;        margin-bottom: 48px;
        padding: 8px 0;
    }

    h3, h4 {
        margin-bottom: 48px;
        font-size: 3rem;
    }    .category-container h4 {
        background-color: var(--surface-subtle);
        padding: 16px 20px;
        border-radius: 4px;
        color: var(--primary-text);
    }

    .category-container h4 strong {
        background-color: var(--secondary-accent);
        color: var(--primary-bg);
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 2.7rem;
        font-weight: 600;
        margin-right: 12px;
    }.blog-icon {
        width: 32px;
        height: 32px;
        margin-right: 24px;
        flex-shrink: 0;
    }

    .blog-icon-placeholder {
        background-image: url("/generic.ico");
        background-size: 32px 32px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .blog-icon.loading {
        animation: pulse 1.5s ease-in-out infinite;
    }

    ul {
        font-size: 2.2rem;
    }

    .title-li {
        padding: 8px;
    }
}
