/* Global layout helpers used by resources/views/layouts/vengeance.blade.php */

[x-cloak] {
    display: none !important;
}

html,
body {
    overflow-x: hidden;
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
    backdrop-filter: saturate(140%) blur(8px);
}

.layout-hidden {
    display: none;
}

.cart-red-glow {
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, .28),
        0 16px 34px rgba(0, 0, 0, .34),
        0 0 18px rgba(220, 38, 38, .22),
        0 0 42px rgba(220, 38, 38, .14);
}

/* SoundCloud/audio player */
.sc-player {
    position: relative;
    height: 80px;
}

.waveform-area {
    position: relative;
    z-index: 10;
}

.waveform-bg,
.waveform-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: .375rem;
}

.waveform-overlay {
    z-index: 15;
    pointer-events: auto;
}

.controls {
    z-index: 40;
    pointer-events: none;
}

.controls .playBtn {
    pointer-events: auto;
}

.progress-container {
    position: relative;
    width: 100%;
    height: .1rem !important;
    background-color: #444;
    border-radius: .05rem;
}

.progress-fill {
    height: 100%;
    background-color: #df1c12;
    border-radius: .05rem;
}

.sc-player .progress-handle {
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    z-index: 20 !important;
}

/* Modals/loaders */
#login-modal {
    z-index: 70;
    display: none;
    position: fixed;
    inset: 0;
    padding: 1.5rem;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 18%, rgba(223, 28, 18, .18), transparent 32rem),
        rgba(3, 6, 12, .48);
    backdrop-filter: blur(9px);
}

.login-modal-dialog {
    position: relative;
    width: min(100%, 460px);
    margin: 7vh auto;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(20, 26, 36, .74), rgba(8, 11, 18, .7)),
        rgba(11, 15, 23, .62);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #fff;
    animation: login-modal-in .18s ease-out;
}

.login-modal-dialog::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -20%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(223, 28, 18, .2);
    filter: blur(36px);
    pointer-events: none;
}

@keyframes login-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.login-modal-close:hover {
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
}

.login-modal-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.login-modal-icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(223, 28, 18, .55);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(223, 28, 18, .95), rgba(111, 12, 10, .95));
    box-shadow: 0 12px 32px rgba(223, 28, 18, .28);
}

.login-modal-icon img {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

.login-modal-eyebrow {
    margin: 0 0 .35rem;
    color: #f87171;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-modal-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.login-modal-subtitle {
    max-width: 22rem;
    margin: .6rem 0 0;
    color: #aeb7c5;
    font-size: .95rem;
    line-height: 1.55;
}

.login-modal-field {
    display: block;
    margin-bottom: .95rem;
}

.login-modal-field span {
    display: block;
    margin-bottom: .4rem;
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-modal-input {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-modal-input::placeholder {
    color: #6f7a89;
}

.login-modal-input:focus {
    border-color: rgba(223, 28, 18, .8);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 4px rgba(223, 28, 18, .16);
}

.login-modal-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.25rem;
}

.login-modal-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #cbd5e1;
    cursor: pointer;
    font-size: .9rem;
}

.login-modal-label input {
    width: 1rem;
    height: 1rem;
    accent-color: #df1c12;
}

.create-account-link {
    color: #f87171;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.create-account-link:hover {
    color: #fff;
    text-decoration: none;
}

.login-modal-actions {
    display: flex;
    gap: .75rem;
}

.login-modal-submit,
.login-modal-cancel {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: .75rem 1rem;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.login-modal-submit {
    flex: 1;
    border: 0;
    background: linear-gradient(135deg, #df1c12, #9f1610);
    color: #fff;
    box-shadow: 0 16px 34px rgba(223, 28, 18, .26);
}

.login-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(223, 28, 18, .35);
}

.login-modal-cancel {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #dbe3ef;
}

.login-modal-cancel:hover {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
}

#login-error {
    display: none;
    margin: 1rem 0 0;
    padding: .8rem .9rem;
    border: 1px solid rgba(248, 113, 113, .35);
    border-radius: 14px;
    background: rgba(127, 29, 29, .22);
    color: #fecaca;
    font-size: .9rem;
}

@media (max-width: 520px) {
    #login-modal {
        padding: 1rem;
    }

    .login-modal-dialog {
        margin: 4vh auto;
        padding: 1.4rem;
    }

    .login-modal-options,
    .login-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .create-account-link {
        align-self: flex-start;
    }
}

.sample-modal {
    padding: 0;
}

.sample-modal-backdrop {
    background-color: rgba(0, 0, 0, .4);
    backdrop-filter: blur(15px);
    border-radius: 8px;
}

.loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader::after {
    content: "";
    width: 48px;
    height: 48px;
    border: 5px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

#page-loader.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sliders */
.pluginSwiper {
    width: 100%;
    max-width: 100vw;
}

.slide-bg {
    aspect-ratio: 16 / 9;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .swiper-slide > div > div {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    .slide-container {
        flex-direction: column;
        align-items: center;
    }

    .slide-item,
    .slide-text {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .slide-item img {
        max-width: 80%;
        height: auto;
    }
}

/* Discography */
.discography {
    margin: 2rem 0;
}

.discography h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #333;
    padding-bottom: .5rem;
}

.year-block {
    margin-bottom: 2rem;
}

.year-block h3 {
    font-size: 1.1rem;
}

.columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .125rem 1.25rem;
    list-style: disc;
    padding-left: 10px;
}

.text-gradient-underline {
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.text-gradient-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 250%;
    background: linear-gradient(to right, #dc2626, rgba(220, 38, 38, 0));
}

/* Social icons */
.social-icon {
    font-size: 25px;
    color: #fff;
    transition: background .3s, -webkit-background-clip .3s, color .3s;
}

.instagram-icon:hover {
    background: linear-gradient(-10deg, #f8cd59, #f59426, #e03f44, #791db2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.facebook-icon:hover {
    color: #1877f2;
}

.twitter-icon:hover {
    color: #9d9d9d;
    transition: background .3s, -webkit-background-clip .3s, color .3s;
}

.tiktok-icon:hover {
    text-shadow:
        2px 0 #25F4EE,
        -2px 0 #FE2C55;
}

.website-icon:hover {
    color: #4aa3ff;
}
