/* Basic Setup */
:root {
    --osrs-bg: #090909;
    --osrs-text: #dccaa1;
    /* Light Parchment Text */
    --gold-light: #ffd700;
    --gold-base: #cea542;
    --gold-dark: #966f1e;
    --stone-dark: #1e2024;
    --stone-light: #2a2d33;
    --parchment-bg: #e2d6b5;
    --parchment-text: #2b1d11;
}

body.osrs-body {
    background-color: #050505;
    background-image: url('bg_stone.png');
    /* We keep the stone texture if available, or fallback to dark */
    background-repeat: repeat;
    color: var(--osrs-text);
    font-family: 'Cinzel', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Layout */
.main-container {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 50px;
    position: relative;
    background: #0e1014;
    /* Solid dark background */
    box-shadow: 0 0 50px #000;
    border-left: 2px solid #333;
    border-right: 2px solid #333;
    min-height: 100vh;
}

/* Header */
.osrs-header {
    text-align: center;
    padding: 4rem 0 2rem;
    background: #131619;
    /* Solid header */
    border-bottom: 4px solid var(--gold-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.osrs-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #966f1e, #cea542, #966f1e);
}

.logo-box h1 {
    font-family: 'Cinzel Decorative', serif;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #d4c095 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
    font-size: 5rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 700;
    filter: drop-shadow(0 2px 0px #000);
}

.logo-box p {
    color: var(--gold-base);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
    background: #0e1014;
    /* Match main container, no more stone texture here */
}

/* Parchment Area - Now a "Stone Tablet" or "News Container" to match Screenshot 1 */
.parchment-area {
    width: 100%;
    max-width: 800px;
}

/* Post Styling */
.news-post {
    background: #1e2126;
    /* lighter than main container for contrast */
    border: 1px solid #3a3f4a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    position: relative;
}

/* Fancy Border for News Post (Meaty!) */
.news-post::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2a2d33, #5a5f6b, #1e2024);
    z-index: -1;
    border-radius: 2px;
}

.post-header {
    background: linear-gradient(90deg, #23272e, #1a1d21);
    /* Dark Header */
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3f4a;
}

.post-header h2 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #e2d6b5;
    /* Light text */
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.date {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #888;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.post-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #aeb4bf;
    /* Soft grey text */
}

.post-body strong {
    color: #fff;
    font-weight: 700;
}

.highlight-gold {
    color: var(--gold-light);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.hero-img-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 1rem 0;
    border-radius: 4px;
}

.hero-img-container img {
    max-width: 100%;
    border-radius: 2px;
}

/* Buttons - The 'Meaty' Gold Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3rem;
}

.osrs-btn {
    background: linear-gradient(180deg, #f0c354 0%, #dbaf3e 50%, #b88a23 51%, #a67c1e 100%);
    border: 2px solid #5e4611;
    color: #3b2809;
    /* Dark brown text for contrast on gold */
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 16px 48px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 0 #5e4611,
        0 10px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.osrs-btn:hover {
    background: linear-gradient(180deg, #fff1aa 0%, #ecc85e 50%, #cfa030 51%, #bd9026 100%);
    color: #221603;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 5px 0 #5e4611,
        0 15px 20px rgba(0, 0, 0, 0.4);
}

.osrs-btn:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 0 #5e4611,
        0 2px 2px rgba(0, 0, 0, 0.5);
}

/* Remove the old corners, new buttons are solid */
.corner {
    display: none;
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    font-family: 'Cinzel', serif;
}

.stats-table th {
    background: linear-gradient(180deg, #30353d 0%, #202329 100%);
    color: #e2d6b5;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #000;
    font-weight: 700;
    letter-spacing: 1px;
}

.stats-table td {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    color: #aeb4bf;
    font-weight: 500;
}

.stats-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.item-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.blue {
    background: #007aff;
    box-shadow: 0 0 10px #007aff;
}

.red {
    background: #ff3b30;
    box-shadow: 0 0 10px #ff3b30;
}

.white {
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.yellow {
    background: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

.green {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.purple {
    background: #800080;
    box-shadow: 0 0 10px #800080;
}

/* Footer - Parchment style from screenshot 1 footer */
.osrs-footer {
    background: var(--parchment-bg);
    background-image: url('bg_parchment.png');
    padding: 3rem 0;
    text-align: center;
    color: #4a3b2a;
    /* Dark brown text for parchment */
    border-top: 4px solid #2a2d33;
    position: relative;
}

.osrs-footer::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.osrs-footer p {
    font-weight: 600;
    letter-spacing: 0.5px;
}