/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    /* --- Color Palette --- */
    --primary-color: #0a2342;
    --accent-color: #4dabf7;
    --accent-color-hover: #1e88e5;

    /* --- Neutrals --- */
    --light-bg: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --border-color: #dee2e6;

    /* --- Typography --- */
    --font-primary: 'Lato', "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;

    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    background-color: #f4f7f6;
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Link Styling --- */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.just {
    text-align: justify;
}

.h1-style {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 100;
  line-height: 1.1;
  color: var(--text-color);
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: none;
  text-shadow: none;
}

/* --- Status Tag Styling --- */
.status-public {
    color: #28a745;
    font-weight: 700;
}

.status-embargo {
    color: #ffc107;
    font-weight: 700;
}

.status-restricted {
    color: #dc3545;
    font-weight: 700;
}

.status-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-tag.status-public {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-tag.status-embargo {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-tag.status-restricted {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.more-info {
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.loading-message,
.empty-message,
.error-message {
    text-align: center;
    padding: 1rem;
    font-style: italic;
    color: #6c757d;
}

.error-message {
    color: #dc3545;
}

/* --- Header / Navbar --- */
#header-placeholder {
     position: sticky;
     top: 0;
     z-index: 1000;
     width: 100%;
     background-color: var(--primary-color);
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
 .nav-logo:hover {
     color: var(--accent-color);
     text-decoration: none;
 }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-item {
     padding: 5px 0;
}

.nav-link {
    color: var(--light-text);
    font-weight: 400;
    font-size: 1.1rem;
    padding: 8px 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    text-decoration: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
}

/* --- Footer --- */
#footer-placeholder {
    margin-top: auto;
}

footer {
    background-color: #343a40;
    color: var(--light-text);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}
footer a {
    color: var(--accent-color);
}
footer a:hover {
    color: var(--accent-color-hover);
}

/* --- General Content Styling --- */
main {
    padding: 2rem;
    max-width: 1100px;
    margin: 20px auto;
    flex-grow: 1;
    width: 90%;
}

.content-page {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Default heading colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
}
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.2rem; line-height: 1.4; }

section {
    margin-bottom: 2rem;
}

ul {
    list-style-position: inside;
    margin-left: 1rem;
}
li {
    margin-bottom: 0.5rem;
}

/* --- Responsive --- */
@media(max-width: 768px) {
    header {
        padding: 0 1rem;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        gap: 0;
        padding-bottom: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 0;
        width: 100%;
    }
    .nav-item .nav-link {
         display: block;
         padding: 1rem 0;
         border-top: 1px solid rgba(255,255,255, 0.1);
         border-bottom: none;
         width: 100%;
    }
    .nav-item:first-child .nav-link {
        border-top: none;
    }

     .nav-menu.active .nav-link:hover {
         background-color: rgba(255,255,255, 0.05);
         color: var(--accent-color);
         border-bottom: none;
     }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.1rem; }

    main, .content-page {
        padding: 1.5rem;
        width: 95%;
        margin-top: 15px;
    }
    .content-page {
         padding: 1.5rem 1rem;
    }
}
