/**
 * HashDrip Premium Style Enhancements
 *
 * Advanced styling for premium look and feel
 *
 * @package HashDrip
 * @version 1.0.0
 */

/*--------------------------------------------------------------
# Enhanced Header Actions Spacing
--------------------------------------------------------------*/
.hd-header__actions {
    gap: 0.75rem;
}

/*--------------------------------------------------------------
# Premium Link Hover Effects
--------------------------------------------------------------*/
.hd-footer__widget ul li a,
.hd-breadcrumb__link {
    position: relative;
    display: inline-block;
}

.hd-footer__widget ul li a::after,
.hd-breadcrumb__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--hd-gold-gradient);
    transition: width 0.3s ease;
}

.hd-footer__widget ul li a:hover::after,
.hd-breadcrumb__link:hover::after {
    width: 100%;
}

/*--------------------------------------------------------------
# Enhanced Button Styles
--------------------------------------------------------------*/
.hd-btn--primary {
    position: relative;
    overflow: hidden;
}

.hd-btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hd-btn--primary:hover::after {
    width: 300px;
    height: 300px;
}

/*--------------------------------------------------------------
# Premium Product Card Enhancements
--------------------------------------------------------------*/
.hd-product-card__image {
    position: relative;
}

.hd-product-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hd-product-card:hover .hd-product-card__image::after {
    opacity: 1;
}

/*--------------------------------------------------------------
# Enhanced Footer
--------------------------------------------------------------*/
.hd-footer {
    position: relative;
    overflow: hidden;
}

.hd-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hd-gold), transparent);
}

.hd-footer__widget-title {
    position: relative;
    display: inline-block;
}

.hd-footer__widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--hd-gold-gradient);
    border-radius: 2px;
}

/*--------------------------------------------------------------
# Social Icons Enhanced Hover
--------------------------------------------------------------*/
.hd-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-footer__social a:hover {
    background: var(--hd-gold);
    color: var(--hd-black);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.4);
}

/*--------------------------------------------------------------
# Page Transition Effect
--------------------------------------------------------------*/
.hd-main {
    animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# Smooth Scroll Progress Indicator
--------------------------------------------------------------*/
.hd-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--scroll-progress, 0%);
    height: 2px;
    background: var(--hd-gold-gradient);
    transition: width 0.1s linear;
    z-index: 10;
}

/*--------------------------------------------------------------
# Enhanced Form Focus States
--------------------------------------------------------------*/
.hd-form__input:focus,
.hd-form__textarea:focus,
.hd-form__select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--hd-gold);
    box-shadow:
        0 0 0 3px rgba(212, 168, 67, 0.15),
        0 0 20px rgba(212, 168, 67, 0.1);
    transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Premium Selection Color
--------------------------------------------------------------*/
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: var(--hd-white);
}

::-moz-selection {
    background: rgba(212, 168, 67, 0.3);
    color: var(--hd-white);
}

/*--------------------------------------------------------------
# Enhanced Scrollbar
--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--hd-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--hd-gold-dark), var(--hd-gold));
    border-radius: 5px;
    border: 2px solid var(--hd-black);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hd-gold), var(--hd-gold-light));
}

/*--------------------------------------------------------------
# Loading State Shimmer
--------------------------------------------------------------*/
.is-loading {
    position: relative;
    overflow: hidden;
}

.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 168, 67, 0.1),
        transparent
    );
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/*--------------------------------------------------------------
# Image Lazy Load Fade In
--------------------------------------------------------------*/
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/*--------------------------------------------------------------
# Enhanced Category Cards
--------------------------------------------------------------*/
.hd-category-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 168, 67, 0.2);
}

.hd-category-card:hover .hd-category-card__title {
    color: var(--hd-gold);
}

/*--------------------------------------------------------------
# Testimonial Card Enhancement
--------------------------------------------------------------*/
.hd-testimonial-card {
    transition: all 0.4s ease;
}

.hd-testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------
# Enhanced Hero Section
--------------------------------------------------------------*/
.hd-hero__title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hd-hero__subtitle {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hd-hero__title {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hd-hero__description {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hd-hero__buttons {
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

/*--------------------------------------------------------------
# Mobile Menu Enhancement
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .hd-nav.is-open .hd-nav__item {
        animation: slideInRight 0.4s ease backwards;
    }

    .hd-nav.is-open .hd-nav__item:nth-child(1) { animation-delay: 0.1s; }
    .hd-nav.is-open .hd-nav__item:nth-child(2) { animation-delay: 0.15s; }
    .hd-nav.is-open .hd-nav__item:nth-child(3) { animation-delay: 0.2s; }
    .hd-nav.is-open .hd-nav__item:nth-child(4) { animation-delay: 0.25s; }
    .hd-nav.is-open .hd-nav__item:nth-child(5) { animation-delay: 0.3s; }
    .hd-nav.is-open .hd-nav__item:nth-child(6) { animation-delay: 0.35s; }

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

/*--------------------------------------------------------------
# Glass Morphism Effect
--------------------------------------------------------------*/
.hd-search-modal__inner {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 168, 67, 0.1);
}

/*--------------------------------------------------------------
# Cursor Enhancement
--------------------------------------------------------------*/
.hd-btn,
.hd-product-card,
.hd-nav__link,
.hd-mini-cart__toggle,
.hd-header__search-toggle,
.hd-header__account {
    cursor: pointer;
}

/*--------------------------------------------------------------
# WooCommerce Product Enhancements
--------------------------------------------------------------*/
.woocommerce ul.products li.product {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 168, 67, 0.15);
}

.woocommerce ul.products li.product img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.08);
}

.woocommerce ul.products li.product .button {
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.woocommerce ul.products li.product .button:hover::before {
    left: 100%;
}

/*--------------------------------------------------------------
# Enhanced Pagination
--------------------------------------------------------------*/
.hd-pagination .page-numbers,
.navigation.pagination .page-numbers {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 168, 67, 0.3);
}

/*--------------------------------------------------------------
# Smooth Content Reveals
--------------------------------------------------------------*/
.hd-post-card,
.hd-product-card {
    opacity: 0;
    animation: revealCard 0.6s ease forwards;
}

.hd-post-card:nth-child(1),
.hd-product-card:nth-child(1) { animation-delay: 0.1s; }
.hd-post-card:nth-child(2),
.hd-product-card:nth-child(2) { animation-delay: 0.2s; }
.hd-post-card:nth-child(3),
.hd-product-card:nth-child(3) { animation-delay: 0.3s; }
.hd-post-card:nth-child(4),
.hd-product-card:nth-child(4) { animation-delay: 0.4s; }

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