/**
 * MPC_ALO Frontend Styles
 * 
 * @package MPC_ALO
 */

/* ===================================
   Button Styles
   =================================== */
.mpc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.mpc-button:hover {
    text-decoration: none;
}

.mpc-button-icon {
    transition: all 0.3s ease;
}

/* Hover Effects */
.mpc-button-expand-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: currentColor;
    transition: width 0.4s ease;
    z-index: -1;
}

.mpc-button-expand-horizontal:hover::before {
    width: 100%;
}

.mpc-button-expand-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: currentColor;
    transition: height 0.4s ease;
    z-index: -1;
}

.mpc-button-expand-vertical:hover::before {
    height: 100%;
}

.mpc-button-expand-diagonal_right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: currentColor;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
    transform-origin: top left;
}

.mpc-button-expand-diagonal_right:hover::before {
    width: 100%;
    height: 100%;
}

.mpc-button-expand-diagonal_left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: currentColor;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
    transform-origin: top right;
}

.mpc-button-expand-diagonal_left:hover::before {
    width: 100%;
    height: 100%;
}

.mpc-button-slide-top::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    transition: top 0.4s ease;
    z-index: -1;
}

.mpc-button-slide-top:hover::before {
    top: 0;
}

.mpc-button-slide-bottom::before {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    transition: bottom 0.4s ease;
    z-index: -1;
}

.mpc-button-slide-bottom:hover::before {
    bottom: 0;
}

/* Pulse Animation */
@keyframes mpc-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mpc-button[data-animation="callout.pulse"][data-animation-hover="true"]:hover {
    animation: mpc-pulse 2.2s infinite;
}

/* ===================================
   Callout Styles
   =================================== */
.mpc-callout {
    position: relative;
    box-sizing: border-box;
}

.mpc-callout-inner {
    position: relative;
    z-index: 1;
}

.mpc-callout-icon {
    display: inline-block;
    margin-bottom: 15px;
}

.mpc-callout-title {
    margin: 0 0 15px 0;
    font-weight: 600;
}

.mpc-callout-content {
    margin-bottom: 20px;
}

.mpc-callout-style_1 {
    text-align: left;
}

.mpc-callout-style_2 {
    text-align: center;
}

.mpc-callout-style_3 {
    text-align: center;
    border-radius: 5px;
}

.mpc-callout-style_3 .mpc-callout-icon {
    padding: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Icon List Styles
   =================================== */
.mpc-icon-list-wrapper {
    position: relative;
}

.mpc-icon-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mpc-icon-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.mpc-icon-list-icon {
    margin-right: 10px;
    transition: all 0.3s ease;
}

.mpc-icon-list-text {
    flex: 1;
    transition: all 0.3s ease;
}

.mpc-icon-list-item:hover .mpc-icon-list-icon,
.mpc-icon-list-item:hover .mpc-icon-list-text {
    color: inherit !important;
}

/* Fade Transition */
.mpc-icon-list-item {
    opacity: 1;
}

.mpc-icon-list-item:hover {
    opacity: 0.8;
}

/* ===================================
   Tabs Styles
   =================================== */
.mpc-tabs {
    position: relative;
}

.mpc-tabs-nav {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.mpc-tab-nav-item {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.mpc-tab-nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.mpc-tab-nav-item.mpc-active::after {
    width: 100%;
}

.mpc-tabs-content {
    position: relative;
}

.mpc-tab-pane {
    display: none;
    animation: mpc-fadeIn 0.3s ease;
}

.mpc-tab-pane.mpc-active {
    display: block;
}

@keyframes mpc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Timeline Styles
   =================================== */
.mpc-timeline {
    position: relative;
    margin: 20px 0;
}

.mpc-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.mpc-timeline-items {
    position: relative;
    z-index: 2;
}

.mpc-timeline-item {
    position: relative;
    transition: all 0.3s ease;
}

.mpc-timeline-item-inner {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mpc-timeline-pointer {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e5e5;
    transition: all 0.3s ease;
}

.mpc-timeline-title {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.mpc-timeline-content {
    line-height: 1.7;
}

.mpc-timeline-item-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mpc-timeline-item-inner:hover .mpc-timeline-pointer {
    transform: scale(1.2);
}

.mpc-first-item {
    margin-top: 70px;
}

/* ===================================
   Carousel Slider Styles
   =================================== */
.mpc-carousel-slider {
    position: relative;
    overflow: hidden;
}

.mpc-carousel-track {
    display: flex;
    gap: var(--carousel-gap, 13px);
    transition: transform 0.5s ease;
}

.mpc-carousel-item {
    flex-shrink: 0;
    position: relative;
}

.mpc-carousel-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.mpc-carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.mpc-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.mpc-carousel-image-wrapper:hover .mpc-carousel-overlay {
    opacity: 1;
}

.mpc-carousel-overlay-icon {
    font-size: 30px;
}

.mpc-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.mpc-carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.mpc-carousel-prev {
    left: 10px;
}

.mpc-carousel-next {
    right: 10px;
}

/* Greyscale Effect */
.mpc-carousel-effect-greyscale img {
    filter: grayscale(100%);
}

.mpc-carousel-effect-greyscale:hover img {
    filter: grayscale(0%);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 768px) {
    .mpc-tabs-nav {
        flex-wrap: wrap;
    }
    
    .mpc-tab-nav-item {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .mpc-timeline-item-inner {
        margin-left: 50px;
    }
    
    .mpc-carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* ===================================
   RTL Support
   =================================== */
.rtl .mpc-button-icon {
    order: 2;
    margin-left: 8px;
    margin-right: 0;
}

.rtl .mpc-icon-list-icon {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .mpc-timeline-item-inner {
    margin-right: 90px;
    margin-left: 0;
}

.rtl .mpc-timeline-pointer {
    right: 90px;
    left: auto;
}

.rtl .mpc-carousel-prev {
    right: 10px;
    left: auto;
}

.rtl .mpc-carousel-next {
    left: 10px;
    right: auto;
}
