/* --- THEME VARIABLES --- */
:root {
    /* Default: Main Theme */
    --bg-color: #fdc3e5; 
    --container-bg: #ffffff90;
    --text-color: #000000;
    --heading-color: #d87093;
    --border-color: #ffb7b2;
    --banner-img: url('images/banners/main.webp'); 
    --banner-text: #fca1d4;
    --nav-bg: #ffe4e1;
    --button-bg: #fff9fa;
    --overlay-color: rgba(0, 0, 0, 0.6);
}


@font-face {
  font-family: "LanaPixel";
  src: url("/fonts/LanaPixel.ttf") format("truetype");
}


/* Midnight Theme */
[data-theme="raven"] {
    --bg-color: #1a1a2e;
    --container-bg: #16213e;
    --text-color: #e0e0e0;
    --heading-color: #a29bfe;
    --border-color: #0f3460;
    --banner-img: url('images/banners/sb2.webp'); 
    --banner-text: #a29bfe;
    --nav-bg: #1f4068;
    --button-bg: #1f2b48;
    --overlay-color: rgba(0, 0, 0, 0.7);
}
/* Midnight Theme */
[data-theme="eve"] {
    --bg-color: #5f0a00;
    --container-bg: #000000d8;
    --text-color: #e0e0e0;
    --heading-color: #a81100;
    --border-color: #5f0a00;
    --banner-img: url('images/banners/eve.webp'); 
    --banner-text: #ffffff;
    --nav-bg: #111111;
    --button-bg: #5f0a00;
    --overlay-color: rgba(31, 0, 0, 0.7);
}
/* Midnight Theme */
[data-theme="snowwhite"] {
    --bg-color: #daa824;
    --container-bg: #e2e2e2;
    --text-color: #000;
    --heading-color: #000;
    --border-color: #daa824;
    --banner-img: url('images/banners/snow.webp'); 
    --banner-text: #ffffff;
    --nav-bg: #daa824;
    --button-bg: #daa824;
    --overlay-color: rgba(41, 33, 0, 0.7);
}
[data-theme="wildfire"] {
    --bg-color: #155855;
    --container-bg: #155855;
    --text-color: #d3be63;
    --heading-color: #d3be63;
    --border-color: #d3be63;
    --banner-img: url('images/banners/wildfire.webp'); 
    --banner-text: #ffffff;
    --nav-bg: #2e681f;
    --button-bg: #1f2b48;
    --overlay-color: rgba(0, 0, 0, 0.7);
}
[data-theme="japan"] {
    --bg-color: #7d1c12;
    --container-bg: #e9e9e9;
    --text-color: #7d1c12;
    --heading-color: #7d1c12;
    --border-color: #7d1c12;
    --banner-img: url('images/banners/japan.webp'); 
    --banner-text: #ffffff;
    --nav-bg: #e9e9e9;
    --button-bg: #e9e9e9;
    --overlay-color: rgba(0, 0, 0, 0.7);
}
[data-theme="1200"] {
    --bg-color: #030303;
    --container-bg: #080808;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #242424;
    --banner-img: url('images/banners/1200.webp'); 
    --banner-text: #ffffff;
    --nav-bg: #070707;
    --button-bg: #0a0a0a;
    --overlay-color: rgba(0, 0, 0, 0.7);
}

/* Base Setup */
body {
    margin: 0;
    padding: 0;
    font-family: "LanaPixel";
    background-color: var(--bg-color);
    background-image: url(/images/background.webp);
    background-blend-mode:soft-light;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: large;
}

/* --- HEADER & NAV --- */
header#site-header {
    width: 100%;
    height: 350px;
    /* background-blend-mode:soft-light; */
    background-image: var(--banner-img);
    /* background-color: var(--bg-color); */
    background-size: cover;
    background-position: center;
    border-bottom: 3px double var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text h1 {
    font-size: 3rem; 
    color: var(--banner-text);
    text-shadow: 3px 3px 0 #000;
    margin: 0;
    padding-bottom: 10px 20px;
    line-height: 10px;
}

.banner-text{
    text-align: center;
    padding-bottom: 0px;
    margin-bottom: 0px;
    color: var(--banner-text);
}

.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    min-height: 100vh;
}

nav.main-menu {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    text-align: center;
    /* Allow scrolling on very small phones */
    white-space: nowrap;
    overflow-x: auto; 
}

nav.main-menu a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 10px;
    text-transform: uppercase;
    display: inline-block;
}
nav.main-menu a:hover {
    transform: scale(1.3) rotate(-10deg);
    transition: transform 0.3s;
}

.blog-content img{
    max-width: 100%;
}

/* --- LAYOUT GRID --- */
.container {
    display: flex;
    flex-wrap: wrap;
}

.container h1 {
    border: 4px solid var(--border-color);
    padding: 5px;
    text-align: center;
}

.container h2 {
    border-bottom: 2px solid var(--border-color);
}

a {
    color: var(--text-color);
    text-decoration: underline;
}
a:visited {
    color: var(--text-color);
    text-decoration: none;
}

main {
    flex: 3;
    padding: 20px;
    border-right: 1px solid var(--border-color);
    min-width: 0; /* Prevents overflow issues */
}

aside {
    flex: 1;
    padding: 20px;
    background-color: var(--container-bg);
    min-width: 250px;
    border-left: 1px solid var(--border-color); /* Just in case */
}

/* --- NEW CARD DESIGN (The requested change) --- */
.post-card {
    display: block;
    position: relative;
    width: 100%;
    height: 150px; /* Wide rectangle */
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    overflow: hidden;
    background-color: #000;
    transition: height 0.5s ease-out;
}
.post-card:hover {
    height: 200px; /* Wide rectangle */
    transition: height 0.5s ease-out;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* The Overlay */
.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color); /* Black transparency */
    display: flex;
    flex-direction: column;
    justify-content:end;
    align-items: center;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.post-card h2 {
    color: #ffffff; /* Always white for readability */
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
}

.post-card small {
    color: #e0e0e0;
    font-size: 1rem;
    font-style: italic;
    background: #000;
    padding: 2px 8px;
}

button {
    color: var(--text-color);
    background-color: var(--button-bg);
    border: 5px solid var(--border-color);
    font-size: larger;
    font-family: 'LanaPixel';
    transition: transform 0.5s ease-out;
}
button:hover {
    transform: scale(0.95);
    transition: transform 0.5s ease-out;
}

/* Hover Effects */
.post-card:hover .post-card-img {
    transform: scale(1.05);
    opacity: 0.6;
}

.post-card:hover {
    border-color: var(--heading-color);
}

/* --- POST VIEWER (Reading a post) --- */
#post-viewer img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
}

/* --- SIDEBAR WIDGETS --- */
.widget {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    padding: 5px;
    text-align: center;
}
.widget h3 { margin-top: 0; margin-bottom: 0;color: var(--heading-color); text-align: center;}

.iotw-widget img {
    max-width: 100%;
}

select#theme-select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    color: var(--text-color);
    font-family: inherit;
}


/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    /* Stack layout */
    .container {
        flex-direction: column;
    }
    
    /* Remove sidebar border in mobile */
    main {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
    }
    
    /* Adjust Banner */
    header#site-header {
        height: 150px;
        margin-bottom: 0;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }

    /* Cards slightly smaller on mobile */
    .post-card {
        height: 200px;
    }

    .post-card h2 {
        font-size: 1.4rem;
    }

    /* Sidebar full width */
    aside {
        width: 100%;
        box-sizing: border-box;
    }

    .footerImgs {
        visibility: hidden;
        height: 0px;
    }
}

.footerImgs {
    text-align: center;
    vertical-align: baseline;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 5px;

}


/* GALERIA */

.galerias img {
    width: 200px;
    transition: transform 0.5s ease-out;
}

.galerias img:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
}

.galerias-menu {
    text-align: center;
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* CURSOR */


html, body {
    cursor: url("/images/cursor/cursor.png"), auto;
}
html button{
    cursor: url("/images/cursor/pointer.png"), auto;
}
html a{
    cursor: url("/images/cursor/pointer.png"), auto !important;
}
html input{
    cursor: url("/images/cursor/pointer.png"), auto !important;
}
html select{
    cursor: url("/images/cursor/pointer.png"), auto !important;
}
html textarea{
    cursor: url("/images/cursor/pointer.png"), auto !important;
}


/* --- BIO PAGE (ZIG-ZAG LAYOUT) --- */

.bio-row {
    display: flex;
    align-items: center; /* Vertically centers text with image */
    justify-content: space-between;
    /* gap: 30px; */
    /* margin-bottom: 50px; */
    padding-bottom: 30px;
    /* border-bottom: 1px dashed var(--border-color); */
}

/* Removes border from the very last item */
.bio-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bio-text {
    flex: 1; /* Takes up available space */
}

.bio-image {
    flex: 0 0 250px; /* Fixed width for images (adjust as needed) */
    display: flex;
    justify-content: center;
}
.rot15:hover {
    transform: rotate(15deg);
}
.rot-15:hover {
    transform: rotate(-15deg);
}





.bio-image img {
    width: 100%;
    max-width: 200px; /* Limit image size */
    height: auto;
    border: 3px double var(--border-color); /* Your theme border */
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2); /* Retro shadow */
    padding: 5px;
    background: var(--container-bg);
}

/* --- THE MAGIC SWITCH --- */
/* Every EVEN row (2nd, 4th, 6th...) will flip direction */
.bio-row:nth-child(even) {
    flex-direction: row-reverse; 
    /* row-reverse puts the image on the left and text on right */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .bio-row, .bio-row:nth-child(even) {
        flex-direction: column; /* Stack them vertically on phone */
        text-align: center;
        gap: 15px;
    }

    .bio-image {
        flex: auto;
        margin-bottom: 15px;
    }
}

.novo-badge{
    background-color: var(--text-color);
    color: var(--banner-text);
    margin-left: 2px;
    font-size: small;
    padding: 2px;
    transition: background-color 0.3s ease, color 0.3s ease;
    vertical-align: middle;
    animation: novoColor 1s infinite;
}

@keyframes novoColor {
  0%   {background-color: var(--text-color);}
  50%  {background-color: var(--nav-bg);}
  100% {background-color: var(--text-color);}
}

#moodboard{
    border: 3px double var(--border-color); /* Your theme border */
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2); /* Retro shadow */
    padding: 5px;
    background: var(--container-bg);
}
/* 
#moodboard span * {
    border-radius: 50px;
} */
#moodboard span[class^="PIN_"][class$="_img"] {
    border-radius: 0px !important;
}

.bio-covers {
    text-align: center;
}

.bio-covers img{
    width: 100px;
    height: 150px;
    object-fit: cover;
    /* border-radius: 10px; */
    transition: transform 0.5s;
}
.bio-covers img:hover{
    transform: scale(1.1);
    transition: transform 0.5s;
}