/* Forge Hero Shop UI
   Extracted from style.css.
   Covers: main shop modal, Prism Stones window, Gold/Silver Prestige windows,
   shop item cards, shop price text, and Prestige scrollbars.
*/

.shop-panel {
    border: 15px solid transparent;
    border-image-source: url('./images/modalframe.png');
    border-image-slice: 100 fill;
    border-image-width: 70px;
    width: 95%;
    max-width: 380px;
    height: 85vh;
    max-height: 600px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    animation: none !important;
}

.shop-header {
    padding: 0 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: visible;
}

.shop-header h2 {
    font-family: 'Rye', cursive;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1;
    max-width: 100%;
    margin: 0;
    color: #ffd55c;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.shop-footer {
    flex-shrink: 0;
    height: 30px;
}

#close-shop-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 30px;
    height: 29px;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
}

#close-prism-stones-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 30px;
    height: 29px;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
}

.shop-content {
    padding: 2px 35px;
    overflow-y: auto;
    flex-grow: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#shop-modal .shop-content {
    margin-top: 6px;
}

#gold-pass-modal .shop-content {
    margin-top: 10px;
}

#silver-pass-modal .shop-content {
    margin-top: 10px;
}

.shop-content::-webkit-scrollbar {
    display: none;
}

.shop-content h3 {
    font-family: 'Graduate', serif;
    color: #dfc117;
    text-align: center;
    margin: 15px 0 10px 0px;
    font-size: 18px;
}

.shop-content h3.shop-section-title-white {
    color: #ffffff;
    text-shadow:
        1px 1px 0 #000,
        0 0 5px rgba(255, 255, 255, 0.35);
}

.shop-item-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.shop-item-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-prism-stones-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-prism-stones-card {
    --prism-title-y: 0px;

    width: 100%;
    height: clamp(110px, 34vw, 130px);
    padding: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.shop-prism-stones-title {
    font-family: 'Graduate', serif;
    font-size: clamp(14px, 4.2vw, 18px);
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transform: translateY(var(--prism-title-y));

    background: linear-gradient(90deg,
            #ffc0cb,
            #ffe4b5,
            #98ff98,
            #add8e6,
            #ffc0cb);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: prism-flow 4s linear infinite;
    filter:
        drop-shadow(1px 1px 0 #000) drop-shadow(0 0 4px rgba(255, 255, 255, 0.65));
}

.shop-prism-stones-card:active {
    transform: scale(0.95);
}

.shop-item-card {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Lilita One', cursive;
}

.shop-item-card .card-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    margin-top: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.shop-item-card .card-bonus {
    font-size: clamp(9.5px, 2.85vw, 12px);
    line-height: 1.05;
    color: #ffd55c;
    margin-top: -4px;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.shop-item-card .card-image-container {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}

.shop-item-card .card-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-top: 15px;
}

.shop-item-card .card-buy-button,
.shop-footer .card-buy-button {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    width: 100%;
    min-height: 50px;
    cursor: pointer;
    transition: transform 0.1s ease;
    margin-top: 5px;
    position: relative;
}

.shop-item-card .card-buy-button:active,
.shop-footer .card-buy-button:active {
    transform: scale(0.95);
}

.shop-item-card .card-buy-button span,
.shop-footer .card-buy-button span {
    position: absolute;
    top: 50%;
    left: 50%;
    white-space: nowrap;
    font-family: 'Graduate', serif;
    font-size: 14px;
    color: #dfc117;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.shop-item-card .card-buy-button span {
    transform: translate(-52%, -50%);
}

.shop-footer .card-buy-button span {
    transform: translate(-50%, -50%);
}

.shop-item-card .card-buy-button span.shop-price-prism {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font-size: clamp(9px, 2.75vw, 13px);

    background: linear-gradient(90deg,
            #ffc0cb,
            #ffe4b5,
            #98ff98,
            #add8e6,
            #ffc0cb);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: prism-flow 4s linear infinite;
    filter:
        drop-shadow(1px 1px 0 #000) drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
}

.shop-item-card .card-buy-button span.shop-soft-currency-price {
    --shop-soft-price-size: clamp(9px, 2.75vw, 13px);
    --shop-soft-price-y: 0px;
    --shop-soft-price-icon-size: clamp(12px, 3.4vw, 16px);
    --shop-soft-price-gap: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--shop-soft-price-gap);

    font-family: 'Graduate', serif;
    font-size: var(--shop-soft-price-size);
    font-weight: bold;

    background: none;
    animation: none;
    filter: none;
    text-shadow: none;
    color: inherit;

    transform: translate(-52%, calc(-50% + var(--shop-soft-price-y)));
}

.shop-item-card .card-buy-button span.shop-soft-currency-price img {
    position: static;
    top: auto;
    left: auto;
    transform: none;

    width: var(--shop-soft-price-icon-size);
    height: var(--shop-soft-price-icon-size);
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    filter: none;
}

.shop-item-card .card-buy-button span.shop-soft-currency-price .shop-soft-currency-price-number {
    position: static;
    top: auto;
    left: auto;
    transform: none;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    white-space: nowrap;

    background: linear-gradient(90deg,
            #ffc0cb,
            #ffe4b5,
            #98ff98,
            #add8e6,
            #ffc0cb);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: prism-flow 4s linear infinite;
    text-shadow: none;
    filter:
        drop-shadow(1px 1px 0 #000) drop-shadow(0 0 3px rgba(255, 255, 255, 0.45));
}

.shop-soft-currency-price img {
    width: var(--shop-soft-price-icon-size);
    height: var(--shop-soft-price-icon-size);
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    filter: none;
}

.shop-soft-currency-price-number {
    color: inherit;
    font: inherit;
    line-height: 1;
    text-shadow: inherit;
}

.shop-price-prism img {
    width: clamp(11px, 3.2vw, 15px);
    height: clamp(11px, 3.2vw, 15px);
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 1px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
}

#prism-stones-modal .shop-content {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.prism-stones-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    padding-bottom: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.8vw, 8px);
}

.prism-stone-pack-card {
    --prism-image-box-height: clamp(40px, 11.5vw, 56px);
    --prism-image-size: 150%;
    --prism-image-y: 23px;

    --prism-text-y: 35px;

    --prism-bonus-label-size: clamp(8px, 2.5vw, 10px);
    --prism-bonus-label-y: 38px;

    --prism-bonus-amount-size: clamp(10px, 3.4vw, 15px);
    --prism-bonus-amount-y: 40px;

    --prism-price-text-size: clamp(8px, 2.8vw, 12px);
    --prism-price-text-y: -1px;

    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    padding: clamp(5px, 1.8vw, 9px);
}

.prism-stone-pack-card .card-image-container {
    height: var(--prism-image-box-height);
    margin: 0;
    flex-shrink: 0;
}

.prism-stone-pack-card .card-image-container img {
    max-width: var(--prism-image-size);
    max-height: var(--prism-image-size);
    object-fit: contain;
    margin-top: 0;
    transform: translateY(var(--prism-image-y));
}

.prism-stone-pack-card .card-title {
    margin-top: clamp(1px, 0.7vw, 3px);
    font-size: clamp(14px, 4.2vw, 20px);
    line-height: 1;
    transform: translateY(var(--prism-text-y));
}

.prism-stone-pack-card .card-bonus-label {
    margin-top: 1px;
    font-family: 'Graduate', serif;
    font-size: var(--prism-bonus-label-size);
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.4px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transform: translateY(var(--prism-bonus-label-y));
}

.prism-stone-pack-card .card-bonus {
    margin-top: 1px;
    font-size: var(--prism-bonus-amount-size);
    line-height: 1;
    color: #ffd55c;
    transform: translateY(var(--prism-bonus-amount-y));
}

.prism-stone-pack-card .card-buy-button {
    min-height: clamp(30px, 8.6vw, 40px);
    margin-top: auto;
    flex-shrink: 0;
}

.prism-stone-pack-card .card-buy-button span {
    top: calc(50% + var(--prism-price-text-y));
    font-size: var(--prism-price-text-size);
    transform: translate(-52%, -50%);
}

.shop-item-vertical .shop-item-card {
    min-height: 90px;
    padding: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.shop-item-vertical .shop-item-card span {
    font-family: 'Graduate', serif;
    font-weight: bold;
    white-space: nowrap;
}

.pass-title {
    font-size: clamp(12px, 3.6vw, 16px);
    line-height: 1.05;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
}

.pass-price {
    font-size: clamp(11px, 3.35vw, 14px);
    line-height: 1.05;
    color: #FFD700;
    margin-top: 3px;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
}

.shop-item-card:first-child .pass-title {
    color: #FFD700;
    font-size: clamp(12px, 3.45vw, 15px);
}

.shop-item-card:first-child .pass-price {
    color: #FFFFFF;
}

.shop-item-card:last-child .pass-title {
    color: #E0E0E0;
    font-size: clamp(11.5px, 3.35vw, 14px);
}

.shop-item-card:last-child .pass-price {
    color: #FFFFFF;
}

.shop-item-vertical .shop-item-card:active {
    transform: scale(0.95);
}

.shop-item-card:first-child .pass-title.animated-gold-text,
.perk-list .animated-gold-text {
    background: linear-gradient(to right,
            #D4AF37 0%,
            #D4AF37 40%,
            #FFF7B6 50%,
            #D4AF37 60%,
            #D4AF37 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow-wave 7s linear infinite;
    text-shadow: none;
}

.shop-item-card:last-child .pass-title.animated-silver-text,
.perk-list .animated-silver-text {
    background: linear-gradient(to right,
            #A9A9A9 0%,
            #A9A9A9 40%,
            #FFFFFF 50%,
            #A9A9A9 60%,
            #A9A9A9 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow-wave 7s linear infinite;
    text-shadow: none;
}

#gold-pass-modal,
#silver-pass-modal,
#prism-stones-modal {
    z-index: 101;
}

#close-gold-pass-button,
#close-silver-pass-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 30px;
    height: 29px;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;

}

.shop-footer .card-buy-button {
    width: 100%;
    min-height: 60px;
    margin-bottom: 5px;
    margin-top: -5px;
}

#buy-gold-pass-button.prestige-pass-activated-button,
#buy-silver-pass-button.prestige-pass-activated-button {
    filter: grayscale(0.9) brightness(0.65);
    cursor: not-allowed;
    transform: none !important;
}

#buy-gold-pass-button.prestige-pass-activated-button span,
#buy-silver-pass-button.prestige-pass-activated-button span {
    color: #9a9a9a !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85) !important;
}

#buy-gold-pass-button.prestige-pass-activated-button:active,
#buy-silver-pass-button.prestige-pass-activated-button:active {
    transform: none !important;
}

.perk-list {
    text-align: left;
    font-family: 'Nunito', sans-serif;
    color: #f0f0f0;
    padding: 0 10px;
}

.perk-list ul {
    list-style-type: '✓ ';
    padding-left: 20px;
    margin: 10px 0;
}

#gold-pass-modal .perk-list li,
#silver-pass-modal .perk-list li {
    margin-bottom: 6px;
    line-height: 1.35;
}

#gold-pass-modal .perk-list ul.gold-star-list {
    list-style-type: '★ ';
}

#gold-pass-modal .perk-list ul.gold-star-list li::marker {
    color: #ffd700;
    font-size: 16px;
    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(255, 215, 0, 0.65);
}

#silver-pass-modal .perk-list ul.silver-star-list {
    list-style-type: '★ ';
}

#silver-pass-modal .perk-list ul.silver-star-list li::marker {
    color: #d8d8d8;
    font-size: 16px;
    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(220, 220, 220, 0.45);
}

#gold-pass-modal .perk-list li::marker {
    color: #ffd700;
    font-size: 16px;
    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(255, 215, 0, 0.65);
}

#silver-pass-modal .perk-list li::marker {
    color: #d8d8d8;
    font-size: 16px;
    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(220, 220, 220, 0.45);
}

.perk-list li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.perk-subtitle {
    font-family: 'Graduate', serif;
    color: #dfc117;
    text-align: center;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
}

#silver-pass-modal .perk-subtitle {
    color: #d8d8d8;
    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(220, 220, 220, 0.45);
}

#gold-pass-modal .perk-list,
#silver-pass-modal .perk-list {
    margin-top: -10px;
}

#prism-stones-modal .shop-header h2 {
    background: linear-gradient(90deg,
            #ffc0cb,
            #ffe4b5,
            #98ff98,
            #add8e6,
            #ffc0cb);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: prism-flow 4s linear infinite;
    text-shadow: none;
    filter:
        drop-shadow(1px 1px 0 #000) drop-shadow(0 0 5px rgba(255, 255, 255, 0.65));
}

#gold-pass-modal .shop-header h2 {
    font-family: 'Rye', cursive;
    font-size: clamp(21px, 6.2vw, 26px);
    letter-spacing: 0.5px;
    color: #ffcc33;
    text-shadow:
        1px 1px 0 #000,
        0 0 5px rgba(255, 215, 0, 0.65),
        0 0 12px rgba(255, 140, 0, 0.45);
}

#silver-pass-modal .shop-header h2 {
    font-family: 'Rye', cursive;
    font-size: clamp(21px, 6.2vw, 26px);
    letter-spacing: 0.5px;
    color: #d8d8d8;
    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(220, 220, 220, 0.45),
        0 0 12px rgba(180, 180, 180, 0.35);
}

@media (max-width: 380px) {
    .shop-header {
        padding-left: 34px;
        padding-right: 34px;
    }

    #gold-pass-modal .shop-header h2,
    #silver-pass-modal .shop-header h2 {
        font-size: clamp(20px, 6vw, 25px);
        letter-spacing: 0.25px;
    }

    .shop-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .shop-item-card:not(.prism-stone-pack-card) .card-bonus {
        font-size: clamp(9px, 2.65vw, 11px);
    }
}


/* Prestige modal scrollbar styling */
#gold-pass-modal .shop-content,
#silver-pass-modal .shop-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    -ms-overflow-style: auto;
}

#gold-pass-modal .shop-content::-webkit-scrollbar,
#silver-pass-modal .shop-content::-webkit-scrollbar {
    display: block;
    width: 8px;
}

#gold-pass-modal .shop-content::-webkit-scrollbar-track,
#silver-pass-modal .shop-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

#gold-pass-modal .shop-content::-webkit-scrollbar-thumb,
#silver-pass-modal .shop-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}