/* ========================================
   GLOBAL CSS - Lanthirey New Site
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #000000;
    --bg-book: #4d5140;
    --red-accent: #c6201e;
    --red-border: #e9190d;
    --gold-gradient: radial-gradient(ellipse at center, #f5e6a3 0%, #cd9811 50%, #8b6914 100%);
    --copper-gradient: radial-gradient(ellipse at center, #d4a574 0%, #b87333 50%, #8b4513 100%);
    --neon-purple: #8c52ff;
    --neon-glow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    --white: #ffffff;
    --blue-link: #6699cc;
    --font-gothic: 'BlackwoodCastle', serif;
    --font-oldengland: 'OldEnglandGothic', cursive;
    --font-pixel: 'NineByFiveNBP', monospace;
    --font-serif: 'Garamond', 'Times New Roman', serif;
}

/* ---- Font Face Definitions ---- */
@font-face {
    font-family: 'BlackwoodCastle';
    src: url('../fonts/blackwood_castle/blackwood_castle BLACC___.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OldEnglandGothic';
    src: url('../fonts/old_england_gothic/OldEnglandGothic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NineByFiveNBP';
    src: url('../fonts/Nine_By_Five_NBP/nine0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--white);
    font-family: var(--font-serif);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- System Messages ---- */
#idSysMsg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    border-radius: 5px;
    z-index: 10000;
    font-family: var(--font-serif);
    visibility: hidden;
    transition: visibility 0.3s;
}

/* ============================================
   REUSABLE BUTTONS - Pixel-Sampled from Reference Images
   ============================================ */

/* =========================================================
   1) GOLD METALLIC BUTTON
   ========================================================= */
.btn-gold {
    display: inline-block;
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 26px;
    color: #1c1706;
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 14px;
    cursor: pointer;
    border: 1px dashed #cd9811;

    background:
      radial-gradient(ellipse at 50% 45%,
        #f8f4ad 0%,
        #f2e9a0 22%,
        #cfae55 42%,
        #e6d183 60%,
        #8a6a1e 82%,
        #100c02 100%);

    box-shadow:
      inset 0 0 14px rgba(0, 0, 0, 0.45),
      0 3px 8px rgba(0, 0, 0, 0.6);

    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-gold u {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-gold:active {
    filter: brightness(0.95);
    transform: translateY(1px);
}

/* Small gold variant for cards/inline */
.btn-gold-small {
    display: inline-block;
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 18px;
    color: #1c1706;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px dashed #cd9811;

    background:
      radial-gradient(ellipse at 50% 45%,
        #f8f4ad 0%,
        #f2e9a0 22%,
        #cfae55 42%,
        #e6d183 60%,
        #8a6a1e 82%,
        #100c02 100%);

    box-shadow:
      inset 0 0 10px rgba(0, 0, 0, 0.45),
      0 2px 6px rgba(0, 0, 0, 0.6);

    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-gold-small u {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.btn-gold-small:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-gold-small:active {
    filter: brightness(0.95);
    transform: translateY(1px);
}

/* =========================================================
   2) METALLIC COPPER BUTTON
   ========================================================= */
.btn-copper {
    display: inline-block;
    font-family: 'Times New Roman', Times, serif;
    font-size: 26px;
    color: #1a0f08;
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 14px;
    cursor: pointer;
    border: 4px solid #0f0a02;

    background:
      radial-gradient(ellipse at center,
        #fffcec 0%,
        #ffe3c6 20%,
        #ffc298 42%,
        #e0b494 62%,
        #8a5a3e 84%,
        #150d02 100%);

    box-shadow:
      inset 0 0 14px rgba(0, 0, 0, 0.4),
      0 3px 8px rgba(0, 0, 0, 0.6);

    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-copper u {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.btn-copper:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-copper:active {
    filter: brightness(0.95);
    transform: translateY(1px);
}

/* =========================================================
   3) 8-BIT PIXEL BEVEL / NEON HALO BUTTON
   ========================================================= */
.btn-neon {
    position: relative;
    display: inline-block;
    background: #000;
    border: none;
    cursor: pointer;
    padding: 22px 20px;
    transition: transform 0.15s ease;
}

.btn-neon span {
    position: relative;
    display: inline-block;
    font-family: 'Nine by Five NBP', monospace;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #8c52ff;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    font-smooth: never;
    image-rendering: pixelated;

    text-shadow:
      -2px -2px 0 #00ffff,
      -3px -3px 0 #00ffff,
      -4px -4px 0 #00e6e6,
      2px 2px 0 #ff00ff,
      3px 3px 0 #ff00ff,
      4px 4px 0 #cc00cc,
      5px 5px 0 #990099,
      0 0 12px rgba(0, 255, 255, 0.7),
      0 0 20px rgba(255, 0, 255, 0.6),
      0 0 30px rgba(140, 82, 255, 0.5);

    animation: glitch-flicker 3.4s infinite steps(1);
}

@keyframes glitch-flicker {
    0%, 91%, 100% {
      transform: translate(0, 0);
      text-shadow:
        -2px -2px 0 #00ffff,
        -3px -3px 0 #00ffff,
        -4px -4px 0 #00e6e6,
        2px 2px 0 #ff00ff,
        3px 3px 0 #ff00ff,
        4px 4px 0 #cc00cc,
        5px 5px 0 #990099,
        0 0 12px rgba(0, 255, 255, 0.7),
        0 0 20px rgba(255, 0, 255, 0.6),
        0 0 30px rgba(140, 82, 255, 0.5);
    }
    92% {
      transform: translate(-2px, 0);
    }
    93% {
      transform: translate(2px, 0);
    }
    94% {
      transform: translate(0, 0);
    }
}

.btn-neon:hover {
    transform: translateY(-2px);
}

.btn-neon:active {
    transform: translateY(1px);
}

/* Red Button - Guestbook */
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: #c6201e;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-red:hover {
    background: #e9190d;
}

.btn-red img {
    width: 16px;
    height: 16px;
}

/* ---- Card Components ---- */
.card-dashed {
    border: 1px dashed var(--white);
    border-radius: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
}

.card-dashed:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.card-dashed img {
    max-width: 100%;
    border-radius: 8px;
}

.card-dashed .card-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
}

.card-dashed .card-title {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 8px;
}

/* ---- Layout Containers ---- */
.page-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 15px;
    padding-bottom: 80px;
    text-align: center;
}

.row-2col {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .row-2col {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .row-3col {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-gold {
        font-size: 22px;
        padding: 15px 40px;
    }

    .btn-copper {
        font-size: 22px;
        padding: 15px 40px;
    }

    .btn-gold-small {
        font-size: 16px;
        padding: 10px 28px;
    }

    .btn-neon span {
        font-size: 28px;
    }

    .btn-neon {
        padding: 18px 16px;
    }

    .card-dashed {
        padding: 12px;
    }

    .card-dashed .card-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .page-container {
        padding: 8px;
        padding-bottom: 60px;
    }

    .row-2col {
        gap: 15px;
        margin-bottom: 20px;
    }

    .row-3col {
        gap: 12px;
        margin-top: 15px;
    }

    .btn-gold {
        font-size: 18px;
        padding: 12px 32px;
    }

    .btn-copper {
        font-size: 18px;
        padding: 12px 32px;
    }

    .btn-gold-small {
        font-size: 14px;
        padding: 8px 24px;
    }

    .btn-neon span {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .btn-neon {
        padding: 14px 12px;
    }

    .card-dashed {
        padding: 10px;
        border-radius: 8px;
    }

    .card-dashed .card-icon {
        width: 18px;
        height: 18px;
    }

    .card-dashed .card-title {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
}