/* Ellarion Cybernetics Custom Styles */

/* ===== Button Styles ===== */

/* Arachne primary button (outline style for homepage) */
.btn-arachne-primary {
    color: #8c90cb !important;
    background-color: #fff !important;
    border-color: #8c90cb !important;
    border-width: 2px;
}

.btn-arachne-primary:hover,
.btn-arachne-primary:focus,
.btn-arachne-primary:active {
    color: #fff !important;
    background-color: #7277bf !important;
    border-color: #696ebc !important;
}

.btn-arachne-primary:visited {
    color: #8c90cb !important;
}

/* Datasets.bio button (filled style) */
.btn-datasets-primary {
    color: #fff !important;
    background-color: #508ecb !important;
    border-color: #508ecb !important;
}

.btn-datasets-primary:hover,
.btn-datasets-primary:focus,
.btn-datasets-primary:active {
    color: #fff !important;
    background-color: #387bbd !important;
    border-color: #3575b3 !important;
}

/* ===== Responsive Images ===== */

/* Ensure blog post images are responsive */
.blog-content img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */

/* Responsive heading scaling */
@media (max-width: 768px) {
    h1.display-3 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1.display-3 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* ===== Blog Styles ===== */

/* Blog post metadata container */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.blog-post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Blog category badges */
.blog-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 1rem;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
}

.blog-category-badge:hover {
    background-color: #5a6268;
    color: #fff;
    text-decoration: none;
}

/* ===== Utility Classes ===== */

/* Better word breaking for long email addresses */
.word-break-all {
    word-break: break-all;
}

/* External link icon */
.external-link::after {
    content: " \2197";
    font-size: 0.8em;
    opacity: 0.6;
}

/* ===== Accessibility ===== */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Improve focus visibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
