/**
 * Dynamic Reader Menu Styles
 * Styles for dynamically generated reader menu items
 */

/* Reader dropdown menu styling */
.menu-item-reader {
    position: relative;
}

.menu-item-reader a {
    color: inherit;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    transition: background-color 0.3s ease;
}

.menu-item-reader a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Current reader page highlighting */
.menu-item-reader.current-menu-item a {
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

/* Dropdown styling for Divi theme */
.et_pb_menu .menu-item-has-children .menu-item-reader {
    background: white;
    border-bottom: 1px solid #eee;
}

.et_pb_menu .menu-item-has-children .menu-item-reader:last-child {
    border-bottom: none;
}

/* Mobile menu styling */
@media (max-width: 980px) {
    .et_mobile_menu .menu-item-reader a {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .et_mobile_menu .menu-item-reader:last-child a {
        border-bottom: none;
    }
}

/* Admin menu styling */
.wp-admin #add-tarot-readers .reader-city {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.wp-admin #readers-checklist li {
    margin-bottom: 8px;
}

.wp-admin #readers-checklist .menu-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading state for dynamic menu items */
.menu-item-reader.loading a::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Accessibility improvements */
.menu-item-reader a:focus {
    outline: 2px solid #005cee;
    outline-offset: 2px;
}

/* Icon for reader menu items (optional) */
.menu-item-reader a::before {
    content: "👤";
    margin-right: 6px;
    font-size: 0.9em;
}

/* Alternative icon using CSS (if you prefer) */
.menu-item-reader.no-emoji a::before {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
