/*================================*/
/*    INDEX.CSS                   */
/*    KGARMIRE, 2025-12-28        */
/*================================*/

html, body{
    width:100%;
    height:100%;
    padding:0;
    margin:0;
}

body{
    background-color: burlywood;
    font-family: "Quicksand", sans-serif;
    background-image: url('../graphics/stipple.png');
    background-size: cover;
    background-blend-mode: difference;
}

.animate__animated {
    --animate-duration: 0.25s;
}

.submit-button{
    display: grid;
    grid-template-columns: 24px 1fr;
    place-items: center start;
    gap:8px;

    height:48px;
    width:100%;

    border:none;
    border-radius: 4px;
    font-size: 1.2rem;

    background-color: saddlebrown;
    color:white;
    font-family: "Quicksand", sans-serif;
}

.submit-button.hollow{
    background-color: transparent;
    border:2px solid saddlebrown;
    color:saddlebrown;
    font-weight: 500;
}

button.toggle{
    border: none;
    background-color: rgba(139,69,19,0.2);
    padding: 8px;
    border-radius: 99px;
    font-family: 'Quicksand', sans-serif;
    color: white;
    font-size: 1rem;
}
button.toggle.active{
    background-color: saddlebrown;
}

button:active{
    filter:brightness(0.8);
}

input:disabled, select:disabled, textarea:disabled
{
    opacity:0.5;
}

label{
    color: saddlebrown;
    font-weight: 500;
    margin-bottom: 0px;
}

.scrim{
    background-color: rgba(0, 0, 0, 0.8);
}

/*--- HEADER ---------------------*/
header{
    height:55px;
    width:100%;

    display: flex;
    background-color: sienna;
    color:white;
}

header>.flex{
    width:100%;
    max-width: 800px;
    margin:0 auto;
}

header h1{
    font-weight: normal;
    font-family: "Leckerli One", sans-serif;
    margin:auto auto auto 12px;
}

header button {
    display: flex;
    justify-content: center;
    align-items: center;
    
    height:55px;
    width:auto;

    background: transparent;
    border:none;
    opacity:0.5;
}

header button:active {
    background-color: rgba(245,222,179,0.2);
}

header button.active{
    background-color: rgba(245,222,179,0.2);
    opacity:1;

}
/*header button.active svg{
    stroke : dodgerblue;
}*/

main {
    height:calc(100% - 55px);
    width:100%;
}

/*--- MAIN -----------------------*/
section{
    display: none;
    height:100%;
    width:100%;
    max-width: 800px;
    margin:0 auto;
    overflow: auto;
    padding:8px;
}

section#table-view{
    display:block;
}

.view-main{
    display: flex;
    flex-direction: column;
    gap:8px;
}

fieldset{
    border: 2px solid sienna;
    border-radius: 4px;
    background: rgba(160,82,45,0.2);
    padding: 8px;
}

fieldset legend {
    padding: 4px 8px;
    background: sienna;
    border-radius: 99px;
    color: white;
}


/*--- TABLE ----------------------*/
#table{}

#table h2{
    color: #222;
    font-weight: normal;
    margin: 0 0 4px 0;
    font-size: 1.4rem;
}

#table hr{
    border: none;
    border-bottom: 1px solid sienna;
    margin: 24px 12px 18px 12px;
}

#table .dumpling {
    height:auto;
    min-height:36px;
    width:100%;
    padding-right:8px;

    background-color: #f5eadb;
    border-radius: 18px;
    font-size: 1.2rem;
}

#table .dumpling .main-grid{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    place-items: center start;
}

#table .dumpling.wishlist .main-grid{
    opacity: 0.5;
    filter: grayscale(0.5);
}


#table .country-chip {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 4px;
    place-items: center start;

    height:100%;
    min-height:36px;
    width:auto;
    padding: 0 12px 0 6px;
    
    background-color: #222;
    color:white;
    border-radius: 99px;

    font-family: "IBM Plex Mono", monospace;
    font-weight: 300;
    font-style: normal;
}

img.flag{
    height:24px;
    width:24px;
    clip-path: circle(50%);
}

#table .dumpling .detail-grid{    
    font-size: 0.9rem;
    padding:8px;

    display: flex;
    flex-direction: column;
    gap:8px;
}

#table .dumpling .detail-grid.has-image{
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 8px;
}

.thumbnail{
    border-radius: 18px;
    width:128px;
    height:128px;
}


a:has(.weblink){
    margin-top:auto;
}

.weblink{
    display: grid;
    grid-template-columns: 24px 1fr;
    place-items: center start;
    gap:8px;

    background-color: steelblue;
    color:white;

    border-radius: 99px;
    padding:4px 8px;
}

/*... EDIT ACTION ................*/
.action-wrapper{
    position: relative;
}

.edit-action{
    position: absolute;
    z-index: -1;
    top:0;
    left:0;

    display: grid;
    grid-template-columns: 1fr 64px;
    place-items: center;
    background-color: dodgerblue;
    border-radius: 18px;
    width:calc(100% - 4px);
    height:calc(100% - 4px);

    margin:2px;
}


/*--- MENU -----------------------*/

.menu-button{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    place-items: center start;

    height:auto;
    min-height:48px;
    width:100%;
    padding:8px;

    color:white;
    background-color: rgba(0, 0, 0, 0.7);
    border:none;
    border-radius: 99px;
    font-size: 1.2rem;
}


/*--- FORM -----------------------*/
