/*
Theme Name: Vokaaly
Theme URI: https://vokaaly.com
Author: Antigravity AI
Author URI: https://antigravity.ai
Description: Um tema premium para produtores musicais, totalmente integrado ao WooCommerce com suporte para áudio, BPM e metadados técnicos.
Version: 1.0.0
Text Domain: vokaaly
*/

/* 
 * WooCommerce Dashboard & Account Pages
 */
.dashboard-container {
    height: calc(100vh - 64px);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.animate-wave {
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave {
    0% {
        transform: rotate(0deg) !important;
    }

    10% {
        transform: rotate(14deg) !important;
    }

    20% {
        transform: rotate(-8deg) !important;
    }

    30% {
        transform: rotate(14deg) !important;
    }

    40% {
        transform: rotate(-4deg) !important;
    }

    50% {
        transform: rotate(10deg) !important;
    }

    60% {
        transform: rotate(0deg) !important;
    }

    100% {
        transform: rotate(0deg);
    }
}

.account-page .woocommerce-message,
.account-page .woocommerce-info,
.account-page .woocommerce-error {
    background: rgba(0, 113, 227, 0.1) !important;
    border: 1px solid rgba(0, 113, 227, 0.3) !important;
    color: white !important;
    border-radius: 16px !important;
    padding: 20px 30px !important;
    margin-bottom: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.account-page .woocommerce-error {
    background: rgba(225, 29, 72, 0.1) !important;
    border-color: rgba(225, 29, 72, 0.3) !important;
}

.account-page input {
    border: none !important;
    background: rgba(255, 255, 255, 0.03) !important;

    box-shadow: none !important;
}

.account-page input:focus {
    border-color: rgba(0, 113, 227, 0.5) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.account-page .woocommerce-Button {
    display: none !important;
    /* Hide default buttons in some messages */
}

/* Dashboard specific overrides to ensure 1:1 mockup looks */
.account-page footer {
    display: none !important;
}

.account-page {
    overflow: hidden !important;
}

.account-page body {
    overflow: hidden !important;
}

/* Hide default browser scrollbar for the whole page in Account */
.account-page::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

.account-page header.fixed {
    /* Keep the header but ensure the dashboard container accounts for it */
    background: #0c0c0c !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.account-page main.dashboard-page {
    height: 100vh;
    padding-top: 64px;
    /* Space for the header */
    overflow: hidden;
}

.account-page .dashboard-container {
    height: calc(100vh - 64px);
}

/* Address Form Normalization */
.account-page .form-row {
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    float: none !important;
    width: 100% !important;
}

.account-page .vokaaly-label {
    text-transform: uppercase !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    color: #52525b !important;
    /* zinc-500 */
    margin-bottom: 12px !important;
    display: block !important;
    padding-left: 4px !important;
}

.account-page .vokaaly-input,
.account-page input[type="text"],
.account-page input[type="email"],
.account-page input[type="password"],
.account-page input[type="tel"],
.account-page select {
    width: 100% !important;
    height: 56px !important;
    padding: 0 24px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}


.account-page .vokaaly-input:focus {
    border-color: #0071e3 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    outline: none !important;
}

/* Select2 Custom Styling */
.account-page .select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 16px !important;

    height: 56px !important;
    padding: 14px 12px !important;
}

.account-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.account-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
}

.select2-dropdown {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: white !important;
}

.select2-results__option {
    padding: 12px 20px !important;
    font-size: 13px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0071e3 !important;
}

.account-page h3 {
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important;
    color: white !important;
    margin-bottom: 24px !important;
}

.account-page button[type="submit"].button {
    background: white !important;
    color: black !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 16px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.account-page button[type="submit"].button:hover {
    background: #0071e3 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2) !important;
}

.account-page .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .account-page .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Reset & WP Core Classes */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

/* Hide WooCommerce automatic "View cart" link after AJAX add to cart */
.added_to_cart.wc-forward {
    display: none !important;
}

/* --- ULTRA PREMIUM SPLIT CHECKOUT --- */
.ultimate-checkout .woocommerce-checkout {
    max-width: 100% !important;
}

.ultimate-checkout .vokaaly-form-row {
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Payment Gateways to Tile Grid - Match Mockup Exactly */
#vokaaly-payment-gateways .woocommerce-checkout-review-order-table {
    display: none !important;
}

#vokaaly-payment-gateways ul.payment_methods {
    display: none !important;
}

#vokaaly-payment-gateways ul.payment_methods li {
    background: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 1.5rem 1rem !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
    position: relative;
    transition: all 0.2s ease !important;
    min-height: 100px;
}

#vokaaly-payment-gateways ul.payment_methods li label {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #888 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

#vokaaly-payment-gateways ul.payment_methods li i,
#vokaaly-payment-gateways ul.payment_methods li span.font-black {
    margin-bottom: 12px;
    font-size: 18px;
    color: #fff;
    opacity: 0.8;
}

#vokaaly-payment-gateways ul.payment_methods li:has(input:checked) {
    border-color: #5d5dff !important;
    background: #0d0d0d !important;
}

#vokaaly-payment-gateways ul.payment_methods li:has(input:checked) label,
#vokaaly-payment-gateways ul.payment_methods li:has(input:checked) i {
    color: #fff !important;
    opacity: 1;
}

/* Checked Indicator circle */
#vokaaly-payment-gateways ul.payment_methods li::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0071e3;
    border: 2px solid #0d0d0d;
    box-shadow: 0 0 0 1px #0071e3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Checkmark inside circle */
#vokaaly-payment-gateways ul.payment_methods li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 13px;
    font-size: 7px;
    color: #fff;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#vokaaly-payment-gateways ul.payment_methods li:has(input:checked)::after,
#vokaaly-payment-gateways ul.payment_methods li:has(input:checked)::before {
    opacity: 1;
}

/* Totals Area */
.woocommerce-checkout .order-totals {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

.woocommerce-checkout .place-order {
    margin-top: 2rem !important;
}

.ultimate-checkout aside {
    background: linear-gradient(to bottom, #080808, #050505) !important;
}

.ultimate-checkout h1 {
    line-height: 0.9 !important;
    letter-spacing: -0.05em !important;
}

.ultimate-checkout .woocommerce-checkout-review-order {
    background: none !important;
    padding: 0 !important;
}

/* Hide Email Field if Logged In */
.logged-in-checkout #billing_email_field {
    display: none !important;
}

.woocommerce-checkout-payment,
#order_review,
#vokaaly-payment-gateways {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#vokaaly-payment-gateways ul.payment_methods li {
    background: transparent !important;
    /* Make tiles transparent bg if user wants, or just a very subtle one */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 100px !important;
    max-width: 140px !important;
}

#vokaaly-payment-gateways ul.payment_methods li:has(input:checked) {
    border-color: #0071e3 !important;
    background: rgba(0, 113, 227, 0.05) !important;
}

/* Fix Place Order button width and padding */
#place_order {
    background: #0071e3 !important;
    margin-top: 1rem !important;
    box-shadow: none !important;
}

/* Sync Play/Pause Button Visibility when Active */
.playing-active.play-preview-hitbox,
.playing-active .play-preview-hitbox,
.playing-active.play-preview-btn,
.playing-active .play-preview-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

#place_order:hover {
    background: #4a4aff !important;
    transform: translateY(-2px);
}

/* Aggressive Form Field Overrides */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 1rem 1.25rem !important;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#customer_details h3:not(.text-stickz-blue) {
    display: none !important;
}

/* Coupon Form Styling Refined */
.checkout-coupon-wrapper form {
    background: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 2rem !important;
    border-radius: 20px !important;
}

/* Payment Error/No Gateway Message Style */
.woocommerce-checkout-payment .woocommerce-info,
.woocommerce-checkout-payment ul.payment_methods+p {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    color: #888 !important;
    font-size: 11px !important;
    padding: 1.5rem !important;
    text-align: center !important;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.pack-card:hover .pack-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-card.playing-active img {
    /* Zoom and opacity reduction removed as requested */
}


.product-card.playing-active .play-preview-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mega Menu Enhancements */
#mega-menu {
    background: transparent !important;
    backdrop-filter: initial !important;
    -webkit-backdrop-filter: initial !important;
    border-bottom: initial !important;
}

header.glass-header.menu-open {
    background: transparent !important;
    backdrop-filter: initial !important;
    -webkit-backdrop-filter: initial !important;
    border-bottom-color: transparent !important;
}

/* Product Description Content Styling (Single Product) */
.product-description-content {
    color: #a1a1aa !important;
    /* text-zinc-400 */
    white-space: pre-line !important;
    /* Fail-safe para quebras de linha */
}

.product-description-content p {
    display: block !important;
}

.product-description-content strong,
.product-description-content b {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.product-description-content ul {
    list-style-type: disc !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.product-description-content li {
    margin-bottom: 0.5rem !important;
    padding-left: 0.5rem !important;
    display: list-item !important;
}

.product-description-content blockquote {
    border-left: 2px solid #00E5FF !important;
    padding-left: 1.5rem !important;
    font-style: italic !important;
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
}

/* Mega Menu Play Button Fixes */
#mega-menu .play-preview-btn i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mega-menu .play-preview-btn {
    transition: all 0.3s ease !important;
}

#mega-menu .playing-active .play-preview-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: white !important;
    color: black !important;
}

/* Mini-cart & Checkout State Styling */
#mini-cart.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.woocommerce-mini-cart-item.playing,
.cart_item.playing {
    background: rgba(0, 113, 227, 0.08) !important;
}

.woocommerce-mini-cart-item.playing .play-preview-hitbox,
.cart_item.playing .play-preview-hitbox {
    opacity: 1 !important;
}

.playing-active .fa-play {
    display: none !important;
}

.playing-active .fa-pause {
    display: inline-block !important;
}

/* Aggressive Border Removal for Account & Form Fields */
.woocommerce-edit-account input,
.woocommerce-edit-address input,
.woocommerce-EditAccountForm input,
.woocommerce-address-fields input,
.woocommerce-Input,
.woocommerce-Input--text,
.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
select.vokaaly-input,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Ensure focus doesn't bring back the border unless it's a shadow */
.woocommerce-Input:focus,
.input-text:focus,
.woocommerce form .form-row input.input-text:focus {
    border: none !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ─── SPA Navigation Transitions ─────────────────────────────────────── */
/* Transitions are now fully JS-driven via inline styles in router.js     */
/* (avoids class-swap race conditions that caused the page flicker)       */
#vokaaly-page-content {
    position: relative;
    will-change: opacity, transform;
}

/* ─── SPA Progress Bar ────────────────────────────────────────────────── */
#vk-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    opacity: 0;
    background: linear-gradient(90deg, #0071e3 0%, #3b9eff 60%, #0071e3 100%);
    background-size: 200% 100%;
    animation: vkProgressShimmer 1.5s linear infinite;
    z-index: 10000;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

@keyframes vkProgressShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Dashboard Play/Pause Controls */
.dashboard-container .play-preview-hitbox {
    position: relative;
}

.dashboard-container .play-preview-hitbox:hover > div:last-child {
    opacity: 1 !important;
}

.dashboard-container .playing-active .play-preview-hitbox > div:last-child,
.dashboard-container [data-product-id].playing-active .play-preview-hitbox > div:last-child {
    opacity: 1 !important;
    background: rgba(0, 113, 227, 0.6) !important;
}

.dashboard-container .playing-active .play-preview-hitbox .fa-play,
.dashboard-container [data-product-id].playing-active .play-preview-hitbox .fa-play {
    display: none !important;
}

.dashboard-container .playing-active .play-preview-hitbox .fa-pause,
.dashboard-container [data-product-id].playing-active .play-preview-hitbox .fa-pause {
    display: inline-block !important;
}