/**
 * Extra Theme Options - Front CSS
 *
 * @author    4WORKS Solutions
 * @copyright 2024 4WORKS Solutions
 */

/* Example usage of CSS variables */
.primary-button {
    background-color: var(--extratheme-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.primary-button:hover {
    opacity: 0.9;
}

.secondary-element {
    color: var(--extratheme-secondary);
}

.secondary-bg {
    background-color: var(--extratheme-secondary);
}

.tertiary-accent {
    border-color: var(--extratheme-tertiary);
    border-width: 2px;
    border-style: solid;
}

.tertiary-text {
    color: var(--extratheme-tertiary);
}

/* You can use these variables throughout your theme */
.custom-header {
    background: linear-gradient(135deg, var(--extratheme-primary), var(--extratheme-secondary));
    padding: 20px;
}

.custom-link {
    color: var(--extratheme-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-link:hover {
    color: var(--extratheme-tertiary);
}

/* Mobile menu styles using the width variable */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

/* Slider overlay styles */
.slider.with-overlay::before,
.carousel.with-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Card styles using theme colors */
.theme-card {
    border: 1px solid var(--extratheme-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.theme-card-header {
    background-color: var(--extratheme-primary);
    color: white;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 7px 7px 0 0;
}

.theme-badge {
    background-color: var(--extratheme-tertiary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

/* Alert styles using theme colors */
.theme-alert {
    padding: 15px;
    border-left: 4px solid var(--extratheme-primary);
    background-color: rgba(0,123,255,0.1);
    margin-bottom: 20px;
}

.theme-alert.secondary {
    border-left-color: var(--extratheme-secondary);
    background-color: rgba(108,117,125,0.1);
}

.theme-alert.tertiary {
    border-left-color: var(--extratheme-tertiary);
    background-color: rgba(40,167,69,0.1);
}