/*
Theme Name: Tavern Notice Board
Theme URI: https://example.com/tavern-notice-board
Author: Adventurer's Guild
Author URI: https://example.com
Description: A wooden notice board theme with a Dungeons & Dragons tavern aesthetic. Features parchment notes, dagger pins, runic tags, and hanging wooden sign menus.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, custom-background, theme-options, threaded-comments, two-columns, right-sidebar
Text Domain: tavern-notice-board
*/

:root {
    --wood-dark: #2b1704;
    --wood-mid: #4a2c11;
    --wood-light: #704723;
    --wood-grain: #3d220a;
    --parchment: #f4e4bc;
    --parchment-border: #d2b48c;
    --parchment-shadow: rgba(0, 0, 0, 0.4);
    --ink: #2c1d11;
    --gold: #d4af37;
    --crimson: #8b0000;
}

body {
    background-color: var(--wood-dark);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0,0,0,0.15) 40px, rgba(0,0,0,0.15) 42px),
        linear-gradient(90deg, #231203 0%, #3a200a 25%, #2b1704 50%, #3d230c 75%, #231203 100%);
    background-size: 100% 100%;
    color: var(--ink);
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.notice-board-frame {
    max-width: 1100px;
    margin: 30px auto;
    border: 18px solid var(--wood-mid);
    border-image: linear-gradient(to bottom right, #5c3718, #2b1704, #4a2c11) 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 50px rgba(0,0,0,0.8);
    background: repeating-linear-gradient(90deg, #3a210b, #3a210b 80px, #2e1907 80px, #2e1907 160px);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

/* Header & Wooden Navigation */
header.site-header {
    text-align: center;
    margin-bottom: 40px;
}

.site-title {
    font-size: 2.8rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px #000, 0 0 10px rgba(212, 175, 55, 0.5);
    margin: 0 0 10px 0;
    font-family: 'Cinzel', 'Trajan Pro', 'Georgia', serif;
    letter-spacing: 2px;
}

.site-description {
    color: #d2b48c;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Hanging Wooden Menu */
.main-navigation {
    background: linear-gradient(180deg, #5a3517 0%, #3b200b 100%);
    border: 2px solid var(--gold);
    border-radius: 6px;
    display: inline-block;
    padding: 5px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--parchment);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    display: block;
    transition: color 0.2s, text-shadow 0.2s;
}

.main-navigation a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* Layout Grid */
.board-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .board-container {
        grid-template-columns: 1fr;
    }
}

/* Parchment Post Cards */
.parchment-card {
    background-color: var(--parchment);
    background-image: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(139,69,19,0.1) 100%);
    border: 1px solid var(--parchment-border);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 5px 8px 15px var(--parchment-shadow);
    transform: rotate(-0.5deg);
    border-radius: 2px 25px 3px 15px / 15px 3px 25px 2px;
}

.parchment-card:nth-child(even) {
    transform: rotate(0.8deg);
}

/* Pin Effect */
.parchment-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #a8a8a8, #333);
    border-radius: 50%;
    box-shadow: 0 3px 5px rgba(0,0,0,0.6);
}

.entry-title {
    margin-top: 5px;
    font-size: 1.8rem;
    color: #3b1d06;
    border-bottom: 2px dashed #b89768;
    padding-bottom: 8px;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.85rem;
    color: #6e543c;
    margin-bottom: 15px;
    font-style: italic;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.widget_tag_cloud a {
    background: #3a220d;
    color: var(--gold) !important;
    border: 1px solid #7a5026;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem !important;
    transition: all 0.2s;
}

.widget_tag_cloud a:hover {
    background: var(--crimson);
    color: #fff !important;
    border-color: #ff4500;
}

/* Footer Styling */
footer.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--wood-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b38b5d;
    font-size: 0.9rem;
}

footer.site-footer a {
    color: var(--gold);
    text-decoration: none;
}

footer.site-footer a:hover {
    text-decoration: underline;
}
