/*
 * OIG LSC Styles - oig-style.css
 * Styles for the OIG-branded header, navigation, footer, and AIMS application nav.
 * Design matches www.oig.lsc.gov (white header, serif titles, dropdown menus).
 * Used by _OIGHeader.cshtml, _AppNavigation.cshtml, _OIGFooter.cshtml via _Layout.cshtml.
 */

:root {
    --oig-primary-blue: #112e51;
    --oig-secondary-blue: #205493;
    --oig-red: #cd2026;
    --oig-dark-gray: #323a45;
    --oig-light-gray: #f1f1f1;
    --oig-white: #ffffff;
    --oig-text-color: #212121;
}

/* ===== Header ===== */
.oig-header {
    background-color: var(--oig-white);
    color: var(--oig-text-color);
    position: relative;
    z-index: 1000;
}

.oig-header-top {
    background-color: var(--oig-white);
    padding: 0.75rem 0;
}

.oig-header-container,
.oig-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oig-branding {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.oig-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.oig-logo {
    height: 72px;
    width: auto;
}

.oig-logo--test {
    height: 72px;
    width: 72px;
    border-radius: 50%;
}

.oig-title-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.oig-title-link:hover {
    text-decoration: none;
}

.oig-title-main {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--oig-primary-blue);
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

.oig-title-sub {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--oig-red);
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

.oig-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.oig-report-fraud-btn {
    background-color: var(--oig-red);
    color: var(--oig-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.oig-report-fraud-btn:hover {
    background-color: #a51b1f;
    color: var(--oig-white);
    text-decoration: none;
}

.oig-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--oig-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== OIG Main Navigation ===== */
.oig-main-nav {
    background-color: var(--oig-white);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.oig-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.oig-nav-item {
    position: relative;
}

.oig-nav-item > a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--oig-dark-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.oig-nav-item > a:hover,
.oig-nav-item:hover > a {
    color: var(--oig-secondary-blue);
    background-color: transparent;
}

.oig-caret {
    font-size: 0.65em;
    margin-left: 0.15rem;
    vertical-align: middle;
    color: inherit;
}

/* Header dropdown menus */
.oig-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--oig-white);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 280px;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--oig-red);
}

.oig-has-dropdown:hover .oig-dropdown-menu {
    display: block;
}

.oig-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--oig-secondary-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.oig-dropdown-menu li a:hover {
    background-color: var(--oig-light-gray);
    color: var(--oig-primary-blue);
}

/* ===== Application Navigation ===== */
.aims-app-nav {
    background-color: var(--oig-light-gray);
    border-bottom: 2px solid #d6d7d9;
    padding: 0;
}

.oig-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aims-app-nav .oig-container {
    flex-wrap: wrap;
}

.aims-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.aims-nav-item a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--oig-primary-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.aims-nav-item a:hover {
    background-color: #e1e7f1;
    border-bottom-color: var(--oig-secondary-blue);
}

.aims-nav-item a.active {
    background-color: var(--oig-white);
    border-bottom-color: var(--oig-red);
    font-weight: 600;
}

.aims-user-info {
    padding: 0.875rem 0;
    color: var(--oig-dark-gray);
    font-size: 0.85rem;
}

.aims-user-info .logout-link {
    color: var(--oig-red);
    font-weight: 600;
    text-decoration: none;
}

.aims-user-info .logout-link:hover {
    text-decoration: underline;
}

.aims-register-login-link {
    color: var(--oig-secondary-blue);
    font-weight: 600;
    text-decoration: none;
    padding: 0.875rem 1.25rem;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.aims-register-login-link:hover,
.aims-register-login-link.active {
    background-color: #e1e7f1;
    border-bottom-color: var(--oig-red);
    color: var(--oig-primary-blue);
    text-decoration: none;
}

/* Application Nav Dropdown */
.aims-dropdown {
    position: relative;
}

.aims-caret {
    font-size: 0.7em;
    margin-left: 0.25rem;
}

.aims-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--oig-white);
    border: 1px solid #d6d7d9;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    z-index: 1001;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.aims-dropdown:hover .aims-dropdown-menu {
    display: block;
}

.aims-dropdown-menu li a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--oig-primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    border-bottom: none;
}

.aims-dropdown-menu li a:hover {
    background-color: #e1e7f1;
}

/* ===== Footer ===== */
.oig-footer {
    background-color: var(--oig-dark-gray);
    color: var(--oig-white);
    margin-top: 3rem;
}

.oig-footer-main {
    padding: 3rem 0;
}

.oig-footer-main .oig-container {
    display: block;
}

.oig-footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.oig-footer-column h4 {
    color: var(--oig-white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--oig-red);
    padding-bottom: 0.5rem;
}

.oig-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oig-footer-column ul li {
    margin-bottom: 0.4rem;
}

.oig-footer-column a {
    color: #c9c9c9;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.oig-footer-column a:hover {
    color: var(--oig-white);
    text-decoration: underline;
}

.oig-footer-bottom-band {
    background-color: #1b1f26;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.oig-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0.75rem;
}

.oig-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.oig-footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.oig-footer-logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    flex: 0 0 auto;
}

.oig-footer-org-name {
    display: flex;
    flex-direction: column;
}

.oig-footer-org-main {
    color: var(--oig-white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.oig-footer-org-sub {
    color: #c9c9c9;
    font-size: 0.95rem;
    line-height: 1.3;
}

.oig-footer-bottom-right {
    text-align: right;
}

.oig-footer-address {
    color: #c9c9c9;
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: normal;
}

.oig-footer-address a {
    color: var(--oig-white);
    text-decoration: none;
}

.oig-footer-address a:hover {
    text-decoration: underline;
}

.oig-footer-secondary-nav {
    padding: 0.75rem 0;
}

.oig-footer-secondary-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.oig-footer-secondary-nav a {
    color: #c9c9c9;
    text-decoration: none;
    font-size: 0.875rem;
}

.oig-footer-secondary-nav a:hover {
    color: var(--oig-white);
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media screen and (max-width: 1100px) {
    .oig-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .oig-logo {
        height: 58px;
    }

    .oig-title-main {
        font-size: 1.25rem;
    }

    .oig-title-sub {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 992px) {
    .oig-nav-item > a {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .oig-report-fraud-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .oig-logo {
        height: 55px;
    }

    .oig-title-main {
        font-size: 1.1rem;
    }

    .oig-title-sub {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .oig-menu-toggle {
        display: flex;
    }

    .oig-header-top {
        padding: 1rem 0;
    }

    .oig-logo {
        height: 48px;
    }

    .oig-branding {
        gap: 0.75rem;
    }

    .oig-title-main {
        font-size: 1.1rem;
    }

    .oig-title-sub {
        font-size: 0.85rem;
    }

    .oig-header-right {
        display: none;
    }

    .oig-main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-top: none;
    }

    .oig-main-nav.active {
        max-height: 800px;
        border-top: 1px solid #ddd;
    }

    .oig-nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .oig-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .oig-nav-item {
        width: 100%;
        border-bottom: 1px solid #e8e8e8;
    }

    .oig-nav-item > a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .oig-dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: var(--oig-light-gray);
        min-width: 100%;
    }

    .oig-has-dropdown:hover .oig-dropdown-menu {
        display: block;
    }

    .oig-dropdown-menu li a {
        padding: 0.5rem 2.5rem;
        font-size: 0.9rem;
    }

    .aims-app-nav .oig-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .aims-nav-list {
        width: 100%;
    }

    .aims-nav-item {
        width: 100%;
    }

    .aims-nav-item a {
        border-bottom: 1px solid #d6d7d9;
    }

    .aims-user-info {
        width: 100%;
        padding: 0.875rem 1.25rem;
        background-color: #d6d7d9;
    }

    .oig-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oig-footer-bottom .oig-container {
        flex-direction: column;
        text-align: center;
    }

    .oig-footer-info {
        flex-direction: column;
    }

    .oig-footer-secondary-nav ul {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .oig-header-container {
        padding: 0 1rem;
    }

    .oig-logo {
        height: 50px;
    }

    .oig-title-main {
        font-size: 0.95rem;
    }

    .oig-title-sub {
        font-size: 0.75rem;
    }

    .oig-branding {
        gap: 0.5rem;
    }

    .oig-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .oig-header,
    .oig-main-nav,
    .aims-app-nav,
    .oig-footer {
        display: none !important;
    }
}
