/**
 * Enhanced Visual Styles
 *
 * @package CodeForgeShop
 */

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section[data-style="gradient"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero-section[data-style="solid"] {
    background: var(--color-primary);
}

.hero-section[data-style="pattern"] {
    background-color: var(--color-primary);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .05) 35px, rgba(255, 255, 255, .05) 70px);
}

.hero-section[data-style="image"] .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float-decoration 20s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.decoration-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
    animation-delay: 5s;
}

.decoration-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float-decoration {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all var(--transition-base);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ENHANCED PRODUCT CARDS
   ============================================ */

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(124, 58, 237, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

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

.product-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Shimmer effect on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.6s;
}

.product-card:hover::before {
    transform: translateX(100%) translateY(100%);
}

/* ============================================
   CATEGORY CARDS WITH GRADIENT BORDERS
   ============================================ */

.category-card {
    position: relative;
    background: white;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    position: relative;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

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

.category-card:hover .category-icon {
    animation: none;
    transform: scale(1.1) rotate(5deg);
    transition: transform var(--transition-base);
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */

.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    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;
}

.btn-primary:hover::after {
    left: 100%;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.6s;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-in"] {
    opacity: 0;
}

[data-aos="fade-in"].aos-animate {
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ENHANCED SHADOWS
   ============================================ */

.shadow-glow-primary {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.shadow-glow-secondary {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}

/* ============================================
   PRICE TAGS WITH SPECIAL EFFECTS
   ============================================ */

.price-sale {
    position: relative;
    display: inline-block;
}

.price-sale::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, var(--color-error), var(--color-warning));
    border-radius: var(--radius-sm);
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
}

/* ============================================
   FEATURE ICONS WITH GRADIENT BACKGROUNDS
   ============================================ */

.feature-icon {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.feature-item:hover .feature-icon::before {
    opacity: 1;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .decoration-circle {
        display: none;
    }

    .hero-card {
        animation: none !important;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

[data-theme="dark"] .site-header {
    background: rgba(20, 20, 30, 0.95);
}