/*
 * Elementor Mega Menu - Addons CSS
 * Styles for logo, button, and other widgets
 */

/* ===========================================
   Logo Widget Styles
   =========================================== */
.emm-site-logo {
    display: inline-block;
    line-height: 0;
}

.emm-site-logo-wrap {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 0;
}

.emm-site-logo-wrap:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.emm-site-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo alignment classes */
.content-align-left .emm-site-logo-wrap {
    text-align: left;
    display: block;
}

.content-align-center .emm-site-logo-wrap {
    text-align: center;
    display: block;
}

.content-align-right .emm-site-logo-wrap {
    text-align: right;
    display: block;
}

/* Responsive logo */
@media (max-width: 768px) {
    .emm-site-logo img {
        max-height: 60px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .emm-site-logo img {
        max-height: 50px;
    }
}

/* ===========================================
   Button Widget Styles
   =========================================== */
.emm-button-wraper {
    display: inline-block;
}

.emm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

/* Default button style */
.emm-btn.bg-gray {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.emm-btn.bg-gray:hover {
    background-color: #e0e0e0;
    color: #000;
    border-color: #ccc;
}

/* Active button style */
.emm-btn.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #005a87;
}

.emm-btn.active:hover {
    background-color: #005a87;
}

/* Outline button style */
.emm-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.emm-outline-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.emm-outline-btn:active {
    transform: translateY(0);
}

/* Button alignment */
.emm-button-wraper[style*="text-align: left"] {
    text-align: left;
}

.emm-button-wraper[style*="text-align: center"] {
    text-align: center;
}

.emm-button-wraper[style*="text-align: right"] {
    text-align: right;
}

/* Button sizes */
.emm-btn.bg-gray.large,
.emm-outline-btn.large {
    padding: 16px 40px;
    font-size: 18px;
}

.emm-btn.bg-gray.small,
.emm-outline-btn.small {
    padding: 8px 20px;
    font-size: 14px;
}

/* ===========================================
   Header Buttons (in Mega Menu)
   =========================================== */
.emm-header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.emm-dual-button-primary,
.emm-dual-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

.emm-dual-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.emm-dual-button-primary:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.emm-dual-button-secondary {
    background-color: #ef2469;
    color: #fff;
}

.emm-dual-button-secondary:hover {
    background-color: #d41c5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239,36,105,0.2);
}

/* Button icon positioning */
.emm-icon-pos-left,
.emm-icon-pos-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.emm-icon-pos-left i,
.emm-icon-pos-right i {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.emm-icon-pos-left:hover i {
    transform: translateX(-3px);
}

.emm-icon-pos-right:hover i {
    transform: translateX(3px);
}

/* Button hover effects */
.emm-dual-button-action.effect-1 {
    position: relative;
    z-index: 1;
}

.emm-dual-button-action.effect-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.emm-dual-button-action.effect-1:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===========================================
   Common Widget Styles
   =========================================== */
.emm-widget-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.emm-widget-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 1024px) {
    .emm-dual-button-primary,
    .emm-dual-button-secondary,
    .emm-btn,
    .emm-outline-btn {
        padding: 10px 24px;
        font-size: 14px;
        min-width: 120px;
    }

    .emm-header-buttons {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .emm-header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .emm-dual-button-primary,
    .emm-dual-button-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .emm-btn.bg-gray.large,
    .emm-outline-btn.large {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .emm-btn,
    .emm-outline-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .emm-site-logo img {
        max-width: 150px;
    }
}

/* ===========================================
   Animation Classes
   =========================================== */
.emm-fade-in {
    animation: emmFadeIn 0.5s ease;
}

.emm-slide-up {
    animation: emmSlideUp 0.5s ease;
}

.emm-pulse {
    animation: emmPulse 2s infinite;
}

@keyframes emmFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes emmSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes emmPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

/* ===========================================
   Utility Classes
   =========================================== */
.emm-text-center {
    text-align: center !important;
}

.emm-text-left {
    text-align: left !important;
}

.emm-text-right {
    text-align: right !important;
}

.emm-mt-10 {
    margin-top: 10px !important;
}

.emm-mt-20 {
    margin-top: 20px !important;
}

.emm-mb-10 {
    margin-bottom: 10px !important;
}

.emm-mb-20 {
    margin-bottom: 20px !important;
}

.emm-d-block {
    display: block !important;
}

.emm-d-inline-block {
    display: inline-block !important;
}

.emm-d-flex {
    display: flex !important;
}

/* ===========================================
   Loading States
   =========================================== */
.emm-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.emm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: emmSpin 1s linear infinite;
}

@keyframes emmSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .emm-btn,
    .emm-outline-btn,
    .emm-dual-button-primary,
    .emm-dual-button-secondary {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .emm-site-logo img {
        filter: grayscale(100%) !important;
    }
}