/**
 * COEM User Teaser - Base Styles
 *
 * Basic neutral styles for the user teaser shortcode.
 * Theme-specific styles should override these.
 *
 * @package COEM_Base
 */

/* Container */
.coem-user-teaser {
  position: relative;
  display: inline-block;
}

/* Trigger (clickable area) */
.coem-user-teaser-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.coem-user-teaser-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Avatar */
.coem-user-teaser-avatar-wrap {
  flex-shrink: 0;
}

.coem-user-teaser-avatar {
  border-radius: 50%;
  display: block;
}

/* User Info */
.coem-user-teaser-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coem-user-teaser-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #2c3e50;
}

.coem-user-teaser-role {
  font-size: 12px;
  line-height: 1.2;
  color: #7a8c9a;
}

/* Arrow */
.coem-user-teaser-arrow {
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-left: auto;
  background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l5 5 5-5" stroke="%237a8c9a" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease;
}

.coem-user-teaser.is-open .coem-user-teaser-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.coem-user-teaser-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

/* Dropdown arrow pointer */
.coem-user-teaser-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #e1e8ed;
}

.coem-user-teaser-dropdown::after {
  content: '';
  position: absolute;
  top: -7px;
  right: 21px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
}

.coem-user-teaser.is-open .coem-user-teaser-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Menu List */
.coem-user-teaser-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.coem-user-teaser-menu li {
  margin: 0;
  padding: 0;
}

.coem-user-teaser-menu a {
  display: block;
  padding: 10px 16px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.coem-user-teaser-menu a:hover {
  background-color: #f5f5f5;
  color: #3498db;
}

/* Responsive */
@media (max-width: 576px) {
  .coem-user-teaser-dropdown {
    left: 0;
    right: auto;
    min-width: 180px;
  }
}
