/* Import component stylesheets */
@import url("pirate-coins.css");

:root {
    --primary-color: #3da26f;
    --secondary-color: #a88627;
    --text-color: #eaf9ff;
    --bg-color: #0e1427;
    --border-color: var(--secondary-color);
    --spacing: 1rem;
}

@font-face {
    font-family: 'Dubellay';
    src: url('/fonts/dubellay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mil doscientos doce';
    src: url('/fonts/Mil doscientos doce.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Headline Crack';
    src: url('/fonts/Headline Crack.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Prevalent Demo';
    src: url('/fonts/Prevalent Demo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dirty Headline';
    src: url('/fonts/Dirty Headline.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



#caustics-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    mix-blend-mode: screen;
    /* or overlay, multiply, etc. */
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

#vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    /* Above caustics, below content */
    background: radial-gradient(circle at center,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.4) 80%,
            rgba(0, 0, 0, 0.7) 100%);
}


#logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

header h1 {
    font-size: clamp(2em, 8vw, 4em);
}

header h1>a {
    background-image: linear-gradient(45deg, #3da26f, #a88627);
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* font-family: 'Prevalent Demo', serif; */
    /* font-family: 'Dubellay', serif; */
    font-family: 'Dirty Headline', serif;
}

#pirate-coin-logo {
    height: 4em;
    width: 4em;
}

/* Ensure content appears above background effects */
.container {
    position: relative;
    z-index: 2;
}

header {
    position: relative;
    z-index: 10;
}

footer {
    position: relative;
    z-index: 10;
}

.post-title {

    font-size: 5em;
    background: linear-gradient(180deg, #fff, #a8dadc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    mix-blend-mode: screen;
    position: relative;
    z-index: 2;
}

.post-content {
    --primary-color: #31c68d;
    --text-color: #323232;
    --bg-color: color-mix(in srgb, #fff5cf 75%, transparent);
    --border-color: #e5e7eb;
    --spacing: 1rem;
    --page-tear-width: 4px;

    position: relative;
    background: var(--bg-color);

    color: var(--text-color);
    padding: var(--spacing);

    /* Torn Paper edge effect */

    margin-bottom: calc(2 * var(--spacing));

}

.post-content:before,
.post-content:after {
    content: '';
    position: absolute;
    height: var(--page-tear-width);
    width: 100%;
    left: 0;
    background: var(--bg-color);
    -webkit-clip-path: polygon(1% 0%, 4% 100%, 9% 0%, 13% 100%, 19% 1%, 21% 100%, 26% 5%, 30% 100%, 36% 2%, 43% 100%, 50% 1%, 52% 100%, 61% 0%, 69% 94%, 70% 0%, 76% 100%, 81% 0%, 84% 100%, 91% 0%, 97% 100%, 99% 3%);
}

.post-content:before {
    top: calc(-1 * var(--page-tear-width));
    transform: rotate(180deg);
}

.post-content:after {
    bottom: calc(-1 * var(--page-tear-width));
    /* transform: rotate(180deg); */
}

.tag {
    background: color-mix(in srgb, var(--primary-color) 80%, transparent);
    color: black;
}

#logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-placeholder {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.callout {
    border-left: 3px solid var(--secondary-color);
    background: color-mix(in srgb, var(--secondary-color) 12%, transparent);
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    border-radius: 0 3px 3px 0;
    font-style: italic;
}

aside.sidebar {
    background: transparent;
    border: 1px solid var(--border-color);
}