/* Reset & Base */
body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #e2e2e2;
    background-image: linear-gradient(to bottom, #d4d4d4 0%, #e2e2e2 100%);
    background-repeat: repeat-x;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

h1, h2, h3, h4, p, ul, li {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

/* Layout */
.wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    max-width: 850px;
    background-color: transparent;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 250px;
    display: block;
    margin: 0 auto 20px;
}

.main-header h1 {
    font-size: 24px;
    color: #5e4b35;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #fff;
}

.subtitle {
    font-size: 14px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Paper / Content Box */
.paper {
    background-color: #fff;
    border: 1px solid #bda57e;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

/* Create a "double border" look common in Travian */
.paper::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #e7d5b0;
    border-radius: 3px;
    pointer-events: none;
}

.section-block {
    margin-bottom: 40px;
    position: relative;
    z-index: 1; /* Above the border */
}

.section-title {
    font-size: 18px;
    color: #5e4b35;
    border-bottom: 2px solid #d7c095;
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title .icon {
    margin-right: 10px;
    font-size: 20px;
}

.sub-title {
    font-size: 15px;
    color: #5e4b35;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Features */
.feature-box {
    background-color: #fdfcf8; /* Very light paper */
    border: 1px solid #dcdcdc;
    border-left: 4px solid #71D000; /* Travian Green */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feature-header h3 {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.badge {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    color: #fff;
}

.badge.new {
    background-color: #71D000;
    border: 1px solid #65ba00;
}

.badge.hot {
    background-color: #ff4500;
    border: 1px solid #cc3700;
}

.feature-body p {
    margin-bottom: 10px;
    color: #444;
}

.details-list {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.details-list li {
    margin-bottom: 5px;
    color: #555;
}

/* Cost Box */
.cost-box {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    color: #666;
}

.cost-label {
    font-weight: bold;
    color: #333;
}

.gold-value {
    color: #DAA520;
    font-weight: bold;
}

.gold-text {
    color: #DAA520;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.grid-item {
    background-color: #f9f9f9;
    border: 1px solid #e6e6e6;
    padding: 15px;
    border-radius: 4px;
}

.grid-item h4 {
    color: #5e4b35;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
}

.grid-item p {
    font-size: 12px;
    color: #555;
}

/* Quests */
.styled-list {
    padding-left: 20px;
    list-style-type: square;
    color: #5e4b35;
    margin-bottom: 15px;
}

.styled-list li {
    margin-bottom: 5px;
    color: #444;
}

.quest-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quest-card {
    background-color: #fff;
    border: 1px solid #d7c095;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.quest-card h4 {
    background-color: #f3e9d9;
    color: #5e4b35;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 13px;
}

.stage {
    font-size: 11px;
    margin-bottom: 5px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 5px;
}

.stage:last-child {
    border-bottom: none;
}

.gold-reward {
    color: #DAA520;
    font-weight: bold;
}

/* Bugfixes */
.bugfixes .fix-list {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.fix-list li {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #fff5f5;
    border-left: 3px solid #dc3545;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.hotfix-tag {
    background-color: #dc3545;
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 10px;
    font-weight: bold;
}

/* Content Images */
.content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto 0; /* Top margin, centered horizontally */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 11px;
}