@font-face {
    font-family: 'TrajanPro';
    src: url('../font/TrajanPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TrajanPro';
    src: url('../font/TrajanPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    /* Colors */
    --color-bg-dark: #121212;
    --color-bg-panel: #1a1510;
    --color-text: #e0d8c3;
    --color-primary: #cfa569;
    /* Gold */
    --color-primary-hover: #e5c185;
    --color-accent-red: #8b2323;
    --color-accent-blue: #1e90ff;
    --color-border: #5c4e38;

    /* Fonts */
    --font-titles: 'TrajanPro', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-titles);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navigation - "Game UI" Style */
.main-nav {
    background-color: #1a2325;
    /* Dark Teal/Slate from reference */
    border-bottom: 3px solid #3c2f25;
    /* Bronze/Wood border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 1px solid #5c4e38;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    flex: 0 0 auto;
}

.header-nav {
    flex: 1;
    justify-content: center;
}

.header-auth {
    flex: 0 0 auto;
}

.header-separator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
    margin: 0 20px;
    position: relative;
    opacity: 0.7;
}

.header-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-primary);

}

.logo {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(to bottom, #d4af37, #8b7355);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid #5c4e38;
    padding: 0 15px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2b1d16;
    /* Dark background for logo container */
    box-shadow: inset 0 0 10px #000;
}

.nav-links {
    display: flex;
    gap: 10px;
    background: #0f1516;
    /* Darker inset for links container */
    padding: 5px;
    border: 2px solid #3c2f25;
    border-radius: 4px;
    box-shadow: inset 0 0 10px #000;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 30px;
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 1.2rem;
    color: #8fa0a0;
    white-space: nowrap;
    /* Slate grey text */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Hover effect mimicking game buttons */
.nav-links a:hover,
.nav-links a.active {
    color: #e0d8c3;
    background: linear-gradient(to bottom, #2f4f4f, #1a2325);
    border: 1px solid #5c4e38;
    box-shadow: 0 0 10px rgba(92, 78, 56, 0.3);
    text-shadow: 0 0 5px rgba(224, 216, 195, 0.5);
}

.auth-links li a {
    font-size: 0.8rem;
    padding: 0 15px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Separator lines between links (optional, visual flair) */
.nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: #333;
    display: none;
    /* Can enable if we want separators */
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to bottom, #4a3b2a, #2a2118);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-titles);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(to bottom, #5c4e38, #3a2e22);
    box-shadow: 0 0 15px var(--color-primary);
    transform: translateY(-2px);
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 15px;
}

/* Hero Section Styles */
.hero {
    /* Background managed inline or via class switch */
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content {
    z-index: 2;
    animation: fadeIn 2s ease-out;
}

.game-title {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(207, 165, 105, 0.5);
    background: linear-gradient(to bottom, #fff, var(--color-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #ccc;
}

/* Features Section */
.features-section {
    padding: var(--section-padding);
    background: radial-gradient(circle at center, #251e15, var(--color-bg-dark));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.icon-wrapper {
    margin-bottom: 20px;
    display: inline-flex;
    padding: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.icon-wrapper img {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.feature-card:hover .icon-wrapper {
    border-color: var(--color-primary);
    background: rgba(207, 165, 105, 0.1);
    transform: rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* Gallery Section */
.media-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #000;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: #555;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item::after {
    content: 'SCREENSHOT';
    font-family: var(--font-titles);
    letter-spacing: 2px;
}

.gallery-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

/* Download Section */
.download-section {
    padding: var(--section-padding);
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('../images/hero_background.png');
    /* Reuse hero bg for texture */
    background-size: cover;
    background-position: center;
    text-align: center;
}

.download-box {
    background: rgba(26, 21, 16, 0.9);
    padding: 50px;
    border: 1px solid var(--color-border);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.requirements {
    text-align: left;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--color-accent-blue);
}

.requirements h3 {
    color: var(--color-accent-blue);
    margin-bottom: 15px;
}

.requirements ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.requirements ul li::before {
    content: '•';
    color: var(--color-accent-blue);
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    padding: 60px 0;
    background-color: #0b0907;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: #666;
    background: linear-gradient(to top, #000, #0b0907);
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    color: #8fa0a0;
    font-family: var(--font-titles);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(207, 165, 105, 0.5);
    border: 1px solid #3c2f25;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS Ornate Divider */
.divider-ornate {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    width: 100%;
    margin: 0;
    position: relative;
    border: none;
    opacity: 0.8;
}

.divider-ornate::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 5px rgba(207, 165, 105, 0.5);
}

/* Page Headers (Forum, Patch Notes) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Login Page */
.login-page {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(26, 21, 16, 0.95);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-titles);
    color: var(--color-primary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #0f1214;
    /* Very dark input bg */
    border: 1px solid #5c4e38;
    color: var(--color-text);
    font-family: var(--font-body);
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(207, 165, 105, 0.3);
    outline: none;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.form-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.form-links a:hover {
    color: var(--color-primary);
}

/* Forum Styles */
.forum-section,
.patch-section {
    padding: 60px 0;
    background-color: var(--color-bg-dark);
}

.forum-category {
    margin-bottom: 50px;
}

.category-header {
    background: #251e15;
    padding: 15px 20px;
    border-left: 4px solid var(--color-primary);
    border-bottom: 1px solid #3c2f25;
    margin-bottom: 20px;
}

.category-header h2 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0;
}

.forum-board {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.forum-board:hover {
    border-color: var(--color-accent-blue);
    transform: translateX(5px);
}

.board-icon {
    font-size: 2rem;
    margin-right: 20px;
    opacity: 0.7;
}

.board-info {
    flex-grow: 1;
}

.board-info h3 a {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.board-stats {
    color: #666;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Patch Notes Styles */
.patch-item {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
}

.patch-item.latest {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(207, 165, 105, 0.1);
}

.patch-item.latest::before {
    content: 'DERNIÈRE MISE À JOUR';
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--color-primary);
    color: #000;
    font-weight: bold;
    padding: 2px 10px;
    font-size: 0.8rem;
    border-radius: 2px;
}

.patch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid #3c2f25;
    padding-bottom: 15px;
}

.patch-header h2 {
    color: var(--color-accent-blue);
    font-size: 1.8rem;
    margin: 0;
}

.patch-date {
    color: #888;
    font-style: italic;
}

.patch-content h3 {
    color: var(--color-primary);
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.patch-content ul {
    list-style-type: square;
    padding-left: 20px;
    color: #ccc;
}

.patch-content ul li {
    margin-bottom: 8px;
}

/* Custom Login Button */
.btn-login {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #8B0000 0%, #3e0000 100%);
    color: #ffd700;
    font-family: var(--font-titles);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #daa520;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.4), transparent);
    transition: 0.5s;
}

.btn-login:hover {
    background: linear-gradient(135deg, #a30000 0%, #5a0000 100%);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.6);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    border-color: #ffd700;
}

.btn-login:hover::before {
    left: 100%;
}

.form-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.form-footer a {
    color: #888;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

/* --- Added from index.php --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Overriding previous .hero rule if any conflict */
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* --- Added from register.php --- */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
}

.register-box {
    background: rgba(15, 18, 20, 0.95);
    padding: 40px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
}

.register-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(207, 165, 105, 0.3);
    pointer-events: none;
    z-index: -1;
}

.register-box h2 {
    color: var(--color-primary);
    font-family: var(--font-titles);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 10px;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #8B0000, #5a0000);
    color: white;
    border: 1px solid #a30000;
    font-family: var(--font-titles);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-register:hover {
    background: linear-gradient(45deg, #a30000, #750000);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.login-link {
    margin-top: 20px;
    display: block;
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
}

.login-link:hover {
    color: var(--color-primary);
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ffcccc;
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #ccffcc;
}

/* --- Added from patch_detail.php --- */
.patch-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.patch-hero-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, #0b0907), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-primary);
}

.patch-meta {
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.article-content h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-accent-blue);
    padding-left: 15px;
}

.article-content h3 {
    color: #ddd;
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-content p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.article-content ul {
    list-style-type: none;
    padding-left: 0;
}

.article-content ul li {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    margin-bottom: 5px;
    border-left: 2px solid #555;
    color: #bbb;
}

.article-content ul li strong {
    color: var(--color-primary);
}

/* --- Added from forum_topic.php --- */
.topic-container {
    max-width: 1000px;
    margin: 0 auto;
}

.post {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.user-info {
    width: 150px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background-color: #333;
    border: 2px solid var(--color-primary);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
}

.user-name {
    color: var(--color-primary);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.user-rank {
    color: #888;
    font-size: 0.8rem;
}

.post-content {
    flex-grow: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    color: #666;
    font-size: 0.85rem;
}

.post-body {
    color: #ccc;
    line-height: 1.6;
    font-family: var(--font-body);
}

.reply-section {
    margin-top: 40px;
    background: var(--color-bg-panel);
    padding: 20px;
    border: 1px solid var(--color-border);
}

.reply-section textarea {
    width: 100%;
    height: 150px;
    background: #0f1214;
    border: 1px solid #5c4e38;
    padding: 15px;
    color: #ccc;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

/* Profile */
.profile-section {
    padding-top: 100px;
    text-align: center;
}

.profile-card {
    max-width: 600px;
    margin: 0 auto;
}

.profile-welcome {
    color: #ccc;
    margin-top: 20px;
}

.profile-id {
    color: #888;
    margin-top: 10px;
}

/* Profile Page Redesign */
.profile-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-header .icon-wrapper {
    width: 150px;
    height: 150px;
    border-color: var(--color-primary);
}

.profile-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-id {
    color: #888;
}

.profile-badges {
    margin-top: 10px;
}

.badge {
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
}

.badge-adventurer {
    background: var(--color-accent-red);
}

.badge-beta {
    background: var(--color-accent-blue);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border: 1px solid #3c2f25;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--color-primary);
    background: rgba(207, 165, 105, 0.05);
}

.stat-box h4 {
    color: #8fa0a0;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-titles);
}

.stat-box .stat-date {
    font-size: 1.2rem;
    color: #e0d8c3;
}

.profile-actions {
    margin-top: 30px;
    text-align: right;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Language Switcher */
.lang-switcher { display: flex; align-items: center; margin-left: 15px; font-family: var(--font-titles); font-size: 0.9rem; color: #8fa0a0; }
.lang-switcher a { margin: 0 5px; color: #666; transition: color 0.3s; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--color-primary); font-weight: bold; }
.lang-switcher span { color: #444; }
