/* ================================================================================
   VISUAL IMPROVEMENTS - CONTRAST, CENTERING & EFFECTS
   Final polish for optimal readability and mobile experience
   ================================================================================ */

/* ============================================================================
   1. INTRO SCREEN IMPROVEMENTS
   ============================================================================ */

/* Better contrast for intro subtitle - FORCE WHITE COLOR */
.intro-overlay .intro__subtitle,
.intro-content .intro__subtitle,
.intro__subtitle,
p.intro__subtitle {
    color: #FFFFFF !important;
    /* Pure white for maximum contrast */
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(0, 217, 255, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

/* Add glow to intro button for better visibility */
#enter-shop-btn {
    box-shadow: 0 0 30px rgba(14, 123, 122, 0.4);
    transition: all 0.3s ease;
}

#enter-shop-btn:hover {
    box-shadow: 0 0 40px rgba(14, 123, 122, 0.7),
        0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ============================================================================
   2. HERO SECTION TEXT CONTRAST
   ============================================================================ */

/* Make "ESTILO" text more visible with stronger color and shadow */
.hero__title-highlight,
.segarro-hero-main .hero__title-highlight {
    color: #00FFD1 !important;
    /* Bright mint green instead of teal */
    text-shadow: 0 0 30px rgba(0, 255, 209, 0.6),
        0 0 60px rgba(0, 255, 209, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1px rgba(0, 255, 209, 0.3);
}

/* Enhance hero main text readability */
.segarro-hero-main .hero__title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.6);
}

.segarro-hero-main .hero__description {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8),
        0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Add subtle glow to hero button */
.segarro-hero-main .btn-primary {
    box-shadow: 0 4px 20px rgba(14, 123, 122, 0.4);
}

.segarro-hero-main .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(14, 123, 122, 0.6),
        0 0 40px rgba(14, 123, 122, 0.3);
}

/* ============================================================================
   3. CATEGORY CARDS - ADD DARK OVERLAYS
   ============================================================================ */

.category-card {
    position: relative;
}

/* Add dark gradient overlay to all category cards */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    border-radius: inherit;
    transition: all 0.3s ease;
    z-index: 1;
}

.category-card:hover::before {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.7) 100%);
}

/* Ensure category text sits above overlay - FORCE WHITE COLOR */
.category-card__title,
.category-card__link,
.category-card h3,
.category-card a,
.category-card h3.category-card__title,
a.category-card__link {
    position: relative;
    z-index: 2;
    color: #FFFFFF !important;
    /* Pure white for maximum contrast */
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9),
        0 1px 4px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 0.7);
    font-weight: 700 !important;
}

/* Hover state for category links */
.category-card__link:hover,
.category-card a:hover {
    color: #00FFD1 !important;
    /* Mint glow on hover */
    text-shadow: 0 3px 12px rgba(0, 255, 209, 0.8),
        0 0 40px rgba(0, 255, 209, 0.6),
        0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ============================================================================
   4. PRODUCT BADGES - VIBRANT COLORS
   ============================================================================ */

/* New badge - bright green */
.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Sale badge - vibrant red */
.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Featured badge - golden yellow */
.badge-featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Sold out badge - dark grey */
.badge-soldout {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white !important;
    font-weight: 700;
}

/* ============================================================================
   5. MOBILE TEXT CENTERING
   ============================================================================ */

@media (max-width: 767px) {

    /* Center all brand story text on mobile */
    .brand-story,
    .brand-story__content,
    .brand-story .story-content,
    .brand-story p {
        text-align: center !important;
    }

    /* Center creators section text */
    .team-section,
    .team-member__bio,
    .team-member p {
        text-align: center !important;
    }

    /* Center features section */
    .features-section p,
    .feature-card p {
        text-align: center !important;
    }

    /* Center Newsletter section */
    .newsletter-section p {
        text-align: center !important;
    }

    /* Ensure all section descriptions are centered */
    .section__description,
    .section p {
        text-align: center !important;
    }
}

/* ============================================================================
   6. FOOTER CONTRAST IMPROVEMENTS
   ============================================================================ */

/* Make footer icons and text more visible */
.footer-features,
.footer-info-cards,
.segarro-footer-info {
    color: #1f2937 !important;
    /* Much darker grey */
}

.footer-features .feature-icon,
.footer-info-cards i {
    color: #0E1B4D !important;
    /* Dark blue instead of light grey */
    opacity: 1;
}

.footer-features h4,
.footer-info-cards h4 {
    color: #111827 !important;
    /* Nearly black */
    font-weight: 700;
}

.footer-features p,
.footer-info-cards p {
    color: #374151 !important;
    /* Dark grey */
}

/* ============================================================================
   7. BUTTON HOVER EFFECTS (Enhanced)
   ============================================================================ */

/* Primary buttons - add scale effect */
.btn-primary,
.woocommerce-Button.button,
button[type="submit"]:not(.search-submit) {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.woocommerce-Button.button:hover,
button[type="submit"]:not(.search-submit):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 123, 122, 0.4);
}

.btn-primary:active,
.woocommerce-Button.button:active,
button[type="submit"]:not(.search-submit):active {
    transform: translateY(-1px) scale(0.98);
}

/* Secondary buttons */
.btn-secondary,
.btn-outline {
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   8. PRODUCT CARDS - ENHANCED HOVER EFFECTS
   ============================================================================ */

.product-card,
.woocommerce ul.products li.product {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Product image zoom effect */
.product-card img,
.woocommerce ul.products li.product img {
    transition: transform 0.4s ease;
}

.product-card:hover img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* ============================================================================
   9. PROMO BAR ENHANCEMENT
   ============================================================================ */

.segarro-promo-bar {
    background: linear-gradient(90deg, #0E1B4D 0%, #1e3a8a 50%, #0E1B4D 100%);
    box-shadow: 0 2px 10px rgba(14, 27, 77, 0.3);
}

.segarro-promo-bar p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* ============================================================================
   10. NEWSLETTER CTA ENHANCEMENT
   ============================================================================ */

.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.newsletter-section .btn-primary {
    background: linear-gradient(135deg, #0E7B7A 0%, #0a5f5e 100%);
}

.newsletter-section .btn-primary:hover {
    background: linear-gradient(135deg, #10b89d 0%, #0E7B7A 100%);
    box-shadow: 0 8px 25px rgba(14, 123, 122, 0.5);
}

/* ============================================================================
   11. SMOOTH SCROLL ANIMATIONS
   ============================================================================ */

html {
    scroll-behavior: smooth;
}

/* Add subtle fade-in on scroll (optional, works with intersection observer) */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   12. STATS/NUMBERS ENHANCEMENT
   ============================================================================ */

.stats-number,
.feature-stat,
.counter {
    color: #00FFD1 !important;
    /* Bright mint for numbers */
    text-shadow: 0 0 20px rgba(0, 255, 209, 0.5);
    font-weight: 900;
}

/* ============================================================================
   13. LINK HOVER EFFECTS
   ============================================================================ */

a:not(.btn):not(.button) {
    transition: all 0.2s ease;
}

a:not(.btn):not(.button):hover {
    color: #0E7B7A;
    text-decoration-color: #0E7B7A;
}

/* ============================================================================
   14. FORM INPUT FOCUS EFFECTS
   ============================================================================ */

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #0E7B7A !important;
    box-shadow: 0 0 0 3px rgba(14, 123, 122, 0.1),
        0 4px 12px rgba(14, 123, 122, 0.15) !important;
    transform: translateY(-1px);
}

/* ============================================================================
   15. CART BADGE ENHANCEMENT
   ============================================================================ */

.cart-count,
.cart-icon .count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-cart 2s ease-in-out infinite;
}

@keyframes pulse-cart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================================================
   16. SECTION SEPARATORS
   ============================================================================ */

.section {
    position: relative;
}

/* Optional: add subtle divider between sections */
.section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(14, 123, 122, 0.2) 50%,
            transparent 100%);
}

/* ============================================================================
   17. LOADING STATES (for future AJAX)
   ============================================================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(14, 123, 122, 0.2);
    border-top-color: #0E7B7A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}