/**
 * Logo Widget Styles
 *
 * @package Netrobit_Core
 * @since 1.0.0
 */

/* Reset Elementor container padding and margin */
.elementor-widget-netrobit-logo {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.elementor-widget-netrobit-logo .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
}

/* Prevent trailing bottom gaps from inner elements */
.elementor-widget-netrobit-logo .elementor-widget-container > *:last-child {
    margin-bottom: 0 !important;
}

/* Wrapper */
.netrobit-logo-wrapper {
    display: inline-flex;
    align-items: center;
    width: auto;
    vertical-align: top;
    line-height: 0;
}

/* Logo Link */
.netrobit-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--netrodent-transition-base, all 0.3s ease);
    vertical-align: top;
    line-height: 0;
}

.netrobit-logo-link:hover {
    text-decoration: none;
}

/* Text Position - Top */
.netrobit-logo-wrapper.text-position-top .netrobit-logo-link {
    flex-direction: column;
}

/* Text Position - Bottom */
.netrobit-logo-wrapper.text-position-bottom .netrobit-logo-link {
    flex-direction: column-reverse;
}

/* Text Position - Left */
.netrobit-logo-wrapper.text-position-left .netrobit-logo-link {
    flex-direction: row-reverse;
}

/* Text Position - Right (default) */
.netrobit-logo-wrapper.text-position-right .netrobit-logo-link {
    flex-direction: row;
}

/* Logo Image */
.netrobit-logo-image {
    display: block;
    line-height: 0;
}

.netrobit-logo-image img {
    width: 150px;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Site Name */
.netrobit-site-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--netrodent-text-color, #1a1a1a);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.netrobit-logo-link:hover .netrobit-site-name {
    opacity: 0.8;
}

/* Tagline */
.netrobit-tagline {
    font-size: 14px;
    font-weight: 400;
    color: var(--netrodent-text-light, #666666);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.netrobit-logo-link:hover .netrobit-tagline {
    opacity: 0.8;
}

/* Custom Text */
.netrobit-custom-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--netrodent-text-dark, #333333);
    line-height: 1.5;
    display: inline-block;
    transition: var(--netrodent-transition-base, all 0.3s ease);
}

/* Custom Text Default Spacing */
.netrobit-logo-wrapper.text-position-top .netrobit-custom-text {
    margin-bottom: 15px;
}

.netrobit-logo-wrapper.text-position-bottom .netrobit-custom-text {
    margin-top: 15px;
}

.netrobit-logo-wrapper.text-position-left .netrobit-custom-text {
    margin-right: 15px;
}

.netrobit-logo-wrapper.text-position-right .netrobit-custom-text {
    margin-left: 15px;
}

.netrobit-logo-link:hover .netrobit-custom-text {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    /* Preserve layout choice on mobile while keeping elements centered */
    .netrobit-logo-wrapper {
        display: flex;
        justify-content: center;
    }

    .netrobit-logo-link {
        align-items: center;
        flex-wrap: wrap;
    }

    .netrobit-logo-wrapper.text-position-top .netrobit-logo-link {
        flex-direction: column;
    }

    .netrobit-logo-wrapper.text-position-bottom .netrobit-logo-link {
        flex-direction: column-reverse;
    }

    .netrobit-logo-wrapper.text-position-left .netrobit-logo-link {
        flex-direction: row-reverse;
    }

    .netrobit-logo-wrapper.text-position-right .netrobit-logo-link {
        flex-direction: row;
    }

    .netrobit-logo-image {
        text-align: center;
    }

    .netrobit-logo-image img {
        width: 120px;
        margin: 0 auto;
    }

    .netrobit-site-name {
        font-size: 20px;
    }

    .netrobit-tagline {
        font-size: 13px;
    }

    .netrobit-custom-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .netrobit-logo-image img {
        width: 100px;
    }

    .netrobit-site-name {
        font-size: 18px;
    }

    .netrobit-tagline {
        font-size: 12px;
    }

    .netrobit-custom-text {
        font-size: 13px;
    }
}
