@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');



#team-header{
    min-height:60px;
    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;
    padding:10px 25px;
    box-sizing:border-box;
}


#team-name{
    flex:1;
    text-align:center;
    color:aliceblue;
    margin:0;
    font-family: "Bangers", "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.header-side,
.header-actions {
    width: 120px;
    flex-shrink: 0;
}

/* Save + Tag filter header */
.header-left {
    width:120px;
    display:flex;
    align-items:center;
    gap:10px;
    position:relative;
}


#tag-dropdown {
    position:relative;
}


#tag-dropdown-button {
    background:white;
    border:none;
    border-radius:6px;
    padding:8px 12px;
    cursor:pointer;
    font-weight:bold;
    white-space:nowrap;
}


#tag-dropdown-menu {
    position:absolute;
    top:40px;
    left:0;

    background:white;
    color:black;

    width:180px;
    max-height:250px;
    overflow-y:auto;

    border:1px solid black;
    border-radius:5px;

    z-index:2000;
}


.tag-option {
    padding:8px;
    cursor:pointer;
}


.tag-option:hover {
    background:#ddd;
}
/* Save + Tag filter header */



#save-button,
#publish-button{
    background-color:white;
    padding:8px 16px;
    cursor:pointer;
    border:none;
    border-radius:6px;
    font-weight:bold;
    
}

/* when clicked (mouse down) */
#save-button:active,
#publish-button:active{
  transform: translateY(3px);
  box-shadow: 0 1px 0 #312e81;
}



.edit-button img {
    background-color:white;
    width: 30px;
    height: 30px;
}

.edit-button:active{
    transform: translateY(3px);
    box-shadow: 0 1px 0 #312e81;
}

#page-layout {
    display: grid;
    grid-template-columns: 600px 2px 1fr;
    column-gap: 30px;
}

#left-section,
#right-section {
    position: relative;
}


/*                   Left section                 */
/*                   Core section                 */


#team-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    margin-bottom: 20px;
    margin-left: 15px;
    padding: 28px 26px 22px;
    border-radius: 18px;
    border: 1px solid rgba(164, 204, 255, 0.3);
    background: rgba(11, 24, 38, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
}

#core-slots {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 60px;
    justify-content: center;
}

.team-section-label {
    color: aliceblue;
    margin: 26px 0 10px;
    text-align: center;
    font-family: "Bangers", "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 400;
    text-transform: uppercase;
}

#core-label {
    margin-top: 0;
}

#core-bench-container {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    column-gap: 60px;
    justify-content: center;
    margin: 0 auto 12px;
}

.core-bench-column {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 8px 6px;
    justify-self: center;
    width: 114px;
}

.core-bench-slot-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
}

.core-b-slot {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(170, 211, 255, 0.18);
}

.core-bench-slot-wrapper.filled .core-b-slot {
    background: none;
}

.core-bench-slot-wrapper .zenkai-icon {
    display: none;
}

.core-bench-slot-wrapper.filled.has-zenkai .zenkai-icon {
    display: block;
}

.core-bench-slot-wrapper .zenkai-icon {
    top: -7px;
    left: -8px;
    width: 34px;
}

.core-bench-slot-wrapper .ll-icon {
    display: none;
    top: -4px;
    left: 50%;
    width: 38px;
    height: 3px;
}

.core-bench-slot-wrapper.filled.has-ll .ll-icon {
    display: block;
}

#sub-container {
    display: grid;
    grid-template-columns: repeat(4, 70px);
    column-gap: 50px;
    row-gap: 18px;
    justify-content: center;
    margin: 0 auto 20px;
    margin-left: -20px;
}

.sub-slot-wrapper {
    width: 50px;
    height: 50px;
}

.sub-slot-wrapper .slot {
    width: 80%;
    height: 80%;
    margin: 10% auto;
}

.sub-slot-wrapper .rarity-icon {
    left: 10px;
    width: 25px;
}

.sub-slot-wrapper .color-icon.primary {
    right: 5px;
    width: 25px;
}

.sub-slot-wrapper .color-icon.secondary {
    right: 8px;
    width: 10px;
}

.sub-slot-wrapper .zenkai-icon {
    left: 4px;
    width: 45px;
}

.sub-slot-wrapper .ll-icon {
    width: 110px;
    top: -2px;
}
 

/* Rarity icon, Circle slot, Color icon */
.slot-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

/* slot */
.slot {
    border-radius: 50%;   /* makes it a circle */
    width: 100%;
    height: 100%;
    background-color: #ddd;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(170, 211, 255, 0.18);
}

/* hovering over circles */
.slot:hover {
    background-color: #ccc;
    transform: scale(1.05);
}

#core-slots .slot,
#core-slots .slot:hover,
.sub-slot-wrapper .slot,
.sub-slot-wrapper .slot:hover {
    background: none;
}

/* Core slots */
.slot-wrapper.filled .slot {
    background: none;
}

.rarity-icon {
    position: absolute;
    left: -15px;
    bottom: 5px;
    width: 30px;
    z-index: 2;
    cursor: pointer;
}



.color-icon.primary {
    position: absolute;
    right: -15px;
    bottom: 5px;
    width: 30px;
    z-index: 2;
    cursor: pointer;
}

/* secondary color (smaller + overlapping) */
.color-icon.secondary {
    position: absolute;
    right: -15px;     /* slightly inside */
    bottom: 1px;    /* slightly above */
    width: 18px;     /* smaller */
    z-index: 3;      /* above primary */
}


.zenkai-icon {
    position: absolute;
    left: -10px;
    top: -4px;
    width: 50px;
    z-index: 3;
}

.ll-icon {
    position: absolute;
    top: -10px;
    left: 70%;
    transform: translateX(-50%);
    width: 150px;
    height: 8px;
    z-index: 3;
}





/*                   Benches section                 */


#bench-label {
    color: aliceblue;
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    font-family: "Bangers", "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#bench-section {
    position: relative;
    margin-top: 12px;
    padding: 0.5px 18px 14px;
    border-radius: 16px;
    border: 1px solid rgba(164, 204, 255, 0.25);
    background: rgba(12, 25, 38, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin-left: 15px;
}

#bench-container{
    display: grid;
    grid-template-columns: repeat(5, 80px);
    row-gap: 10px;
    justify-content: left;
    margin-top: 0;
    width: fit-content;
}

/* Rarity icon, Circle slot, Color icon */
.bench-slot-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.b-slot {
    width: 50px;
    height: 50px;
    border-radius: 50%;   /* makes it a circle */

    background: none;
    

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-shadow: 0 0 8px rgba(170, 211, 255, 0.18);
}

.b-slot:hover {
    background-color: #ccc;
    transform: scale(1.05);
}

.bench-slot-wrapper .b-slot:hover {
    background: none;
}



/* bench icons */


.bench-icon {
    width: 20px;
}

/* rarity icon on left */
.bench-slot-wrapper .rarity-icon {
    left: -10px;
    bottom: 0px;
    width: 20px;
}

/* color icon on right */
.bench-slot-wrapper .color-icon.primary {
    right: -10px;
    bottom: 0px;
    width: 20px;
}
.bench-slot-wrapper .color-icon.secondary {
    position: absolute;
    right: -10px;     /* slightly inside */
    bottom: 1px;    /* slightly above */
    width: 9px;     /* smaller */
    z-index: 3;      /* above primary */
}

.bench-slot-wrapper .zenkai-icon {
    position: absolute;
    left: -10px;
    top: -7px;
    width: 35px;
    z-index: 3;
}

.bench-slot-wrapper .ll-icon {
    position: absolute;
    top: -8px;
    left: 80%;
    transform: translateX(-50%);
    width: 90px;
    height: 6px;
    z-index: 3;
}

.b-slot {
    overflow: hidden;   /* clip image into circle */
}






/* Hide special labels for now unless filled */
.slot-wrapper.empty .zenkai-icon,
.slot-wrapper.empty .ll-icon,
.bench-slot-wrapper.empty .zenkai-icon,
.bench-slot-wrapper.empty .ll-icon {
    display: none;
}

/* Empty rarity and color slot: show faded icon */
.slot-wrapper.empty .color-icon.primary,
.slot-wrapper.empty .rarity-icon,
.bench-slot-wrapper.empty .color-icon.primary,
.bench-slot-wrapper.empty .rarity-icon {
    display: block;
    opacity: 0.6;
    filter: grayscale(100%) brightness(1.2);
}

.slot-wrapper.empty .color-icon.secondary,
.bench-slot-wrapper.empty .color-icon.secondary {
    display: none;
}


/* Hover for color and rarity icon*/
.slot-wrapper .color-icon:hover,
.slot-wrapper .rarity-icon:hover,
.bench-slot-wrapper .color-icon.primary:hover,
.bench-slot-wrapper .rarity-icon:hover {
    opacity: 0.6;
    transform: scale(1.1);
}




/* A specifically chosen color or rarity is live */
.slot-wrapper.empty .color-icon.primary.planned,
.slot-wrapper.empty .rarity-icon.planned,
.bench-slot-wrapper.empty .color-icon.primary.planned,
.bench-slot-wrapper.empty .rarity-icon.planned {
    opacity: 1;
    filter: none;
}


/* 2nd color icon, zenkai icon, ll icon display none for now */
.slot-wrapper.planned .color-icon.secondary,
.slot-wrapper.planned .zenkai-icon,
.slot-wrapper.planned .ll-icon,

.bench-slot-wrapper.planned .color-icon.secondary,
.bench-slot-wrapper.planned .zenkai-icon,
.bench-slot-wrapper.planned .ll-icon {
    display: none;
}



/* Filled slot: character selected */
.slot-wrapper.filled .rarity-icon,
.slot-wrapper.filled .color-icon.color-icon.primary {
    display: block;
}
.slot-wrapper.filled .zenkai-icon,
.slot-wrapper.filled .ll-icon {
    display: none;
}

/* Show when filled */
.slot-wrapper.filled.has-zenkai .zenkai-icon {
    display: block;
}
.slot-wrapper.filled.has-ll .ll-icon {
    display: block;
}


.slot-wrapper.filled.no-secondary .color-icon.secondary {
    display: none;
}
.slot-wrapper.filled.has-secondary .color-icon.secondary {
    display: block;
}



.slot {
    overflow: hidden;   /* clip image into circle */
}













/*Filled*/

.bench-slot-wrapper.filled .b-slot {
    border:none;
    background: none;
}


.bench-slot-wrapper.filled .rarity-icon,
.bench-slot-wrapper.filled .color-icon.primary {
    display: block;
    opacity: 1;
    filter: none;
}

.bench-slot-wrapper.filled.no-secondary .color-icon.secondary {
    display: none;
}

.bench-slot-wrapper.filled.has-secondary .color-icon.secondary {
    display: block;
}



.bench-slot-wrapper.filled .zenkai-icon,
.bench-slot-wrapper.filled .ll-icon {
    display: none;
}

.bench-slot-wrapper.filled.has-zenkai .zenkai-icon {
    display: block;
}

.bench-slot-wrapper.filled.has-ll .ll-icon {
    display: block;
}


/* Notes */

#notes-section {
    margin-top: 30px;
    margin-left: 15px;
    width: 400px;
    padding: 10px 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(170, 211, 255, 0.32);
    background: rgba(7, 16, 26, 0.36);
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
}

#notes-section h3 {
    margin: 0 0 8px;
    text-align: center;
    color: white;
    font-family: "Bangers", "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#team-notes {
    width: 100%;
    height: 70px;
    padding: 10px 0;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: #f4f9ff;
    box-sizing: border-box;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.02em;
}






/* Divider */


#divider {
    width: 2px;
    height: 600px; /* adjust later */
    background: transparent;
}



/*                   Right section                 */
#right-section {
    margin-top: 35px;
    color: white;
    padding: 18px 16px 10px;
    border-radius: 18px;
    border: 1px solid rgba(164, 204, 255, 0.42);
    background: rgba(10, 20, 32, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 12px 28px rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

#equip-instruction{
    display: block;
    text-align:center;
    margin-top:10px;
    margin-bottom:20px;
    font-family: "Bangers", "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}



#choice-header {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    column-gap: 25px;
    align-items: center;
    margin-bottom: 20px;
}

#choice-header h2,
#notes-section h3 {
    font-family: "Bangers", "Segoe Print", "Comic Sans MS", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* blank space above color icons */
#choice-header h2:first-child {
    grid-column: 2;
}

.choice-row {
    display: grid;
    grid-template-columns: 60px minmax(170px, 1fr) minmax(210px, 1fr);
    column-gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 16px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(24, 39, 58, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 8px 22px rgba(12,18,28,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.choice-row[data-color="RED"] {
    background: rgba(112, 31, 31, 0.7);
    border-color: rgba(255, 170, 170, 0.42);
}

.choice-row[data-color="RED"] .choice-character,
.slot-wrapper[data-color="RED"] .slot,
.core-bench-slot-wrapper[data-color="RED"] .core-b-slot {
    box-shadow: 0 0 12px rgba(255, 90, 90, 0.9), 0 0 24px rgba(255, 60, 60, 0.7);
}

.choice-row[data-color="GREEN"] {
    background: rgba(26, 71, 53, 0.7);
    border-color: rgba(170, 255, 190, 0.42);
}

.choice-row[data-color="GREEN"] .choice-character,
.slot-wrapper[data-color="GREEN"] .slot,
.core-bench-slot-wrapper[data-color="GREEN"] .core-b-slot {
    box-shadow: 0 0 12px rgba(95, 255, 140, 0.9), 0 0 24px rgba(60, 255, 120, 0.7);
}

.choice-row[data-color="YELLOW"] {
    background: rgba(115, 92, 28, 0.7);
    border-color: rgba(255, 232, 150, 0.42);
}

.choice-row[data-color="YELLOW"] .choice-character,
.slot-wrapper[data-color="YELLOW"] .slot,
.core-bench-slot-wrapper[data-color="YELLOW"] .core-b-slot {
    box-shadow: 0 0 12px rgba(255, 218, 88, 0.9), 0 0 24px rgba(255, 196, 60, 0.72);
}

.choice-row[data-color="BLUE"] {
    background: rgba(29, 56, 102, 0.7);
    border-color: rgba(180, 215, 255, 0.42);
}

.choice-row[data-color="BLUE"] .choice-character,
.slot-wrapper[data-color="BLUE"] .slot,
.core-bench-slot-wrapper[data-color="BLUE"] .core-b-slot {
    box-shadow: 0 0 12px rgba(106, 180, 255, 0.9), 0 0 24px rgba(60, 150, 255, 0.72);
}

.choice-row[data-color="PURPLE"] {
    background: rgba(63, 47, 100, 0.7);
    border-color: rgba(224, 183, 255, 0.42);
}

.choice-row[data-color="PURPLE"] .choice-character,
.slot-wrapper[data-color="PURPLE"] .slot,
.core-bench-slot-wrapper[data-color="PURPLE"] .core-b-slot {
    box-shadow: 0 0 12px rgba(205, 120, 255, 0.9), 0 0 24px rgba(170, 82, 255, 0.7);
}

.choice-row[data-color="LIGHT"] {
    background: rgba(147, 160, 181, 0.7);
    border-color: rgba(255, 255, 255, 0.34);
}

.choice-row[data-color="LIGHT"] .choice-character,
.slot-wrapper[data-color="LIGHT"] .slot,
.core-bench-slot-wrapper[data-color="LIGHT"] .core-b-slot {
    box-shadow: 0 0 12px rgba(235, 245, 255, 0.9), 0 0 24px rgba(210, 220, 255, 0.72);
}

.choice-color {
    width: 45px;
}

.choice-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    min-height: 70px;
}

.choice-character {
    position: relative;
    overflow: visible;
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}





/* Zenkai (smaller for right side) */
.choice-character .zenkai-icon {
    position: absolute;
    top: -8px;
    left: -15px;
    width: 45px;
    z-index: 3;
}

/* LL (smaller and centered) */
.choice-character .ll-icon {
    position: absolute;
    top: -10px;
    left: 65%;
    transform: translateX(-50%);
    width: 95px;
    height: 6px;
    z-index: 3;
}

/* EMPTY */
.choice-character.empty {
    opacity: 0.4;
    border:none
}

/* FILLED */
.choice-character.filled {
    opacity: 1;
    border:none;
    background:none;
}
.choice-character.filled .choice-slot {
    background: none;
}

.choice-character:hover {
    transform: scale(1.05);
}

/* Inner circle (same idea as .slot / .b-slot) */
.choice-slot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;        /* clips image into circle */
    background-color: #ddd;  /* temporary (remove later) */
}

.choice-character .zenkai-icon,
.choice-character .ll-icon {
    display: none;
}

.choice-character.filled.has-zenkai .zenkai-icon {
    display: block;
}

.choice-character.filled.has-ll .ll-icon {
    display: block;
}





/* Character image */
.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* fill circle */
    object-position: center; /* center image */
    transform: scale(1.3);   /* adjust for webp padding */
}

.hidden {
    display: none;
}


#character-picker {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    background: white;
    color: black;
    padding: 10px;
    border: 1px solid black;

    max-height: 250px;
    width: 250px;
    overflow-y: auto;
}




.slot-name {
    color: white;
    font-size: 10px;
    text-align: center;
    display: block;
    padding-top: 30px;
}

.character-option {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.character-option img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover if you prefer crop */
}


/*Pickers */
#color-picker,
#rarity-picker {
    position: fixed;
    z-index: 1000;
}

.picker-color,
.picker-rarity {
    width:20px;
    cursor: pointer;
}

#notes-section h3 {
    color: white;
}