/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, #0a1929 0%, #000000 100%);
    color: #ffffff;
}

/* Header styles */
header, .header-mobile {
    width: 100%;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Typography */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(100, 149, 237, 0.5);
    letter-spacing: 1px;
    margin: 0;
}

h2 {
    font-weight: 700;
    font-size: 1.8rem;
    color: #c0aa76;
    margin: 20px 0;
}

p {
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Navigation styles */
nav, .nav-mobile {
    width: 100%;
    padding: 20px;
    background: rgba(10, 25, 41, 0.8);
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #c0aa76;
    text-decoration: none;
    font-weight: bold;
    border: none;
    padding: 5px 10px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #c0aa76;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    background-color: transparent;
    color: #c0aa76;
}

/* Section styles */
section {
    width: 90%;
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(10, 25, 41, 0.5);
    border-radius: 10px;
    border: 1px solid #2a4a6a;
}

/* Link and button styles */
a {
    color: #c0aa76;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid #c0aa76;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

a:hover {
    background-color: #c0aa76;
    color: #0a1929;
    text-shadow: none;
}

button {
    background-color: transparent;
    color: #c0aa76;
    border: 1px solid #c0aa76;
    padding: 12px 25px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #c0aa76;
    color: #0a1929;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form styles */
.form-container {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #c0aa76;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(10, 25, 41, 0.7);
    border: 1px solid #2a4a6a;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c0aa76;
    box-shadow: 0 0 5px rgba(192, 170, 118, 0.5);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: #c0aa76;
}

.form-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
}

/* Avatar container styles */
.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(10, 25, 41, 0.7);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 800px;
}

.avatar-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Authentication-based link visibility */
.authenticated-link {
    display: none; /* Hidden by default, JavaScript will show it if user is authenticated */
}

.unauthenticated-link {
    display: block; /* Shown by default, JavaScript will hide it if user is authenticated */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .avatar-container {
        margin: 20px 0;
        padding: 15px;
    }
    
    section {
        padding: 15px;
        margin: 15px 0;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    a, button {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    label {
        font-size: 1rem;
    }
    
    input, select, textarea {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    header, .header-mobile {
        padding: 20px 10px;
    }
    
    .avatar-container {
        margin: 15px 0;
        padding: 10px;
    }
    
    section {
        padding: 12px;
        width: 95%;
    }
    
    p {
        margin-bottom: 15px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    nav, .nav-mobile {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
        background: rgba(10,25,41,0.98);
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 100;
        border-bottom: 1px solid #2a4a6a;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links a {
        padding: 18px 20px;
        font-size: 1.2rem;
        border-bottom: 1px solid #2a4a6a;
        width: 100%;
        text-align: left;
    }
    
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: #c0aa76;
        margin-left: auto;
        z-index: 101;
    }
}

@media (min-width: 601px) {
    .hamburger {
        display: block;
    }
}

/* Shared hamburger menu functionality */
.hamburger-menu-js {
    /* This class is used to identify elements that need hamburger menu JS */
}
