/* shared-styles.css - Common styles for all pages */

/* CSS Variables */
:root {
    --header-image: url('/BG/Banner1.png');
    --body-bg-image: url('/WebBG2.png');
    --primary-color: #184E77;
    --secondary-color: #43256E;
    --accent-color: #76C893;
    --text-color: #FCEAFF;
    --bg-dark: #08031A;
    --link-color: #D9ED92;
    --hover-color: #3A6EA5;
    --main-bg: rgba(26, 117, 159, 0.9);
    --sidebar-bg: #184e77;
    --box-bg: #124559;
    --border-color: #34a0a4;
    --footer-bg: #1d3557;
    --strong-color: #a8dadc;
}

/* Font Loading */
@font-face {
    font-family: 'Nunito';
    src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('https://sadhost.neocities.org/fonts/Nunito-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('https://sadhost.neocities.org/fonts/Nunito-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background-color: var(--bg-dark);
    background-image: var(--body-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    width: 100%;
    background: var(--primary-color) var(--header-image) no-repeat center/cover;
    height: 150px;
    border-radius: 0 0 15px 15px;
}

/* Navigation */
.navbar {
    background-color: #1b263b;
    margin-bottom: 10px;
    border-radius: 10px;
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    gap: 5px;
}

.navbar li {
    flex: 1;
    text-align: center;
}

.nav-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 120px;
}

.nav-button:hover,
.nav-button:focus {
    background-color: var(--hover-color);
    text-shadow: 0 0 5px var(--link-color);
    transform: translateY(-2px);
}

.nav-button[aria-current="page"] {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 10px;
    flex: 1;
}

.content {
    flex: 1;
    background-color: var(--main-bg);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    order: 2;
}

.sidebar {
    background-color: var(--sidebar-bg);
    width: 200px;
    padding: 20px;
    font-size: 0.9em;
    border-radius: 20px 0 0 20px;
    order: 1;
}

/* Sidebar Content */
.sidebar h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sidebar h3 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.update-box {
    background-color: var(--box-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar ul {
    padding-left: 20px;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: var(--link-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover,
.sidebar a:focus {
    text-decoration: underline;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
    border-radius: 15px 15px 0 0;
}

/* Typography */
h1, h2, h3 {
    color: var(--accent-color);
}

h1 {
    font-size: 1.8rem;
}

strong {
    color: var(--strong-color);
}

/* Links */
.content a {
    color: var(--link-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.content a:hover,
.content a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 800px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
        border-radius: 0 0 20px 20px;
    }

    .content {
        order: 1;
        border-radius: 20px 20px 0 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .nav-button {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        height: 120px;
    }

    .sidebar {
        padding: 15px;
    }

    .content {
        padding: 15px;
    }
}

/* Accessibility improvements */
.nav-button:focus,
.sidebar a:focus,
.content a:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}