@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

html,
body,
#app {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #1e293b;
}

/* REMOVE ALL DEFAULT BLAZOR / BOOTSTRAP SPACING */
.page,
main,
.content,
.content-main,
article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
}

h1:focus {
    outline: none;
}

p {
    margin-top: 0;
    line-height: 1.7;
}

/* LINKS */
a,
.btn-link {
    color: #0ea5e9;
    text-decoration: none;
}

a:hover {
    color: #0369a1;
}

/* BUTTONS */
.btn {
    display: inline-block;
    border-radius: 999px;
    padding: .9rem 1.6rem;
    font-weight: 700;
    transition: all .2s ease;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f4c81, #0ea5e9);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: .96;
}

/* FOCUS */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow:
            0 0 0 0.1rem white,
            0 0 0 0.25rem rgba(14,165,233,.45);
}

/* FORMS */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid #22c55e;
}

.invalid {
    outline: 2px solid #ef4444;
}

.validation-message {
    color: #ef4444;
    font-size: .9rem;
    margin-top: .25rem;
}

/* HERO */
.hero {
    width: 100%;
    min-height: 90vh;

    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 3rem;
    align-items: center;

    margin: 0;
    padding: 5rem;

    background:
            linear-gradient(
                    135deg,
                    rgba(3, 37, 76, .92),
                    rgba(14, 165, 233, .72)
            );

    color: white;
}

/* CONTENT SECTIONS */
.section,
.latest {
    width: 100%;
    margin: 0;
    padding: 5rem;
}

/* GRID */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.media-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

/* ERROR BAR */
#blazor-error-ui {
    background: #fef3c7;
    color: #7c2d12;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .85rem 1.25rem;
    position: fixed;
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: .7rem;
}

/* ERROR BOUNDARY */
.blazor-error-boundary {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.blazor-error-boundary::after {
    content: "An unexpected error has occurred.";
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }

    .section,
    .latest {
        padding: 3rem 2rem;
    }

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

    h1 {
        font-size: 2.5rem;
    }
}

.site-footer {
    width: 100%;
    background: #041f46;
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 3rem;

    flex-wrap: wrap;
}

.footer-brand h3 {
    margin-bottom: .5rem;
}

.footer-brand p {
    opacity: .8;
    max-width: 500px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: .85;
    transition: .2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 900px) {

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.construction-banner {
    display: inline-block;

    margin-bottom: 2rem;
    padding: .85rem 1.4rem;

    background: rgba(255,255,255,.15);

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 999px;

    backdrop-filter: blur(12px);

    font-weight: 700;
    letter-spacing: .03em;

    color: #fff8dc;

    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.app-link {
    margin-top: 2.5rem;
}

.app-link a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem 1.4rem;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);

    border-radius: 18px;

    backdrop-filter: blur(12px);

    color: white;
    text-decoration: none;

    transition: .25s ease;
}

.app-link a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.18);
}

.app-link img {
    height: 42px;
    width: auto;
}

.app-link span {
    display: block;
    font-size: .8rem;
    opacity: .8;
}

.app-link strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-charity {
    margin-top: 1.5rem;
}

.footer-charity a {
    display: inline-block;

    padding: 1rem 1.4rem;

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;

    background: rgba(255,255,255,.06);

    color: white;
    text-decoration: none;

    transition: .2s ease;
}

.footer-charity a:hover {
    background: rgba(255,255,255,.12);
}

.footer-charity strong {
    font-size: 1.1rem;
    letter-spacing: .05em;
}
