/* Animated text with blue and purple gradient effect for Terzon */

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Dark mode cosmic animation */
@keyframes cosmic-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Blue and purple animated gradient for page titles */
.animated-title {
    /* Set up background gradient with blue and purple (Terzon brand colors) */
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Apply animation */
    animation: gradientMove 8s ease infinite;
    
    /* Text styling */
    font-weight: 700;
    text-align: left;
    margin-bottom: 0;
    display: inline-block;
}

/* Styling for the underline with the same animation */
.animated-underline {
    width: 70px;
    height: 6px;
    border-radius: 3px;
    margin: 3px 0 0 2px;
    display: block;
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
}

/* Same animation but for icons - Light Mode */
.animated-icon {
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 8s ease infinite;
}

/* Dark mode icon animation */
.cosmic-icon {
    background: linear-gradient(270deg, #35a79c, #209cb3, #1e4a69, #35a79c);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cosmic-gradient 8s ease infinite;
    text-shadow: none;
}

/* Terzon brand animation */
.animated-brand {
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 8s ease infinite;
    font-weight: 600;
}

/* Custom underline style for animated elements */
.custom-underline {
    position: relative;
    display: inline-block;
}

.custom-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animated-title {
        font-size: 28px;
    }
    .animated-underline {
        width: 50px;
        height: 5px;
    }
}

/* Style for when the animated text is inside specific pages */
body.products-page .animated-title,
body.clothing-page .animated-title {
    margin-top: 20px;
}

/* Animated gradient for buttons */
.animated-button {
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    border: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.4);
}

/* Light mode navigation icons animation */
body:not(.dark) .animated-menu-icon i,
body:not(.dark) .nav-cart i.fas.fa-shopping-cart,
body:not(.dark) .sidebar_menu .menu ul li a i,
body:not(.dark) .toggle-label:after {
    background: linear-gradient(120deg, #3f51b5, #8e24aa, #5c6bc0, #9c27b0);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Dark mode navigation icons animation */
body.dark .animated-menu-icon i,
body.dark .nav-cart i.fas.fa-shopping-cart,
body.dark .brand a,
body.dark .sidebar_menu .menu ul li a i,
body.dark .toggle-label:after {
    background: linear-gradient(270deg, #35a79c, #209cb3, #1e4a69, #35a79c);
    background-size: 800% 800%;
    animation: cosmic-gradient 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    text-shadow: none;
}

/* Animated sidebar menu items in light mode */
body:not(.dark) .sidebar_menu .menu ul li a:hover i {
    transform: translateX(5px);
    filter: brightness(1.2);
}

/* Animated sidebar menu items in dark mode */
body.dark .sidebar_menu .menu ul li a.active i {
    font-weight: bold;
}

/* Theme toggle animations for light and dark mode */
.toggle-icon-animated {
    /* Base styling for the toggle icons */
    font-size: 12px;
    transition: .4s;
    z-index: 5;
}
