/* =========================================================
   extra-art.css — mock search-engine page for extra art
   Same visual language as characters.css / style.css: pill
   shapes, pastel rainbow, BadComic font, pink glow, custom
   cursor. Fitted to look like a plain search homepage but
   inline with the rest of the site.
   ========================================================= */

/* ---------------- PAGE BACKGROUND OVERRIDE ---------------- */
/* extra-art.css only loads on this page, so this plain white,
   cloud-free background stays scoped here — every other page
   keeps its cloud sky untouched. */

body{
    background-color: #ffffff;
    background-image: none;
    align-items: center;
}

/* ---------------- PAGE STRUCTURE OVERRIDE ---------------- */
/* this page hides the header entirely, and turns the right
   sidebar into a footer-like strip below main instead of a
   column beside it — scoped here since only this page loads
   extra-art.css */

header{
    display: none;
}

.layout{
    grid-template:
        "main" auto
        "rightSidebar" auto
        / 1fr;
}

.right-sidebar{
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #ffd6eb;
}

.right-sidebar nav{
    margin-bottom: 0;
}

.right-sidebar .menu-links{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.right-sidebar .menu-links li{
    transform: none !important;
}

.right-sidebar .menu-links a{
    margin: 0;
}

.right-sidebar .sidebar-section{
    margin-top: 1.5rem;
}

.right-sidebar .sidebar-section:not(:last-child)::after{
    display: none;
}

.right-sidebar .sidebar-section a{
    margin: 0 auto;
}

main{
    background: var(--content-background-color);
    padding-top: var(--padding);
}

.search-page{
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------------- LOGO ---------------- */
/* the same logo used in the site header, standing in for the
   "search engine" logo */

.search-logo{
    width: 220px;
    max-width: 60%;
    height: auto;
    margin: 6vh 0 2rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

/* ---------------- SEARCH FORM ---------------- */

.search-engine{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form{
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-bar{
    width: 100%;
}

.search-bar input{
    width: 100%;
    font-family: var(--font);
    font-size: 1.05rem;
    padding: 14px 24px;
    border: 2px solid #ffd6eb;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: var(--text-color);
    box-shadow: 0 0 12px rgba(255,182,219,.3);
    transition: box-shadow .2s ease, transform .2s ease;
}

.search-bar input:hover{
    box-shadow: 0 0 16px rgba(255,182,219,.45);
}

.search-bar input:focus{
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255,182,219,.6);
}

.search-buttons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.search-btn{
    font-family: var(--heading-font);
    font-size: 1rem;
    background: rgba(255,255,255,.85);
    color: var(--link-color);
    border: 2px solid #ffd6eb;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: url('https://file.garden/aTr8t_0tyznNb_DW/cursor(1).cur'), pointer;
    box-shadow: 0 0 10px rgba(255,182,219,.25);
    transition: all .2s ease;
}

.search-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255,182,219,.5);
}

.search-btn:focus-visible{
    outline: 3px solid var(--link-color);
    outline-offset: 3px;
}

.search-hint{
    margin-top: 20px;
    font-size: .85rem;
    color: var(--muted, #9a95a3);
    text-align: center;
}

/* ---------------- RESULTS ---------------- */

.art-results{
    width: 100%;
    max-width: 900px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.art-result-name{
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--text-color);
}

.art-viewer{
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.art-thumbs{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.art-thumb{
    background: transparent;
    border: none;
    padding: 0;
    cursor: url('https://file.garden/aTr8t_0tyznNb_DW/cursor(1).cur'), pointer;
    border-radius: 20px;
    transition: transform .2s ease, filter .2s ease;
}

.art-thumb img{
    max-width: 320px;
    width: 100%;
    display: block;
    border-radius: 20px;
}

.art-thumb:hover{
    transform: translateY(-6px) scale(1.03);
    filter:
        drop-shadow(0 0 12px rgba(255,255,255,.7))
        drop-shadow(0 0 20px rgba(227,139,218,.35));
}

.art-thumb:focus-visible{
    outline: 3px solid var(--link-color);
    outline-offset: 3px;
}

.art-thumb.active{
    box-shadow: 0 0 0 3px #ff9ad1, 0 0 18px rgba(227,139,218,.4);
}

.art-description{
    display: none;
    flex: 1 1 260px;
    max-width: 360px;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background: rgba(255,255,255,.85);
    border: 2px solid #ffd6eb;
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: 0 0 12px rgba(255,182,219,.3);
}

.art-description.active{
    display: block;
    animation: profile-in .4s cubic-bezier(.22,1,.36,1);
}

@keyframes profile-in{
    0%{ opacity: 0; transform: translateX(30px); }
    100%{ opacity: 1; transform: translateX(0); }
}

.art-no-results{
    font-family: var(--font);
    color: var(--link-color);
    text-align: center;
    padding: 20px;
}

.art-error{
    font-family: var(--font);
    text-align: center;
    padding: 24px 32px;
    border: 2px solid #ffd6eb;
    border-radius: 24px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 0 12px rgba(255,182,219,.3);
    animation: error-shake .4s ease;
}

.art-error-heading{
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--link-color);
    margin: 0 0 8px;
}

.art-error-desc{
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

@keyframes error-shake{
    0%, 100%{ transform: translateX(0); }
    20%{ transform: translateX(-8px); }
    40%{ transform: translateX(8px); }
    60%{ transform: translateX(-6px); }
    80%{ transform: translateX(6px); }
}

/* ---------------- CERES EASTER EGG ---------------- */
/* searching "ceres" turns the whole page purple and flips the
   logo upside down, until you search something else */

body.ceres-mode{
    background-color: #B026FF;
    --text-color: #ffffff;
    --link-color: #ffffff;
    --muted: #f0dbff;
}

body.ceres-mode main{
    background: #B026FF;
}

body.ceres-mode .search-logo{
    animation: none;
    transform: rotate(180deg);
}

body.ceres-mode .art-error{
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.6);
}

body.ceres-mode .search-bar input{
    box-shadow: 0 0 16px rgba(255,255,255,.5);
}

/* everything else on the page stops moving too — no glows
   pulsing, no hover transitions, no reveal animations, until
   you search something that isn't "ceres" again */
body.ceres-mode *{
    animation: none !important;
    transition: none !important;
}

/* ---------------- HANAKO EASTER EGG ---------------- */
/* searching "hanako" turns the page light pink and starts a
   waterfall of falling flowers, until you search something else */

body.hanako-mode{
    background-color: #FFB6C1;
    --text-color: #7a2e4d;
    --link-color: #7a2e4d;
    --muted: #a15a76;
}

body.hanako-mode main{
    background: #FFB6C1;
}

body.hanako-mode .art-error{
    background: rgba(255,255,255,.5);
    border-color: rgba(122,46,77,.4);
}

body.hanako-mode .search-bar input{
    box-shadow: 0 0 16px rgba(122,46,77,.3);
}

.hanako-flowers{
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 9999;
}

.hanako-flower{
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    will-change: transform;
}

.hanako-flower svg{
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce){
    .search-logo{
        animation: none;
    }

    .art-error{
        animation: none;
    }

    .art-thumb, .art-description{
        transition: none;
        animation: none;
    }

    body.ceres-mode .search-logo{
        animation: none;
        transform: rotate(180deg);
    }

    .hanako-flower{
        animation: none;
        display: none;
    }
}

@media (max-width: 800px){
    .search-logo{
        width: 160px;
    }

    .search-page{
        padding: 2rem 1rem 3rem;
    }
}