/*
Theme Name: Bank Pro Top Multicolor
Theme URI: https://bank-pro.com
Author: Bank Pro
Author URI: https://bank-pro.com
Description: Multicolor futuristic WooCommerce-ready theme designed to integrate with the Bank Pro Top plugin and WooCommerce / WooCommerce PayPal Payments. Includes primary menu with dropdown submenu.
Version: 1.0.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bank-pro-top-multicolor
Tags: ecommerce, colorful, dark, responsive, custom-logo
*/

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #1e293b 0, #020617 50%, #000000 100%),
        linear-gradient(135deg, rgba(248,113,113,0.08), rgba(52,211,153,0.08), rgba(56,189,248,0.08));
    color: #e5e7eb;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* LAYOUT */
.bpt-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bpt-main {
    flex: 1 0 auto;
}

.bpt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER MULTICOLOR WITH DROPDOWN SUBMENU */
.bpt-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(16px);
    background:
        linear-gradient(180deg, rgba(15,23,42,0.96), rgba(15,23,42,0.94)),
        radial-gradient(circle at top left, rgba(248,113,113,0.4), transparent 60%),
        radial-gradient(circle at top right, rgba(56,189,248,0.4), transparent 60%),
        radial-gradient(circle at bottom, rgba(52,211,153,0.3), transparent 55%);
    border-bottom: 1px solid rgba(148,163,184,0.5);
    box-shadow: 0 18px 40px rgba(15,23,42,0.95);
}

.bpt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

/* LOGO */
.bpt-logo a {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #f9fafb;
    text-shadow:
        0 0 10px rgba(248,250,252,0.9),
        0 0 22px rgba(56,189,248,0.9),
        0 0 36px rgba(251,191,36,0.9);
}

/* PRIMARY NAVIGATION WITH DROPDOWN */
.bpt-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* UL base */
.bpt-nav-list,
.bpt-nav-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bpt-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Top-level items */
.bpt-nav-list > li {
    position: relative;
}

.bpt-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #f9fafb;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.8);
    background: linear-gradient(135deg, rgba(248,113,113,0.15), rgba(56,189,248,0.15), rgba(52,211,153,0.15));
    box-shadow:
        0 0 0 rgba(0,0,0,0),
        inset 0 0 0 1px rgba(15,23,42,1);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.12s ease-out,
        box-shadow 0.15s ease-out,
        border-color 0.15s ease-out,
        background 0.15s ease-out;
}

.bpt-nav-list > li > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(248,250,252,0.0), rgba(248,250,252,0.35), rgba(248,250,252,0.0));
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.bpt-nav-list > li:hover > a,
.bpt-nav-list > li.current-menu-item > a,
.bpt-nav-list > li.current-menu-ancestor > a {
    transform: translateY(-1px);
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(56,189,248,0.25), rgba(52,211,153,0.25));
    box-shadow:
        0 0 14px rgba(251,191,36,0.75),
        0 0 26px rgba(56,189,248,0.75);
    text-decoration: none;
}

.bpt-nav-list > li:hover > a::before,
.bpt-nav-list > li.current-menu-item > a::before,
.bpt-nav-list > li.current-menu-ancestor > a::before {
    opacity: 1;
}

/* Dropdown icon hint */
.bpt-nav-list > li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.7rem;
    opacity: 0.8;
}

/* SUBMENU (dropdown) */
.bpt-nav-list li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(15,23,42,0.98), rgba(15,23,42,0.96)),
        radial-gradient(circle at top left, rgba(248,113,113,0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56,189,248,0.25), transparent 55%);
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow:
        0 18px 40px rgba(15,23,42,0.98),
        0 0 0 1px rgba(15,23,42,1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.16s ease-out,
        transform 0.16s ease-out,
        visibility 0.16s ease-out;
    z-index: 9999;
}

.bpt-nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu items */
.bpt-nav-list .sub-menu li {
    position: relative;
}

.bpt-nav-list .sub-menu a {
    display: block;
    padding: 7px 10px;
    margin-bottom: 3px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #e5e7eb;
    background: rgba(15,23,42,0.9);
    border: 1px solid transparent;
    transition: background 0.12s ease-out, border-color 0.12s ease-out, transform 0.12s ease-out;
}

.bpt-nav-list .sub-menu a:hover,
.bpt-nav-list .sub-menu .current-menu-item > a {
    background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(56,189,248,0.25));
    border-color: rgba(148,163,184,0.9);
    transform: translateX(2px);
    text-decoration: none;
}

/* CART */
.bpt-cart {
    display: flex;
    align-items: center;
    margin-left: 6px;
}

.bpt-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #22c55e, #4ade80 45%, #166534 100%);
    color: #01120c;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(190,242,100,0.95);
    box-shadow:
        0 0 12px rgba(74,222,128,0.9),
        0 0 26px rgba(22,163,74,0.9);
}

.bpt-cart-link:hover {
    filter: brightness(1.08);
    text-decoration: none;
}

.bpt-cart-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* MAIN CONTENT */
.bpt-main .bpt-container {
    padding-top: 30px;
    padding-bottom: 40px;
}

.bpt-page-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #f9fafb;
    text-shadow:
        0 0 18px rgba(251,191,36,0.7),
        0 0 28px rgba(56,189,248,0.7);
}

/* CARD GRID */
.bpt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

/* CARDS – Multicolor panels */
.bpt-card {
    position: relative;
    border-radius: 18px;
    padding: 16px;
    background:
        linear-gradient(145deg, rgba(15,23,42,1), rgba(3,7,18,1)),
        radial-gradient(circle at top left, rgba(248,113,113,0.28), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56,189,248,0.25), transparent 55%);
    border: 1px solid rgba(55,65,81,0.95);
    box-shadow:
        0 18px 38px rgba(15,23,42,0.98),
        inset 0 0 0 1px rgba(15,23,42,1);
    overflow: hidden;
}

.bpt-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(135deg, rgba(251,191,36,0.25), rgba(52,211,153,0.15), rgba(56,189,248,0.25));
    mix-blend-mode: soft-light;
    opacity: 0.35;
    pointer-events: none;
}

.bpt-card-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 6px;
    color: #e5f2ff;
}

.bpt-card-title a {
    color: inherit;
}

.bpt-card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.bpt-card-excerpt {
    font-size: 0.9rem;
    color: #d1d5db;
}

/* FOOTER */
.bpt-footer {
    background:
        linear-gradient(180deg, #020617, #020617 60%, #000000 100%),
        radial-gradient(circle at top, rgba(56,189,248,0.2), transparent 60%);
    border-top: 1px solid rgba(75,85,99,0.8);
    padding: 18px 0;
    flex-shrink: 0;
}

.bpt-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.bpt-footer a {
    color: #38bdf8;
}

/* WOO BUTTONS – multicolor capsules */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: linear-gradient(135deg, #f97316, #ec4899, #22c55e, #0ea5e9);
    background-size: 300% 300%;
    border-radius: 999px;
    border: 1px solid rgba(253,224,71,0.95);
    color: #020617;
    font-weight: 700;
    padding: 9px 22px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow:
        0 0 14px rgba(251,191,36,0.9),
        0 0 28px rgba(15,23,42,0.98);
    animation: bptGradientFlow 6s ease infinite;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    filter: brightness(1.06);
    text-decoration: none;
}

/* Gradient animation */
@keyframes bptGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* WOO MESSAGES */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.8);
    background: rgba(15,23,42,0.96);
    color: #e5e7eb;
}

/* PAYMENT METHODS / PAYPAL AREA */
.wc-block-components-payment-methods__payment-method,
.woocommerce ul.wc_payment_methods li {
    background: rgba(15,23,42,0.97);
    border-radius: 12px;
    border: 1px solid rgba(55,65,81,0.95);
    padding: 12px;
}

/* BANK PRO TOP WRAPPERS */
.bpt-wrapper,
.bpt-signup-wrapper {
    border-radius: 18px;
    border: 1px solid rgba(55,65,81,0.95);
    background:
        linear-gradient(145deg, rgba(15,23,42,1), rgba(3,7,18,1)),
        radial-gradient(circle at top left, rgba(248,113,113,0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56,189,248,0.25), transparent 55%);
    box-shadow:
        0 18px 40px rgba(15,23,42,0.98),
        inset 0 0 0 1px rgba(15,23,42,1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .bpt-header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bpt-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .bpt-nav-list {
        flex-wrap: wrap;
    }

    .bpt-nav-list li .sub-menu {
        left: 0;
        right: auto;
    }
}
