/*
Theme Name: Midnight Editorial
Theme URI: http://localhost/moracollections
Author: Antigravity
Author URI: http://localhost/moracollections
Description: A premium, dark-mode, quiet-luxury theme for MoraCollections footwear, designed with high contrast cream typography and soft glassmorphism.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midnight-editorial
*/

/* WooCommerce global dark theme overrides */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background-color: #201f1f !important;
    color: #e5e2e1 !important;
    border-top-color: #ffffff !important;
    border-left: 0 !important;
    border-radius: 4px;
    margin-bottom: 24px !important;
    padding: 16px 24px !important;
    font-family: 'DM Sans', sans-serif;
}
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button {
    background-color: #ffffff !important;
    color: #2f312e !important;
    border-radius: 2px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
}
.woocommerce-message a.button:hover, .woocommerce-info a.button:hover, .woocommerce-error a.button:hover {
    background-color: #c6c7c3 !important;
}

/* Forms & Tables */
.woocommerce table.shop_table {
    border-color: rgba(143, 146, 141, 0.2) !important;
    background-color: #1c1b1b !important;
    border-radius: 4px !important;
    overflow: hidden;
}
.woocommerce table.shop_table th {
    background-color: #201f1f !important;
    color: #ffffff !important;
    border-color: rgba(143, 146, 141, 0.2) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 500 !important;
}
.woocommerce table.shop_table td {
    border-color: rgba(143, 146, 141, 0.2) !important;
    color: #e5e2e1 !important;
}
.woocommerce-cart-form__contents a.remove {
    color: #ffb4ab !important;
}
.woocommerce-cart-form__contents a.remove:hover {
    background-color: #93000a !important;
    color: #ffffff !important;
}

/* Inputs & Checkout */
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select {
    background-color: #1c1b1b !important;
    color: #e5e2e1 !important;
    border: 1px solid rgba(143, 146, 141, 0.3) !important;
    border-radius: 2px !important;
    padding: 10px 14px !important;
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus {
    border-color: #ffffff !important;
    outline: none !important;
}
.woocommerce form .form-row label {
    color: #c5c7c2 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cart & Checkout Buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
    background-color: #ffffff !important;
    color: #2f312e !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 2px !important;
    padding: 12px 24px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
    background-color: #c6c7c3 !important;
    color: #2f312e !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
    background-color: #ffffff !important;
    color: #2f312e !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover {
    background-color: #c6c7c3 !important;
}

/* My Account navigation */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-right: 1px solid rgba(143, 146, 141, 0.2);
}
.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px !important;
}
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 16px;
    color: #d3c4b7;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.woocommerce-MyAccount-navigation li a:hover, .woocommerce-MyAccount-navigation li.is-active a {
    color: #ffffff;
    background-color: #1c1b1b;
}

/* Titles */
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, #order_review_heading {
    font-family: 'Playfair Display', serif !important;
    color: #ffffff !important;
    font-size: 24px !important;
    margin-bottom: 20px !important;
}

/* Coupon & Cart actions spacing */
.actions .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}
.actions .coupon input.input-text {
    width: auto !important;
}

/* ==========================================================================
   Custom Entrance, Motion, and Scroll Animations (Midnight Editorial)
   ========================================================================== */

/* Keyframe Definitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page Loader & Transitions */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #131313;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}
.page-transition-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Scroll Progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #d3c4b7, #ffffff);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Back to Top Indicator */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #1c1b1b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 90;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: #ffffff;
    color: #131313;
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Intersection Observer Scroll Reveal Utilities */
.reveal {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible {
    opacity: 1;
    transform: none !important;
}

/* Reveal directional variants */
.reveal-fade-in-up {
    transform: translateY(30px);
}
.reveal-fade-in-down {
    transform: translateY(-30px);
}
.reveal-fade-in-left {
    transform: translateX(-30px);
}
.reveal-fade-in-right {
    transform: translateX(30px);
}
.reveal-scale-up {
    transform: scale(0.96);
}

/* Micro-animations & Hovers */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hover-glow {
    transition: text-shadow 0.3s ease, color 0.3s ease;
}
.hover-glow:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

