/* Custom Dropdown Component */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button,
.dropdown-button-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-button-compact {
  padding: 5px 10px;
  font-size: 12px;
  gap: 6px;
}

.dropdown-button:hover,
.dropdown-button-compact:hover {
  background: var(--color-hover-bg);
  border-color: var(--color-border);
}

.dropdown-button:focus,
.dropdown-button-compact:focus {
  outline: none;
  border-color: var(--owlo-yellow);
  box-shadow: 0 0 0 1px var(--owlo-yellow);
}

.dropdown-icon-left {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
}

.dropdown-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  flex-shrink: 0;
  margin-left: auto;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 10000;
  overflow: hidden;
}

/* Right-aligned dropdowns (for items at the end of a row) */
.top-bar-controls .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--color-card-bg);
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--color-hover-bg);
  color: var(--color-text);
}

.dropdown-item:active {
  background: var(--color-hover-bg);
}

.dropdown-item.active {
  background: var(--color-hover-bg);
  border-left: 3px solid var(--owlo-yellow);
  padding-left: 11px;
}

/* Dropdown item with title and description */
.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 11px;
  color: var(--color-text-subtle);
  line-height: 1.2;
}

/* Footer dropdown opens upward */
.dropdown-footer .dropdown-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

/* Responsive */
@media (max-width: 768px) {
  .dropdown-button {
    font-size: 12px;
    padding: 5px 10px;
    gap: 6px;
  }
  
  .dropdown-button-compact {
    font-size: 11px;
    padding: 4px 8px;
    gap: 5px;
  }
  
  .dropdown-icon-left {
    width: 13px;
    height: 13px;
  }
  
  .dropdown-icon {
    width: 11px;
    height: 11px;
  }
  
  .dropdown-item {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  .dropdown-item.active {
    padding-left: 9px;
  }
  
  .dropdown-item-title {
    font-size: 12px;
  }
  
  .dropdown-item-desc {
    font-size: 10px;
  }
}

/* ============================================
   PROFILE DROPDOWN COMPONENT
   ============================================ */

.profile-dropdown-container {
    position: relative;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #1f2937);
    font-family: var(--font-body);
}

.profile-badge-button {
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-badge-button:hover {
    background: #f9fafb;
    border-color: var(--owlo-yellow, #F9B11A);
}

.profile-avatar-tiny {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 10000;
    overflow: hidden;
}

.profile-dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-bottom: 1px solid #f3f4f6;
}

.profile-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-dropdown-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.profile-dropdown-age {
    font-size: 12px;
    color: #6b7280;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.profile-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    text-decoration: none;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.profile-dropdown-item:hover {
    background: rgba(249, 177, 26, 0.08);
}

.profile-dropdown-item i {
    color: #6b7280;
}

.profile-dropdown-section-title {
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-item-large {
    padding: 12px 16px;
}

.profile-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.profile-item-age {
    font-size: 12px;
    color: #6b7280;
}

/* Premium top bar styling */
.premium-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 200;
}

@media (max-width: 768px) {
    .premium-top-bar {
        padding: 12px 16px;
    }
    
    .profile-dropdown-menu {
        min-width: 200px;
    }
    
    .profile-badge {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .profile-avatar-tiny {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}
