/**
 * Polish & Microanimations
 * Fixes list remnants, adds smooth animations, cleans up CSS
 */

/* ===== GLOBAL LIST FIX ===== */
/* Remove ALL default list bullets globally */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Completely disable the global li::before rule */
ul li::before,
ol li::before {
    content: none !important;
    display: none !important;
}

/* Only add bullets where explicitly needed */
.content-area ul li::before,
.wysiwyg-content ul li::before {
    content: "→" !important;
    display: inline-block !important;
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: 700;
}

/* ===== FOOTER FIX ===== */
.footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu li {
    margin-bottom: 0.75rem;
    position: relative !important;
}

.footer-menu li::before {
    content: none !important;
    display: none !important;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.footer-menu a:hover::after {
    width: 100%;
}

/* Social Links Animation */
.social-links {
    display: flex;
    gap: 1rem;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.social-link:hover::before {
    border-color: var(--color-primary);
    opacity: 0.5;
}

/* ===== PAGINATION FIX ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px 0;
    list-style: none !important;
    padding: 0 !important;
}

.pagination::before {
    content: none !important;
}

.page-numbers {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.page-numbers:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.page-numbers.current {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

.page-numbers.prev,
.page-numbers.next {
    padding: 12px 25px;
}

/* ===== BUTTON MICROANIMATIONS ===== */
.filter-btn,
.find-stores-btn,
.apply-btn,
.cta-btn {
    position: relative;
    overflow: hidden;
}

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

.filter-btn:hover::before,
.find-stores-btn:hover::before,
.apply-btn:hover::before,
.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== CARD HOVER ANIMATIONS ===== */
.product-card,
.strain-card,
.related-product-card,
.nav-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.strain-card:hover,
.related-product-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Card glow effect */
.product-card::after,
.strain-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.1), transparent 70%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* ===== IMAGE HOVER ANIMATIONS ===== */
.product-image img,
.strain-image img,
.gallery-thumb img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img,
.strain-card:hover .strain-image img,
.gallery-thumb:hover img {
    transform: scale(1.05);
}

/* ===== TEXT ANIMATIONS ===== */
.product-title,
.strain-title,
h1, h2, h3 {
    transition: color 0.3s ease;
}

/* Link underline animation */
a:not(.filter-btn):not(.product-card):not(.find-stores-btn) {
    position: relative;
    text-decoration: none;
}

a:not(.filter-btn):not(.product-card):not(.find-stores-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

a:not(.filter-btn):not(.product-card):not(.find-stores-btn):hover::after {
    width: 100%;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FADE IN ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.strain-card,
.job-card,
.benefit-item {
    animation: fadeInUp 0.6s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== STAT BOX ANIMATIONS ===== */
.cannabinoid-stat-box,
.strain-stat,
.stat-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cannabinoid-stat-box:hover,
.strain-stat:hover {
    transform: translateY(-3px) scale(1.03);
}

.cannabinoid-value,
.strain-stat-value {
    transition: all 0.3s ease;
}

.cannabinoid-stat-box:hover .cannabinoid-value,
.strain-stat:hover .strain-stat-value {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

/* ===== TERPENE LIST ANIMATIONS ===== */
.terpene-item,
.terpene-list-item {
    transition: all 0.3s ease;
    position: relative;
}

.terpene-item::before,
.terpene-list-item::before {
    content: none !important;
    display: none !important;
}

.terpene-item:hover,
.terpene-list-item:hover {
    background: rgba(255, 140, 0, 0.05);
    padding-left: 10px;
    margin-left: -10px;
}

.terpene-percentage,
.terpene-percentage-large {
    transition: all 0.3s ease;
}

.terpene-item:hover .terpene-percentage,
.terpene-list-item:hover .terpene-percentage-large {
    transform: scale(1.1);
    color: #fff;
}

/* ===== LOADING STATES ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 140, 0, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== FOCUS STATES (Accessibility) ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

