/* ====================================
   WRIORANGO SITE STYLES
   ==================================== */


/* BASE RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: darkslategrey;
    --bg: #f2f2f2;
    --accent1: #c4e2c4;
    --accent2: #a0d0a0;
    --border: #2f4f4f;
}


/* BODY & WRAPPER */
body {
    font-family: monospace;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                url('https://files.catbox.moe/otduzw.jpg');
    color: var(--text);
    line-height: 1.5;
    font-size: 18px;
    padding-top: 50px;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

/* SCROLLBAR STYLING */
*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: #f0f0f0;
}

*::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border: 1px solid var(--border);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--accent1);
}

/* HEADER */
header {
    background-image: url('https://files.catbox.moe/otduzw.jpg');
    height: 100px;
    border: 2px solid var(--border);
    padding: 25px 20px 15px 20px;
    margin: 20px;
    box-shadow: 6px 6px 0 var(--border);
}

.tagline {
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: lowercase;
    background-color: darkslategrey;
    color: #f2f2f2;
    padding: 10px;
}

/* NAVIGATION */
nav {
    width: 100%;
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent2);
    border-bottom: 2px solid var(--border);
    font-size: 13px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-name {
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-name a {
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    display: block;
}

.site-name a:hover {
    text-decoration: underline;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav > .nav-container > ul {
    margin-left: auto;
}

nav li {
    position: relative;
}

nav > .nav-container > ul > li > a {
    display: block;
    padding: 14px 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

nav > .nav-container > ul > li:first-child > a {
    border-left: none;
}

nav a {
    text-decoration: none;
    color: var(--text);
}

nav a:hover {
    text-decoration: underline;
}

/* Dropdown menu */
nav ul ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    min-width: 200px;
    padding: 0;
    margin: 0;
    display: none;
}

nav ul li:hover > ul,
nav ul li:focus-within > ul {
    visibility: visible;
    opacity: 1;
    display: block;
}

nav ul ul li {
    float: none;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

nav ul ul li:last-child {
    border-bottom: none;
}

nav ul ul a {
    padding: 12px 16px !important;
    border: none !important;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    display: block;
}

/* Hamburger menu */
.menu-icon {
    cursor: pointer;
    display: none;
    padding: 0;
    user-select: none;
}

.menu-icon .navicon {
    display: block;
    height: 2px;
    position: relative;
    width: 18px;
    color: var(--text);
}

.menu-icon .navicon:before {
    content: '☰';
    font-size: 20px;
    display: block;
    position: absolute;
    top: -12px;
    right: -5px;
}

.menu-btn {
    display: none;
}

/* MAIN CONTENT */
main {
    padding: 0 20px 40px 20px;
}

.page-title {
    background: var(--text);
    color: var(--bg);
    padding: 15px 20px;
    border: 2px solid #f2f2f2;
    box-shadow: 6px 6px 0 var(--border);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* BOXES */
.box {
    background: white;
    border: 2px solid var(--border);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--border);
}

.box-header {
    background: var(--accent2);
    padding: 10px 15px;
    border-bottom: 2px solid var(--border);
    font-size: 15px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.box-content {
    padding: 15px;
}

.box-content p {
    margin-bottom: 12px;
    font-size: 14px;
}

.box-content p:last-child {
    margin-bottom: 0;
}

.scroll-content {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.scroll-content::-webkit-scrollbar {
    width: 8px;
}

.scroll-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border: 1px solid var(--border);
}

.scroll-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent1);
}

.box-list {
    list-style: none;
    padding: 0;
}

.box-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.box-list li:last-child {
    border-bottom: none;
}

.box-list li:before {
    content: "→ ";
    color: var(--accent2);
    font-weight: bold;
    margin-right: 5px;
}

.date {
    color: var(--accent2);
    font-weight: bold;
    margin-right: 8px;
}

/* STATUS BOX */
.status-box {
    background: var(--accent1);
    padding: 10px 15px;
    border: 2px solid var(--border);
    font-size: 12px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 var(--border);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 4px 4px 0 var(--border);
    }
    50% {
        box-shadow: 6px 6px 0 var(--border);
    }
}

/* INTRO BOX */
.intro-box {
    background: white;
    border: 2px solid var(--border);
    padding: 15px;
    box-shadow: 6px 6px 0 var(--border);
    margin-bottom: 20px;
}

.intro-box p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

/* WEBRING BOX */
.webring-box {
    border: 2px solid var(--border);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--border);
    background: white;
}

.webring-header {
    background: var(--accent2);
    padding: 10px 15px;
    border-bottom: 2px solid var(--border);
    font-size: 15px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.webring-content {
    padding: 15px;
    max-height: 165px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    color: var(--bg);
    background: white;
}

.webring-content::-webkit-scrollbar {
    width: 8px;
}

.webring-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.webring-content::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border: 1px solid var(--border);
}

.webring-link {
    display: inline-block;
    margin: 5px 10px;
    padding: 8px 16px;
    background: var(--accent2);
    border: 2px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.webring-link:hover {
    background: var(--accent1);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
}

.webring-content p {
    margin-bottom: 10px;
    font-size: 13px;
}

#cdr {
    color: darkslategray;
}

/* LINKS */
a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent2);
    text-decoration-thickness: 2px;
}

a:hover {
    text-decoration: underline;
}

/* FULL WIDTH */
.full-width {
    grid-column: 1 / -1;
}

/* BLOCKQUOTE */
blockquote {
    border-left: 3px solid var(--accent2);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    background: #fafafa;
    padding: 12px 15px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px 20px;
    font-size: 13px;
    border-top: 2px solid var(--border);
    margin: 0 15px;
}

footer a {
    margin: 0 10px;
}

/* SELECTION */
::selection {
    background: var(--accent2);
    color: white;
}

/* HR */
hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 20px 0;
}

/* BADGE GRID */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.badge {
    background: var(--accent1);
    border: 2px solid var(--border);
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 3px 3px 0 var(--border);
}

/* BUTTON GRID */
.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.button-grid img {
    max-height: 31px;
    image-rendering: pixelated;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.button-grid img:hover {
    box-shadow: 0 0 10px var(--accent2);
    transform: scale(1.1);
}

/* GUESTBOOK */
.guestbook-container {
    background: white;
    border: 2px solid var(--border);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--border);
}

.guestbook-header {
    background: var(--accent2);
    padding: 15px 20px;
    border-bottom: 2px solid var(--border);
    font-size: 16px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.guestbook-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* INFO BOX */
.info-box {
    background: var(--accent1);
    border: 2px solid var(--border);
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 var(--border);
    text-align: center;
}

.info-box strong {
    font-size: 16px;
}

/* SITEMAP */
.sitemap-box {
    background: white;
    border: 2px solid var(--border);
    padding: 0;
    box-shadow: 6px 6px 0 var(--border);
    margin-bottom: 20px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    padding: 12px 20px;
    border-bottom: 1px solid var(--accent1);
    font-size: 14px;
}

.sitemap-list li:last-child {
    border-bottom: none;
}

.sitemap-list li:before {
    content: "→ ";
    color: var(--accent2);
    font-weight: bold;
    margin-right: 8px;
}

.sitemap-list a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent2);
    text-decoration-thickness: 2px;
}

.sitemap-list a:hover {
    text-decoration: underline;
}

.sitemap-list s {
    opacity: 0.5;
}

.indent {
    margin-left: 30px;
    font-size: 13px;
}

.indent:before {
    content: "↳ ";
}

/* SHRINES */
.shrine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.shrine-card {
    background: white;
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.shrine-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--border);
}

.shrine-image {
    width: 100%;
    height: 180px;
    background: var(--accent1);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.shrine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shrine-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent2);
    border: 2px solid var(--border);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 var(--border);
}

.shrine-status.wip {
    background: #d4d4a0;
}

.shrine-status.complete {
    background: var(--accent2);
}

.shrine-status.coming-soon {
    background: #d4b5a0;
}

.shrine-content {
    padding: 15px;
}

.shrine-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--text);
}

.shrine-description {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.shrine-link {
    display: inline-block;
    background: var(--accent2);
    color: var(--text);
    padding: 8px 16px;
    border: 2px solid var(--border);
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--border);
    transition: all 0.2s;
}

.shrine-link:hover {
    background: var(--accent1);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--border);
}

.shrine-link.disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.shrine-link.disabled:hover {
    transform: none;
    box-shadow: 3px 3px 0 var(--border);
}

/* CHARACTERS */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.character-card {
    background: white;
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--border);
}

.character-image {
    width: 100%;
    height: 200px;
    background-color: var(--accent1);
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.character-info {
    padding: 15px;
    flex-grow: 1;
}

.character-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.character-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.85;
}

.character-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--accent2);
    padding: 3px 8px;
    font-size: 11px;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* MEDIA LOG */
.month-header {
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border: 2px solid #f2f2f2;
    box-shadow: 6px 6px 0 var(--border);
    margin: 30px 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.month-header:first-of-type {
    margin-top: 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.media-post {
    background: white;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.media-thumbnail {
    width: 100%;
    height: 180px;
    background-color: var(--accent1);
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.media-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.media-type {
    background: var(--accent2);
    padding: 2px 6px;
    font-size: 10px;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.media-title {
    font-size: 15px;
    font-weight: bold;
}

.media-artist {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.media-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.media-description a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent2);
    text-decoration-thickness: 2px;
}

.media-description a:hover {
    background: var(--accent1);
    text-decoration-color: var(--text);
}

.media-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* WRITING PAGE */
.section-box {
    background: white;
    border: 2px solid var(--border);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--border);
}

.section-header {
    background: var(--accent2);
    padding: 12px 20px;
    border-bottom: 2px solid var(--border);
    font-size: 16px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.section-content {
    padding: 20px;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.writing-item {
    background: #fafafa;
    border: 2px solid var(--border);
    padding: 15px;
    transition: all 0.2s;
}

.writing-item:hover {
    background: var(--accent1);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border);
}

.writing-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: lowercase;
}

.writing-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.writing-description {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.writing-link {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent2);
    text-decoration-thickness: 2px;
}

.writing-link:hover {
    text-decoration: underline;
}

.list-view {
    list-style: none;
    padding: 0;
}

.list-view li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.list-view li:last-child {
    border-bottom: none;
}

.list-view .writing-title {
    margin-bottom: 5px;
}

/* MICROBLOG PAGE */
.filter-bar {
    background: white;
    border: 2px solid var(--border);
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.filter-tag {
    display: inline-block;
    background: var(--accent1);
    border: 2px solid var(--border);
    padding: 5px 12px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover, .filter-tag.active {
    background: var(--accent2);
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--border);
}

.post {
    background: white;
    border: 2px solid var(--border);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--border);
}

.post-header {
    background: var(--accent2);
    padding: 12px 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-date {
    font-size: 14px;
    font-weight: bold;
}

.post-time {
    font-size: 12px;
    opacity: 0.8;
}

.post-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.post-tag {
    background: white;
    border: 1px solid var(--border);
    padding: 3px 8px;
    font-size: 11px;
    text-transform: lowercase;
}

.post-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 12px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent2);
    font-weight: bold;
}

.post-content a:hover {
    background: var(--accent1);
}

.post-content blockquote {
    border-left: 3px solid var(--accent2);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
}

.post-image {
    margin-top: 15px;
    border: 2px solid var(--border);
}

.post-image img {
    width: 100%;
    display: block;
}

.post-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    display: flex;
    gap: 15px;
}

.post-footer a {
    color: var(--text);
    text-decoration: none;
}

.post-footer a:hover {
    text-decoration: underline;
}

.mood-indicator {
    display: inline-block;
    font-size: 18px;
    margin-right: 8px;
}

.month-divider {
    background: var(--text);
    color: var(--bg);
    padding: 10px 20px;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--border);
    margin: 30px 0 20px 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    background: white;
    border: 2px solid var(--border);
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    box-shadow: 3px 3px 0 var(--border);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--accent1);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--border);
}

.pagination a.active {
    background: var(--accent2);
}

/* ART PAGE */
.year-header {
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border: 2px solid #f2f2f2;
    box-shadow: 6px 6px 0 var(--border);
    margin: 30px 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.year-header:first-of-type {
    margin-top: 0;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.art-item {
    background: white;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.art-item:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--border);
}

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* WALL - MASONRY GRID */
.grid-uneven {
    column-count: 3;
    column-gap: 20px;
}

.grid-uneven-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
}

.grid-uneven-item a {
    display: block;
    text-decoration: none;
}

.grid-uneven-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
    transition: transform 0.2s;
}

.grid-uneven-item a:hover img {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox:target {
    display: flex;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-text {
    color: white;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.lightbox::after {
    content: "✕";
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: 200;
}

/* Lightbox for art gallery */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--border);
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--accent2);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 8px 16px;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--border);
}

.lightbox-close:hover {
    background: var(--accent1);
}

.lightbox-info {
    background: var(--accent2);
    padding: 10px 15px;
    border-top: 2px solid var(--border);
    font-size: 13px;
}

.lightbox-title {
    font-weight: bold;
    margin-bottom: 4px;
}

/* ====================================
   WRITING
   ==================================== */
   
   .breadcrumb {
            font-size: 12px;
            margin-bottom: 20px;
            padding: 10px 15px;
            background: white;
            border: 2px solid var(--border);
            box-shadow: 4px 4px 0 var(--border);
        }

        .breadcrumb a {
            color: var(--text);
            text-decoration: underline;
            text-decoration-color: var(--accent2);
        }

        .breadcrumb a:hover {
            background: var(--accent1);
        }

        .article-container {
            background: white;
            border: 2px solid var(--border);
            box-shadow: 6px 6px 0 var(--border);
            margin-bottom: 20px;
        }

        .article-header {
            background: var(--accent2);
            padding: 30px;
            border-bottom: 2px solid var(--border);
        }

        .article-title {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 15px;
            text-transform: lowercase;
            line-height: 1.2;
        }

        .article-meta {
            font-size: 13px;
            color: var(--text);
        }

        .article-meta span {
            margin-right: 15px;
        }

        .article-content {
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 30px;
            max-width: 700px;
            margin: 0 auto;
            font-size: 14px;
        }

        .article-content h2 {
            font-size: 20px;
            font-weight: bold;
            margin: 30px 0 15px 0;
            text-transform: lowercase;
        }

        .article-content h3 {
            font-size: 16px;
            font-weight: bold;
            margin: 25px 0 12px 0;
            text-transform: lowercase;
        }

        .article-content p {
            margin-bottom: 20px;
            text-align: justify;
        }

        .article-content blockquote {
            border-left: 3px solid var(--accent2);
            padding-left: 20px;
            margin: 25px 0;
            font-style: italic;
            background: #fafafa;
            padding: 20px 20px 20px 25px;
        }

        .article-content ul, .article-content ol {
            margin: 20px 0 20px 30px;
        }

        .article-content li {
            margin-bottom: 10px;
        }

        .article-content hr {
            border: none;
            border-top: 2px solid var(--border);
            margin: 30px 0;
        }

        .article-footer {
            padding: 30px 40px;
            border-top: 2px solid var(--border);
            background: #fafafa;
        }
       .article-warnings {
        padding: 30px 40px;
            border-top: 2px solid var(--border);
            background: #fafafa;
      }

        .tags {
            margin-bottom: 20px;
        }

        .tag {
            display: inline-block;
            background: var(--accent1);
            border: 2px solid var(--border);
            padding: 5px 12px;
            font-size: 12px;
            margin-right: 8px;
            margin-bottom: 8px;
            text-transform: lowercase;
        }

        .nav-links {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }

        .nav-link {
            flex: 1;
            min-width: 200px;
            background: white;
            border: 2px solid var(--border);
            padding: 15px;
            text-decoration: none;
            color: var(--text);
            transition: all 0.2s;
            box-shadow: 3px 3px 0 var(--border);
        }

        .nav-link:hover {
            background: var(--accent1);
            transform: translate(-2px, -2px);
            box-shadow: 5px 5px 0 var(--border);
        }

        .nav-link-label {
            font-size: 11px;
            text-transform: uppercase;
            margin-bottom: 5px;
            opacity: 0.7;
        }

        .nav-link-title {
            font-size: 14px;
            font-weight: bold;
        }
   
   @media (max-width: 650px) {
            header, nav, main, footer {
                margin-left: 10px;
                margin-right: 10px;
            }

            .article-header {
                padding: 20px;
            }

            .article-title {
                font-size: 24px;
            }

            .article-content {
                padding: 25px 20px;
            }

            .article-footer {
                padding: 20px;
            }

            .nav-links {
                flex-direction: column;
            }
        }

/* ====================================
   RESPONSIVE DESIGN - MOBILE
   ==================================== */

@media (max-width: 850px) {
    body {
        padding-top: 50px;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 8px 20px 6px 20px;
    }

    .menu-icon {
        display: flex;
        order: 2;
    }

    .site-name {
        order: 1;
    }

    nav > .nav-container > ul {
        clear: both;
        flex-basis: 100%;
        max-width: 100%;
        max-height: 0;
        overflow: hidden;
        margin-left: 0;
        flex-direction: column;
    }

    .menu-btn:checked ~ ul {
        max-height: 1000px;
        padding: 10px 0;
    }

    nav > .nav-container > ul > li {
        width: 100%;
    }

    nav > .nav-container > ul > li > a {
        padding: 8px 0;
    }

    /* Mobile: flatten nested lists */
    nav ul ul {
        position: static;
        visibility: visible;
        opacity: 1;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 20px;
        margin: 0;
    }

    nav ul ul li {
        border: none;
    }

    nav ul ul a {
        padding: 6px 0 !important;
        font-size: 12px;
    }

    .menu-btn:checked ~ .menu-icon .navicon:before {
        content: '✕';
    }
    
    .guestbook-frame {
        height: 500px;
    }
    
    .grid-uneven {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .grid-uneven {
        column-count: 2;
    }
}

@media (max-width: 650px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .shrine-grid {
        grid-template-columns: 1fr;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .writing-grid {
        grid-template-columns: 1fr;
    }

    header, main, footer {
        margin-left: 5px;
        margin-right: 10px;
    }
    
    header, nav, main, footer {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .grid-uneven {
        column-count: 1;
    }
}