/* core/static/core/css/styles.css */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    padding-bottom: 80px; /* Space for fixed footer */
    background-color: white; /* White background */
}

/* Load the Orbitron font */
@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Header and Navigation Styles */
header {
    background-color: rgb(93, 131, 153);
    color: white;
    font-family: 'Orbitron', sans-serif;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
}

/* Brand/Home Link (top-left) */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: #1a365d; /* Very dark blue on hover */
}

.brand-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    color: white; /* Pure white text */
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    font-weight: 500;
    position: relative;
}

/* Navigation Link States */
.nav-link:hover {
    color: #1a365d; /* Very dark blue on hover */
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.nav-link.active,
.nav-link:active {
    color: #718096; /* Grey when clicked/active */
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contact Link Special Positioning (top-right) */
.contact-link {
    margin-left: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Messages */
.messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    opacity: 0.7;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Page Background */
.page-background {
    min-height: 80vh;
    background-color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
    color: #333;
}

/* Centered Content Container */
.content-container {
    background: rgb(255, 255, 255);
    max-width: 95%;
    width: 95%;
    min-width: 320px;
    max-height: 70vh;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    text-align: left;
    color: #333;
    margin: 0 auto;
    transform: translateY(-2px);
}

/* Custom Scrollbar for Content Container */
.content-container::-webkit-scrollbar {
    width: 8px;
}

.content-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.content-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Content Typography */
.content-container h1 {
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.2;
}

.content-container h2 {
    color: #444;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.content-container h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.content-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.content-container ul,
.content-container ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-container a {
    color: #007bff;
    text-decoration: none;
}

.content-container a:hover {
    text-decoration: underline;
}

.content-container a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Responsive Content Container */
@media (max-width: 1200px) {
    .content-container {
        width: 100%;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 768px) {
    .content-container {
        width: 100%;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
        max-height: 80vh;
        padding: 1.5rem;
    }
    
    .page-background {
        padding: 1rem;
        min-height: 70vh;
    }
    
    .content-container h1 {
        font-size: 1.75rem;
    }
    
    .content-container h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .content-container {
        width: 100%;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
        padding: 1rem;
    }
    
    .content-container h1 {
        font-size: 1.5rem;
    }
    
    .content-container h2 {
        font-size: 1.125rem;
    }
}

/* Footer */
footer {
    background-color: rgb(93, 131, 153);
    color: white;
    font-family: 'Orbitron', sans-serif;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1a365d;
}

.footer-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgb(93, 131, 153);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .contact-link {
        margin-left: 0;
    }
    
    /* Hamburger animation when menu is open */
    .menu-open .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-open .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
    .messages {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .brand-link {
        font-size: 1.25rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .footer-info p {
        font-size: 0.875rem;
    }
    
    .footer-link {
        font-size: 0.875rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-link:hover {
        background-color: white;
        color: rgb(93, 131, 153);
    }
    
    .nav-link:focus {
        outline: 3px solid white;
    }
}

/* Form Styles */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.form-description {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.form-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

/* Form Input Styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Checkbox and Radio Styles */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin: 0;
}

.checkbox-item label,
.radio-item label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    flex: 1;
}

/* Field Help Text */
.field-help {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* Error Styles */
.field-errors {
    margin-top: 0.5rem;
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:focus {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact Form Specific Styles */
.contact-preferences {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.contact-preferences h4 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1rem;
}

.immediate-contact {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.immediate-contact label {
    font-weight: normal;
    color: #856404;
}

/* Search Form Styles */
.search-form {
    margin-bottom: 2rem;
}

.search-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-group input {
    flex: 1;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.search-btn:hover {
    background: #0056b3;
}

.search-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Form Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .checkbox-group,
    .radio-group {
        gap: 0.5rem;
    }
}

/* High Contrast Mode for Forms */
@media (prefers-contrast: high) {
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: #000;
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.5);
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #666;
        border: 2px solid #666;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .brand-link,
    .hamburger-line,
    .nav-menu,
    .btn,
    .form-group input,
    .form-group textarea,
    .form-group select {
        transition: none;
    }
    
    .message {
        animation: none;
    }
}

