/**
 * Frontend Styles for Yan Menü
 */

.yan-menu-container {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

h3.yan-menu-header {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    /* WordPress Blue accent */
    color: #333;
    display: inline-block;
    /* Only underline text */
    min-width: 100%;
    /* Or full width underline */
}

ul.yan-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #eee;
    /* Optional top border */
}

li.yan-menu-item-fe {
    display: list-item !important;
    /* Force list item display */
    list-style: none !important;
    border-bottom: 1px solid #eee;
    margin: 0 !important;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

li.yan-menu-item-fe:hover {
    background-color: rgba(0, 0, 0, 0.02);
    /* Slight hover effect */
}

/* Link Wrapper */
a.yan-menu-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
    /* Let theme decide color or force it? inherit is safer for integration */
    width: 100%;
    border: none !important;
    /* Remove borders added by themes to links */
    box-shadow: none !important;
}

/* Image Wrapper */
.yan-menu-image-wrapper {
    flex-shrink: 0;
    margin-right: 15px;
    /* Fixed spacing between image and text */
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
}

.yan-menu-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Slight shadow for depth */
}

/* Title */
.yan-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    /* Fallback color */
    line-height: 1.4;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .yan-menu-title {
        font-size: 15px;
    }

    .yan-menu-image-wrapper {
        margin-right: 12px;
    }
}