/* Norman Patch - Stylesheet */
/* Stardew Valley inspired oldschool garden website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #87CEEB; /* Ciel bleu pour le fond général */
    font-family: Georgia, 'Times New Roman', serif;
    color: #3E2723;
    line-height: 1.6;
    padding: 20px;
    /* Le fond d'écran Stardew sera ajouté ici */
    background-image: url('stardew-background.png');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 300px;
}

/* Container principal */
#container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFFEF0;
    border: 4px solid #D4A574;
    box-shadow: 8px 8px 0px rgba(59, 41, 28, 0.3);
}

/* Header */
header {
    background-color: #8B7355;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 4px solid #D4A574;
}

header h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3em;
    color: #F4E8C1;
    text-shadow: 3px 3px 0px #3E2723;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header p {
    color: #F4E8C1;
    font-style: italic;
    font-size: 1.1em;
}

/* Layout 3 colonnes - méthode oldschool avec float */
#main-content {
    overflow: hidden; /* clearfix */
    padding: 0;
}

/* Colonne gauche - Navigation */
#sidebar-left {
    float: left;
    width: 20%;
    background-color: #8B7355;
    min-height: 600px;
    padding: 20px 15px;
    border-right: 3px solid #D4A574;
}

#sidebar-left h3 {
    color: #F4E8C1;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #D4A574;
    padding-bottom: 5px;
}

#sidebar-left ul {
    list-style: none;
}

#sidebar-left li {
    margin-bottom: 12px;
}

#sidebar-left a {
    color: #F4E8C1;
    text-decoration: none;
    border-bottom: 1px dotted #D4A574;
    display: block;
    padding: 5px;
    transition: all 0.2s;
}

#sidebar-left a:hover {
    background-color: #D4A574;
    color: #3E2723;
    border-bottom: 1px solid #3E2723;
    padding-left: 10px;
}

/* Colonne centrale - Contenu */
#content {
    float: left;
    width: 55%;
    background-color: #FFFEF0;
    min-height: 600px;
    padding: 30px;
}

#content h2 {
    font-family: 'Courier New', Courier, monospace;
    color: #6B4423;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 3px double #D4A574;
    padding-bottom: 10px;
}

#content h3 {
    font-family: 'Courier New', Courier, monospace;
    color: #6B4423;
    margin-top: 25px;
    margin-bottom: 15px;
}

#content p {
    margin-bottom: 15px;
}

/* Colonne droite - Widgets */
#sidebar-right {
    float: left;
    width: 25%;
    background-color: #8B7355;
    min-height: 600px;
    padding: 20px 15px;
    border-left: 3px solid #D4A574;
}

#sidebar-right h3 {
    color: #F4E8C1;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 2px solid #D4A574;
    padding-bottom: 5px;
}

#sidebar-right p {
    color: #F4E8C1;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.widget {
    background-color: rgba(244, 232, 193, 0.2);
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #D4A574;
}

/* Footer */
footer {
    clear: both;
    background-color: #8B7355;
    padding: 20px;
    text-align: center;
    border-top: 4px solid #D4A574;
    color: #F4E8C1;
    font-size: 0.9em;
}

/* Styles liens */
a {
    color: #5B8C5A;
    text-decoration: none;
    border-bottom: 2px dotted #5B8C5A;
}

a:hover {
    color: #87A96B;
    border-bottom: 2px solid #87A96B;
}

/* Style pour les dates/metadata */
.meta {
    color: #8B7355;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

/* Effet pixel pour certains éléments */
.pixel-border {
    border: 3px solid #3E2723;
    border-style: solid;
    image-rendering: pixelated;
}

/* Layout single-column pour les pages de contenu */
.single-column #container {
    max-width: 1200px;
}

.single-column #main-content {
    padding: 0 !important;
    overflow: visible !important;
}

.single-column #content {
    float: none !important;
    width: 700px !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    background-color: #FFFEF0 !important;
    min-height: 600px;
    padding: 40px !important;
}

.single-column #sidebar-left,
.single-column #sidebar-right {
    display: none !important;
}