/* ==========================================================================
   Custom Styles for Mainroad Theme - Purple/Orange/Black Color Scheme
   Fixed Layout Version
   ========================================================================== */

/* ===== COLOR VARIABLES ===== */
:root {
    --accent-purple: #8b4789;      /* Deep purple */
    --accent-orange: #d97441;      /* Burnt orange */
    --accent-black: #2a2a2a;       /* Near black */
    --text-primary: #333333;       /* Main text */
    --text-secondary: #666666;     /* Secondary text */
    --bg-offwhite: #eeeeee;        /* Off-white background */
}

/* ===== LAYOUT - WIDEN CONTENT AREA ===== */

.content a {
    color: var(--accent-orange);
}

.content a:hover {
    color: var(--accent-purple);
}

/* Main container - increase max width */
.container {
    max-width: 125em;
}

/* Wrapper padding */
.wrapper {
    padding: 30px 40px;
    background: #eee;
}

/* Give more space to main content, less to sidebar */
@media screen and (min-width: 768px) {
    .primary {
        flex: 1 0 80%;
    }
    
    .sidebar {
        flex: 1 0 17%;
    }
}

/* ===== BACKGROUND COLORS ===== */

body {
    background: var(--bg-offwhite);
    font-size: 16px;
}

.wrapper,
.header,
.list__item {
    background: #fafaf7;
}

.widget {
    background: #fafaf7;
}

/* ===== LINKS - PURPLE/ORANGE ===== */

a {
    color: var(--accent-purple);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* ===== HEADERS ===== */

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-black);
}

h1 {
    border-left: 4px solid var(--accent-purple);
    padding-left: 10px;
    font-size: 30px;
    color: #353535;
}

h2 {
    /* Purple */
    /* color: #6a3d68; */
    color: #353535;
    font-size: 26px;
}

h3 {
    color: #353535;
    font-size: 22px;
}

h4 {
    color: var(--accent-purple);
    font-size: 18px;
}

/* Post titles */
.list__title a,
.entry-title a {
    color: var(--accent-black);
    font-weight: 600;
}

.list__title a:hover,
.entry-title a:hover {
    color: var(--accent-purple);
}

/* ===== SITE HEADER ===== */

.logo__title {
    color: var(--accent-purple);
}

.logo__tagline {
    color: var(--accent-orange);
}

/* ===== NAVIGATION MENU ===== */

.menu {
    background: var(--accent-black);
}

.menu__item {
    background: var(--accent-black);
}

.menu__item:hover,
.menu__item--active {
    background: var(--accent-purple);
}

.menu__link {
    color: #ffffff;
}

/* ===== READ MORE BUTTON ===== */

.more-link {
    color: var(--accent-purple) !important;
    background: transparent !important;
    font-weight: 600;
    border: 2px solid var(--accent-purple) !important;
    padding: 8px 20px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.more-link:hover {
    background: var(--accent-purple) !important;
    color: #ffffff !important;
    border-color: var(--accent-purple) !important;
}

/* ===== POST META ===== */

.meta__item {
    color: var(--text-secondary);
}

.meta__text {
    color: var(--accent-orange);
}

/* ===== THUMBNAILS ===== */

.list__thumbnail {
    margin-right: 25px;
}

.list__thumbnail img {
    border: 3px solid var(--accent-purple);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.list__thumbnail:hover img {
    border-color: var(--accent-orange);
}

/* Make thumbnails non-clickable */
.list__thumbnail a {
    pointer-events: none;
    cursor: default;
}

/* ===== SIDEBAR WIDGETS ===== */

.widget__title {
    color: var(--accent-purple);
    border-bottom: 3px solid var(--accent-purple);
    padding-bottom: 10px;
}

.widget a {
}

.widget a:hover {
}

.widget-search__submit {
    background: var(--accent-purple);
}

.widget-search__submit:hover {
    background: var(--accent-orange);
}

/* ===== CODE BLOCKS ===== */

pre {
    /*background: #2d2d2d;*/
    /*color: #f8f8f2;*/
    /*color: #24292e;*/
    border-radius: 5px;
    width: 86%;
}

code {
    padding: 2px 6px;
    color: var(--accent-orange);
    background: #f0f0eb;
}

pre code {
    /*color: #f8f8f2;*/
    background: transparent;
    font-family: monoid;
}

/* Font effects in #pre and #pre code */
element {
    color: #f89f8f2;
    background-color: black;
}

/* ===== BLOCKQUOTES ===== */

blockquote {
    border-left: 4px solid var(--accent-purple);
    background: #f9f9f6;
    padding: 15px 20px;
    font-style: italic;
    color: var(--text-secondary);
}

/* ===== PAGINATION ===== */

.pagination__item {
    background: var(--accent-purple);
    color: #ffffff;
    border-radius: 4px;
    margin: 0 5px;
}

.pagination__item:hover,
.pagination__item--current {
    background: var(--accent-orange);
}

/* ===== TAGS ===== */

.tags__link,
.tags__item {
    background: var(--accent-purple);
    color: #ffffff;
}

.tags__link:hover,
.tags__item:hover {
    background: var(--accent-orange);
}

/* ===== FOOTER ===== */

.footer {
    background: var(--accent-black);
    color: #cccccc;
}

.footer a {
    color: var(--accent-orange);
}

.footer a:hover {
    color: #ffffff;
}

/* ===== AUTHOR BOX ===== */

.authorbox {
    border-color: var(--accent-purple);
    background: #f9f9f6;
}

/* ===== TABLES ===== */

th {
    background: var(--accent-purple);
    color: #ffffff;
}

/* ===== CUSTOM IMAGE CLASSES ===== */

/* The default for featured_images at the top of the post */
img {
    max-width: 45%;
}

/* USE a reference for every picture in a post as to not have it stuck at 45% size like the featured_image */
img[alt="large"] {
    max-width: 100%;
}

/* Best when used in series of three or more. Two just doesn't look to great */
img[alt="gallery"] {
    /*display: block;*/
    max-width: 55%;
    margin: 5px auto;
    /*width: 600px;
    height: 232px;*/
    border: 3px solid var(--accent-purple);
    border-radius: 8px;
}

/* Large style in center of screen w/ purple border and a box shadow effect */
img[alt="single"] {
    display: block;
    max-width: 75%;
    border: 3px solid var(--accent-purple);
    margin: 5px auto;
    /*width: 800px;
    height: 434px;*/
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Places image to the right of text. Kind of like the old magazine and newspaper style */
img[alt="right"] {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 25%;
    border: 2px solid var(--accent-orange);
    border-radius: 5px;
}

img[alt="tiny"] {
    display: block;
    margin: 5px auto;
    width: 6.75%;
    max-width: 100%;
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media screen and (max-width: 900px) {
    .wrapper {
        padding: 20px;
    }
}

/* ---- My custom code -------- */
@media screen and (min-width: 767px) {
  .menu {
    border-bottom: 5px solid #8b4789;
  }
}

.btn:hover {
    background: #d97441;
}

.tags__badge {
    background: #8b4789;
}

/* Full-width banner above header */
body::before {
    content: '';
    display: block;
    width: 100%;
    height: 400px;  /* Adjust height */
    background-image: url('/images/Portugal/p1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
