/* --- START OF FILE unearthed-style.css --- */
body {
    margin: 0; padding: 0;
    font-family: 'Amaranth', sans-serif;
    background-color: #d8cfc4;
    background-image: url('images/bg_pattern.png');
    background-repeat: repeat;
    color: #4a2c1d;
}
a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
ul, li { list-style: none; padding: 0; margin: 0; }

.main-header {
    background: linear-gradient(to right, #5F2100 0%, #8D6E63 100%);
    display: flex; flex-direction: column;
}
.top-info-bar {
    background: linear-gradient(to right, #8D6E63, #4E342E);
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 20px; color: white;
}
.social-icons img { width: 24px; height: 24px; margin-right: 15px; border-radius: 5px; }
.auth-lang-container { display: flex; font-weight: 700; font-size: 14px; }
.lang-toggle { background: rgba(0,0,0,0.2); padding: 2px 5px; border-radius: 5px; display: flex; }
.lang-btn { padding: 2px 6px; cursor: pointer; color: rgba(255,255,255,0.7); }
.lang-btn.active { background-color: #401600; color: white; }

.brand-wrapper { display: flex; align-items: center; padding: 20px; }
.logo-container { width: 80px; height: 80px; background-color: #5F2100; display: flex; justify-content: center; align-items: center; margin-right: 20px; }
.logo-container img { width: 100%; object-fit: contain; }
.brand-text h1 { margin: 0; font-size: 24px; color: white; text-transform: uppercase; }

.search-nav-container { background-color: #4E342E; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.search-box { display: flex; background: white; border-radius: 6px; width: 100%; margin-right: 15px; height: 35px; overflow: hidden; align-items: center; }
.search-box input { border: none; padding: 0 15px; width: 100%; outline: none; font-family: 'Amaranth', sans-serif; color: #555; }
.search-box button { background: transparent; border: none; cursor: pointer; padding: 0 15px; }
.page-indicator { padding: 0 15px; font-weight: 700; font-style: italic; white-space: nowrap; color: #5F2100; }

.menu-btn { background: white; color: #5F2100; min-width: 40px; height: 35px; display: flex; justify-content: center; align-items: center; border-radius: 6px; cursor: pointer; }
.dropdown-menu { display: none; background-color: #5F2100; position: absolute; top: 180px; right: 0; width: 200px; z-index: 100; }
.dropdown-menu.active { display: block; }
.dropdown-menu a { display: block; padding: 12px 20px; color: white; border-bottom: 1px solid #694431; }

.content-wrapper { padding: 20px; max-width: 600px; margin: 0 auto; min-height: 60vh; }

/* Cards & Sections */
.card-section { position: relative; width: 300px; margin: 0 auto 25px auto; border-radius: 12px; overflow: hidden; height: 220px; background-color: #000; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.card-bg { width: 100%; height: 100%; object-fit: cover; }
.white-label { position: absolute; background: white; color: #5d331f; padding: 5px 20px; font-weight: 700; z-index: 2; }
.map-section .white-label { bottom: 55px; right: 0; border-radius: 20px 0 0 20px; }
.card-title-bottom, .card-title-bottom-dark { position: absolute; bottom: 0; width: 100%; padding: 12px; font-weight: 700; text-align: center; box-sizing: border-box; z-index: 1; }
.card-title-bottom { background: rgba(255, 255, 255, 0.95); }
.card-title-bottom-dark { background: white; color: #4a2c1d; }

.history-container { background: #5d331f; border-radius: 12px; padding: 5px; margin-top: 30px; color: #d8cfc4; }
.history-container h2 { text-align: center; margin: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.history-item { background: rgba(255,255,255,0.15); margin: 5px; padding: 10px; font-size: 14px; }

/* News & Cities */
.latest-news-card { background: rgba(95, 33, 0, 0.75); color: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; }
.news-title { font-weight: 700; margin-bottom: 5px; }
.city-card { background-color: #4e2a1e; border-radius: 10px; overflow: hidden; margin-bottom: 20px; color: white; }
.city-header { padding: 10px; }
.city-image img { width: 100%; display: block; }

/* Encyclopedia */
.news-card { position: relative; margin-bottom: 30px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.15); background: white;}
.news-img { width: 100%; display: block; }
.date-label { position: absolute; top: 15px; left: 0; background: #5F2100; color: white; padding: 5px 15px; border-radius: 0 20px 20px 0; }
.tag-label { position: relative; background: #eee; color: #5F2100; padding: 5px 20px; font-weight: 700; display: inline-block; margin-top: -30px; margin-bottom: 10px; z-index: 5; border-radius: 0 20px 20px 0; }
.news-text-block { padding: 15px; }

/* Terms */
.term-item { padding: 10px 0; border-bottom: 2px solid #5F2100; }
.term-name { font-weight: 700; }

/* Add Data */
.artifact-preview-card { position: relative; width: 300px; height: 200px; background: #000; border: 2px solid #5F2100; margin: 0 auto 10px; border-radius: 10px; overflow: hidden; }
.artifact-preview-card img { width: 100%; height: 100%; object-fit: cover; }
.region-label { position: absolute; bottom: 0; width: 100%; background: rgba(95,33,0,0.9); color: white; text-align: center; padding: 10px; }
.action-btn { display: flex; align-items: center; border-radius: 10px; padding: 15px; margin-bottom: 15px; color: white; font-weight: 700; }
.brown-action-btn { background: #5F2100; }
.blue-action-btn { background: #56B4D3; }
.icon-box { margin-right: 15px; font-size: 24px; }
.hashtag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.hashtag-item { background: rgba(95,33,0,0.6); color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px; }

/* Pagination & Footer */
.pagination-container { display: flex; justify-content: center; margin-top: 20px; gap: 10px; }
.pagination-btn { background: #5F2100; color: white; padding: 5px 12px; border-radius: 4px; }
.main-footer { background: #8a6e62; color: white; text-align: center; padding: 12px; margin-top: 30px; }

/* Live Search */
.live-search-results { position: absolute; top: 100%; left: 0; width: 100%; background: white; display: none; z-index: 1000; border-radius: 0 0 5px 5px; box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.live-search-item { padding: 10px; border-bottom: 1px solid #eee; display: block; color: #333; }
.live-search-item:hover { background: #eee; }
.ls-category { font-size: 10px; color: #5F2100; font-weight: bold; }