/*
 * SAWAYAKI — custom EasyDonate theme
 * Palette: charcoal + violet
 * Upload this file in EasyDonate > Custom CSS.
 * The existing banner image and store functionality are intentionally preserved.
 */

:root {
    --sw-bg: #17151d;
    --sw-bg-deep: #111016;
    --sw-panel: rgba(34, 30, 43, .88);
    --sw-panel-solid: #211d2a;
    --sw-panel-hover: #2b2438;
    --sw-violet: #a855f7;
    --sw-violet-bright: #bd76ff;
    --sw-violet-soft: rgba(168, 85, 247, .16);
    --sw-border: rgba(190, 137, 255, .19);
    --sw-text: #f7f3fc;
    --sw-muted: #b7adca;
    --sw-radius: 18px;
    --sw-shadow: 0 14px 40px rgba(0, 0, 0, .24);
}

/* Global base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    background:
        radial-gradient(ellipse at 15% 30%, rgba(112, 53, 164, .10), transparent 42%),
        radial-gradient(ellipse at 85% 68%, rgba(83, 45, 128, .09), transparent 38%),
        var(--sw-bg-deep) !important;
    color: var(--sw-text);
}

.bg-elegant-dark,
#sections {
    background: transparent !important;
}

.bg-elegant,
.bg-elegant-night {
    background-color: var(--sw-panel-solid) !important;
}

.text-purple,
.text-primary {
    color: var(--sw-violet-bright) !important;
}

a {
    transition: color .22s ease, background-color .22s ease, border-color .22s ease,
                box-shadow .22s ease, transform .22s ease;
}

/* Top navigation: translucent glass effect */
.navbar.navbar-main {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(19, 16, 27, .60) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .18);
}

.navbar.navbar-main .container {
    max-width: 100%;
}

.navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    margin-right: 22px;
}

.navbar .navbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(190, 137, 255, .28);
    box-shadow: 0 0 20px rgba(168, 85, 247, .18);
}

.navbar .navbar-nav {
    gap: 5px;
}

.navbar .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px !important;
    border-radius: 12px;
    color: rgba(250, 246, 255, .84) !important;
    font-weight: 600;
}

.navbar .navbar-nav .nav-link i {
    color: var(--sw-violet-bright);
    font-size: .92em;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(168, 85, 247, .16);
    box-shadow: inset 0 0 0 1px rgba(190, 137, 255, .15);
    transform: translateY(-1px);
}

.navbar .navbar-toggler {
    border: 1px solid var(--sw-border);
    border-radius: 11px;
    padding: 9px 11px;
}

.navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--sw-violet-soft);
}

/* Preserve the supplied hero/banner image; only refine its text */
#welcome-section {
    isolation: isolate;
}

#welcome-section .shop-title {
    padding-top: 7rem !important;
    padding-bottom: 8rem !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .38);
}

#welcome-section .shop-name {
    letter-spacing: .035em;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .52);
}

#welcome-section .shop-description {
    text-shadow: 0 3px 18px rgba(0, 0, 0, .5);
}

#welcome-section .general-online span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    border: 1px solid rgba(221, 190, 255, .28);
    border-radius: 999px;
    background: rgba(22, 17, 32, .70) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    font-size: .92rem;
}

#welcome-section .general-online span::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #9ef5bd;
    box-shadow: 0 0 12px rgba(105, 255, 164, .85);
}

/* Section rhythm */
#servers,
section:has(#shop),
#sections {
    position: relative;
}

#servers {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

#servers > .container {
    padding: 28px 30px 32px;
    border: 1px solid var(--sw-border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(40, 32, 52, .94), rgba(25, 22, 32, .96));
    box-shadow: var(--sw-shadow);
}

#servers h2,
section h2.h1 {
    letter-spacing: -.025em;
}

#servers h2 {
    margin-bottom: 2rem !important;
}

#servers .progress-wrapper {
    padding: 22px 24px;
    border: 1px solid rgba(190, 137, 255, .16);
    border-radius: 16px;
    background: rgba(14, 12, 20, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

#servers .progress-info {
    align-items: center;
    gap: 12px;
}

#servers .progress-wrapper .lead {
    color: #fff;
    letter-spacing: .02em;
}

#servers .progress {
    height: 8px;
    margin-top: 12px;
    margin-bottom: 12px !important;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .09) !important;
}

#servers .progress-bar {
    border-radius: 99px;
    background: linear-gradient(90deg, #8137cf, #c17aff) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, .48);
}

#servers .progress-percentage .badge {
    border: 1px solid rgba(190, 137, 255, .15);
    border-radius: 9px;
    padding: 7px 10px;
    background: rgba(168, 85, 247, .13) !important;
    color: #eee1ff !important;
    font-size: .78rem;
}

#servers .server-version {
    background: linear-gradient(135deg, #873bd0, #a855f7) !important;
    color: #fff !important;
}

/* Shop section and search */
#shop {
    scroll-margin-top: 100px;
}

section:has(#shop) {
    padding-top: 4rem !important;
    padding-bottom: 5rem !important;
}

section:has(#shop) > .container {
    padding: 30px;
    border: 1px solid rgba(190, 137, 255, .13);
    border-radius: 24px;
    background: rgba(28, 25, 35, .78);
    box-shadow: var(--sw-shadow);
}

section:has(#shop) h2.h1 {
    margin-bottom: 1.2rem !important;
}

section:has(#shop) .form-control {
    min-height: 44px;
    padding: 11px 15px;
    border: 1px solid rgba(190, 137, 255, .18) !important;
    border-radius: 12px 0 0 12px;
    background: rgba(13, 11, 19, .68) !important;
    color: #fff !important;
}

section:has(#shop) .form-control::placeholder {
    color: #a99db9;
}

section:has(#shop) .input-group-text {
    border: 1px solid rgba(190, 137, 255, .18) !important;
    border-left: 0 !important;
    border-radius: 0 12px 12px 0;
    background: rgba(13, 11, 19, .68) !important;
    color: var(--sw-violet-bright) !important;
}

/* Category filter chips */
.filter-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 1.6rem !important;
    margin-bottom: .7rem;
}

.filter-button-group .filter-button {
    margin: 0 !important;
    padding: 11px 15px !important;
    border: 1px solid rgba(190, 137, 255, .17);
    border-radius: 11px !important;
    background: rgba(12, 10, 18, .6) !important;
    color: #d8cde6;
    cursor: pointer;
    transition: all .22s ease;
}

.filter-button-group .filter-button:hover,
.filter-button-group .filter-button.active {
    border-color: rgba(190, 137, 255, .55);
    background: linear-gradient(135deg, rgba(128, 54, 197, .9), rgba(91, 40, 142, .9)) !important;
    color: #fff;
    box-shadow: 0 6px 18px rgba(116, 47, 176, .2);
}

/* Product cards */
.filter-items {
    margin-top: 8px;
}

.filter-item {
    padding: 10px !important;
}

.profile-card .card.mt-3 {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(190, 137, 255, .16) !important;
    border-radius: var(--sw-radius);
    background: linear-gradient(145deg, #2a2534, #201d28) !important;
    box-shadow: 0 9px 26px rgba(0, 0, 0, .19);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.profile-card .card.mt-3:hover {
    transform: translateY(-4px);
    border-color: rgba(190, 137, 255, .48) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .27), 0 0 22px rgba(168, 85, 247, .09);
}

.profile-card .card-image {
    min-height: 190px !important;
    background-color: #17131f !important;
    transition: filter .25s ease;
}

.profile-card .card.mt-3:hover .card-image {
    filter: brightness(1.07);
}

.profile-card .card .card-header {
    padding: 20px 20px 8px;
}

.profile-card .card .card-body {
    padding: 8px 20px 14px !important;
}

.profile-card .card .card-footer {
    padding: 12px 20px 22px !important;
}

.profile-card .card-title {
    color: #fff;
    white-space: normal;
    line-height: 1.25;
}

.profile-card .badge {
    border: 1px solid rgba(190, 137, 255, .18);
    border-radius: 8px;
    background: rgba(168, 85, 247, .12) !important;
    color: #e8d6ff;
    padding: 7px 9px;
}

.profile-card .card-footer h6 {
    color: #e8d7ff;
    font-size: 1rem;
}

.profile-card > .card a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn-purple,
.btn-primary,
.basket-button {
    border: 1px solid rgba(216, 179, 255, .22) !important;
    background: linear-gradient(135deg, #913fe0, #6f2bb4) !important;
    color: #fff !important;
    box-shadow: 0 7px 20px rgba(120, 44, 184, .22);
}

.btn-purple:hover,
.btn-primary:hover,
.basket-button:hover {
    background: linear-gradient(135deg, #a95af0, #8137cf) !important;
    box-shadow: 0 10px 26px rgba(143, 61, 213, .34);
    transform: translateY(-2px);
}

.btn-secondary,
.btn-light {
    border-color: rgba(190, 137, 255, .16) !important;
    background: #30293b !important;
    color: #f6efff !important;
}

.btn-danger {
    border-radius: 10px;
}

/* Floating cart button — keep the original cart/modal behavior */
.fixed-bottom-right {
    right: 25px !important;
    bottom: 25px !important;
}

.basket-button {
    display: inline-flex !important;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 19px !important;
    font-size: 1.2rem;
    text-decoration: none;
}

.basket-button .cart-counter {
    border: 2px solid #21192d;
    background: #f0d9ff !important;
    color: #4d1c78 !important;
    min-width: 22px;
    min-height: 22px;
    line-height: 18px;
}

/* Cart and product modals */
.modal-content,
.cart-content,
.product-modal {
    overflow: hidden;
    border: 1px solid rgba(190, 137, 255, .22) !important;
    border-radius: 22px !important;
    background: #211d2a !important;
    color: var(--sw-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.modal-header,
.modal-footer {
    border-color: rgba(190, 137, 255, .12) !important;
    background: #191520 !important;
}

.modal .form-control,
.modal input.form-control {
    border: 1px solid rgba(190, 137, 255, .17) !important;
    border-radius: 10px !important;
    background: #17131f !important;
    color: #fff !important;
}

.modal .form-control::placeholder {
    color: #a99db9;
}

.modal .close {
    text-shadow: none;
}

.modal .alert-warning {
    border: 1px solid rgba(245, 190, 88, .25);
    border-radius: 12px;
    background: rgba(130, 87, 22, .18);
    color: #ffe9bd;
}

.modal .text-dark {
    color: #e8def5 !important;
}

/* Footer */
footer.footer {
    position: relative;
    margin-top: 2rem;
    padding: 42px 0 !important;
    border-top: 1px solid rgba(190, 137, 255, .20);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(111, 48, 161, .15), transparent 60%),
        #141119 !important;
}

footer.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(190, 137, 255, .52), transparent);
}

footer .footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid rgba(190, 137, 255, .25);
    border-radius: 13px;
}

footer p,
footer .small {
    color: var(--sw-muted);
    line-height: 1.7;
}

footer a:not(.footer-brand) {
    color: #d7c5ed !important;
}

footer a:not(.footer-brand):hover {
    color: var(--sw-violet-bright) !important;
}

#footer-social-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

#footer-social-links .btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(190, 137, 255, .17);
    border-radius: 13px;
    background: rgba(168, 85, 247, .08);
    color: #e9d8ff !important;
    font-size: 1.05rem;
}

#footer-social-links .btn:hover {
    border-color: rgba(190, 137, 255, .5);
    background: rgba(168, 85, 247, .2);
    transform: translateY(-3px);
}

/* Snow/particle overlay remains visible but should never block clicks */
#snow,
#snow canvas {
    pointer-events: none !important;
}

/* Keyboard accessibility */
a:focus-visible,
button:focus-visible,
.filter-button:focus-visible {
    outline: 2px solid var(--sw-violet-bright);
    outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar.navbar-main {
        top: 10px;
        width: calc(100% - 20px);
        padding: 8px 12px;
        background: rgba(19, 16, 27, .84) !important;
    }

    .navbar .navbar-collapse {
        margin-top: 10px;
        padding: 12px;
        border: 1px solid rgba(190, 137, 255, .17);
        border-radius: 14px;
        background: rgba(23, 19, 31, .97);
    }

    .navbar .navbar-nav {
        align-items: stretch !important;
        gap: 4px;
    }

    .navbar .navbar-nav .nav-link {
        width: 100%;
    }

    #welcome-section .shop-title {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }

    #servers > .container,
    section:has(#shop) > .container {
        padding: 22px 18px;
        border-radius: 19px;
    }

    #servers .progress-wrapper {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    #welcome-section .shop-name {
        font-size: clamp(2.4rem, 11vw, 4rem);
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    #welcome-section .shop-description {
        font-size: 1.35rem;
    }

    section:has(#shop) .d-flex.justify-content-between {
        align-items: stretch !important;
        flex-direction: column;
        gap: 18px;
    }

    section:has(#shop) h2.h1 {
        font-size: 1.8rem;
    }

    section:has(#shop) .form-group {
        width: 100%;
    }

    .filter-item {
        padding: 7px !important;
    }

    .profile-card .card-image {
        min-height: 165px !important;
    }

    .fixed-bottom-right {
        right: 15px !important;
        bottom: 15px !important;
    }

    .basket-button {
        width: 54px;
        height: 54px;
        border-radius: 17px !important;
    }

    footer.footer {
        padding: 30px 0 !important;
        text-align: center;
    }

    footer #footer > .col-sm-6:first-child .d-flex {
        justify-content: center;
        flex-direction: column;
        gap: 14px;
    }

    footer .footer-brand {
        margin: 0 auto !important;
    }

    #footer-social-links {
        margin-top: 14px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ===== SAWAYAKI polish pass: clearer hierarchy and small details ===== */

/* Keep the navigation above the hero while preserving the original links */
.navbar.navbar-main {
    z-index: 100 !important;
}

.navbar .navbar-nav .nav-item {
    margin: 2px 0;
}

.navbar .navbar-nav .nav-link-inner-text {
    letter-spacing: .01em;
}

.navbar .navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--sw-violet-bright);
    outline-offset: 2px;
}

/* Slightly more legible online badge */
#welcome-section .general-online p {
    margin-bottom: 1.4rem;
}

#welcome-section .general-online span {
    color: #f7f3fc;
    font-weight: 600;
}

/* Add a subtle accent under section headings without changing their text */
#servers h2::after,
section:has(#shop) h2.h1::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 13px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #8137cf, #c17aff);
    box-shadow: 0 0 14px rgba(168, 85, 247, .28);
}

section:has(#shop) .d-flex.justify-content-between h2.h1::after {
    margin-left: 0;
}

/* Server IP is clearly clickable */
#servers a.cursor-pointer {
    text-decoration: none;
}

#servers a.cursor-pointer .badge {
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

#servers a.cursor-pointer:hover .badge {
    border-color: rgba(190, 137, 255, .55);
    background: rgba(168, 85, 247, .22) !important;
    transform: translateY(-1px);
}

/* More consistent product image crop and category labels */
.profile-card .card-image {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.profile-card .card .card-header .badge {
    letter-spacing: .035em;
}

/* Footer icons feel like individual glass buttons */
#footer-social-links .list-inline-item {
    margin: 0 !important;
}

#footer-social-links .btn i {
    line-height: 1;
}

/* Improve modal form focus states and keep the payment flow untouched */
.modal .form-control:focus {
    border-color: rgba(190, 137, 255, .58) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .13) !important;
}

/* Make keyboard focus visible on the floating basket too */
.basket-button:focus-visible {
    outline: 2px solid #e4c5ff;
    outline-offset: 4px;
}

/* Small screens: prevent the glass menu from feeling cramped */
@media (max-width: 575.98px) {
    .navbar.navbar-main {
        width: calc(100% - 16px);
        top: 8px;
        padding: 7px 10px;
        border-radius: 15px;
    }

    .navbar .navbar-brand img {
        width: 38px;
        height: 38px;
    }

    #servers h2::after,
    section:has(#shop) h2.h1::after {
        margin-top: 10px;
    }
}
