/*
Theme Name: Crypteia 1.5
Theme URI: https://crypteia.io
Author: Kruger
Author URI: https://crypteia.io
Description: A custom theme by Kruger.
Version: 1.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crypteia
*/

@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");
@import url("https://fonts.googleapis.com/css?family=Roboto+Mono:500");
@import url('https://fonts.cdnfonts.com/css/onli');

:root {
    --bg: #101010;
    --fg: #ffffff;
    --accent: #ffffff;
    --muted: #cccccc;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0e0e;
    color: white;
    padding-top: 60px; /* Adjust this value to match your header's height */
}

html,
body {
    height: 100%;
}

#container {
    position: absolute;
    width: 200px;
    height: 200px;
    margin: auto;
    transform: rotate(45deg);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none; /* <-- Add this line */
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    header h1 {
        flex: 0 0 auto;
        font-size: 1.8em;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--accent);
        font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    header .polygon-btn {
        flex: 0 0 auto;
        margin-left: 32px;
    }

nav {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

    nav a {
        color: var(--fg);
        text-decoration: none;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 1.2em;
        padding: 8px 16px;
        border-radius: 6px;
        position: relative; /* Needed for the pseudo-element */
        transition: background 0.2s, color 0.2s, opacity 0.3s;
    }

        nav a::after {
            content: "";
            display: block;
            position: absolute;
            left: 16px; /* matches horizontal padding */
            right: 16px;
            bottom: 4px;
            height: 3px;
            background: red;
            border-radius: 2px;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        }

        nav a:hover::after,
        nav a:focus::after {
            transform: scaleX(1);
        }

        nav a:hover,
        nav a:focus {
            /* background: rgba(255,255,255,0.12); */
            color: var(--accent);
            opacity: 1;
            /* Remove text-decoration: underline; */
        }

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0; /* Remove horizontal padding */
    width: 100%;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.text-block {
    margin-top: 0px;
    max-width: 1200px !important;
    background: #101010;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    border: 1px solid rgba(255,255,255,0.18);
    padding: 12px 32px 32px 32px; /* top right bottom left */
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .text-block h1 {
        font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .text-block h2 {
        font-size: 2.8em;
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .text-block strong {
        display: block;
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .text-block p {
        color: var(--muted);
        font-size: 1em;
    }

.latest-block {
    padding-left: 20px;
    background: #101010;
    border-radius: 0px;
    box-shadow: 0 2px 32px 0 rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    border: 1px solid rgba(255,255,255,0.18);
    padding: 32px;
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .latest-block h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
        /*border-bottom: 2px solid #333;*/
        padding-bottom: 8px;
        font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

.latest-block-header {
    display: flex;
    align-items: center;
    gap: 24px; /* space between menu items */
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    justify-content: center;
    color: var(--fg);
    background: #181818;
    padding: 10px 24px 8px 24px;
    /* border-top-left-radius: 14px; */
    /* border-top-right-radius: 14px; */
    border-bottom: 1.5px solid #333;
    margin: -32px -32px 24px -32px; /* negative margin to align with .latest-block padding */
}

footer {
    background-color: #000;
    padding: 60px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9em;
    font-family: 'TheGoodMonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .divider {
        display: none;
    }
}

.below-header {
    width: 100%;
    background: #0f0e0e;
    color: var(--muted);
    text-align: center;
    font-size: 1.2em;
    padding: 5px 0 1px 0;
    margin: 0;
    /* Ensures it doesn't hide behind the fixed header */
    position: relative;
    z-index: 900;
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .below-header .text-block {
        margin: 24px auto;
        max-width: 120vw;
        width: 100%;
        background: #101010;
        border-radius: 0px;
        box-shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.18);
        padding: 12px 32px 32px 32px;
        text-align: center;
    }

/* 
=========================
    HEADER BUTTON 
=========================
*/

button {
    --border-width: 4px;
    --corner-value: 10px;
    --cropped-corner: polygon(100% 0, 100% calc(100% - var(--corner-value)), calc(100% - var(--corner-value)) 100%, 0 100%, 0 0);
}

.wrap {
    text-align: center;
    margin: 0 auto;
    max-width: 20rem;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.polygon-btn {
    --border-width: 1px;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    border: var(--border-width) solid rgba(255,255,255,0.4);
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    clip-path: var(--cropped-corner);
    position: relative;
    min-width: 7rem;
    transition: all .18s ease-out;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    padding: 10px 20px;
}

    .polygon-btn:hover {
        letter-spacing: 1px;
    }

/* .polygon-btn:after and keyframes are commented out for clarity */

.container {
    height: 5vh;
    display: grid;
    place-items: center;
}

    .container .text {
        font-size: 1.5rem;
        color: white;
    }

.content-box {
    display: flex;
    background: #222;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    margin: 1rem auto;
    max-width: 1500px;
    width: 100%;
}

.text-block, .latest-block {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

.divider {
    width: 2px;
    background: #444;
    min-height: 100%;
}

/* The Isle page */

.the-isle-content {
    background: #0f0e0e;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 1400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.post-block {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 0px;
    overflow: hidden;
    text-align: center;
    font-family: 'thegoodmonolith', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.single-content-box {
    margin: 1rem auto;
    max-width: 1200px;
    width: 100%;
    background: #222;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    display: block;
}
